Extract values:
P1-0001: 411, code 0d779aa92c4b
P1-0008: 869, code 6145b5511a6d
P1-0017: 191, code 7f33f46e3c72
P1-0028: 633, code 1ce11754e79b
P1-0038: 686, code 75a4dd4130f3
P1-0045: 366, code 73414e4bb5e3

total: 1st=411, 3rd=191, 6th=366 → 411+191+366 = 968.

missing: P1-9999 not present → null.