We need answer user's request. Need produce final JSON only, no markdown. Need parse data and compute.

User Japanese: extract specified IDs in order: P3-0005, P3-0036, P3-0072, P3-0116, P3-0156, P3-0185. records array of 6 objects keys id, code, value_mg integer. total_mg is sum of 1st, 3rd, 6th (1-indexed) value_mg of records. missing is measurement value for ID=P3-9999 if not exists null. Keys only records,total_mg,missing.

Need extract from provided lines:
P3-0005: line0006? 資料ID=P3-0005; 照合記号=5005e2e37b02; 測定値=365 mg.
P3-0036: line0037? P3-0036; 5a5e7d96dff7; 226 mg.
P3-0072: line0073? P3-0072; fa2abf54f886; 759 mg.
P3-0116: line0117? P3-0116; 99c846b00eb2; 408 mg.
P3-0156: line0157? P3-0156; 7d24e431678e; 200 mg.
P3-0185: line0186? P3-0185; a3f0e0065a7d; 537 mg.

Check IDs:
Line0006: P3-0005 yes.
Line0037: P3-0036 yes.
Line0073: P3-0072 yes.
Line0117: P3-0116 yes.
Line0157: P3-0156 yes.
Line0186: P3-0185 yes.

total_mg = records[0] + records[2] + records[5] = 365 + 759 + 537 = 1661? 365+759=1124; +537=1661.

missing: P3-9999 not present -> null.

Output JSON object only: {"records":[{"id":"P3-0005","code":"5005e2e37b02","value_mg":365},...],"total_mg":1661,"missing":null}

Need ensure no markdown. Final only JSON.
