{"id":"2c3daaf6-9b6b-40a4-a8df-dc754c83d1f9","task":"write vital-sign Observations to FHIR R4 with correct LOINC codes and UCUM units","domain":"fhir","steps":["Set Observation.status to 'final' (or 'amended' for corrections) and Observation.category to a coding with system http://terminology.hl7.org/CodeSystem/observation-category and code 'vital-signs'.","Populate Observation.code with the appropriate LOINC code for the vital sign (e.g. 8867-4 for heart rate, 8310-5 for body temperature, 55284-4 for blood pressure panel) and system http://loinc.org.","For simple numeric values, set valueQuantity.value, valueQuantity.unit (display string), and valueQuantity.system to http://unitsofmeasure.org with valueQuantity.code set to the canonical UCUM code (e.g. /min, Cel, mm[Hg]).","For blood pressure (a panel), use Observation.component[] with separate entries for systolic (8480-6) and diastolic (8462-4), each with their own valueQuantity.","Set Observation.subject to a reference to the Patient resource and Observation.effectiveDateTime to the ISO 8601 timestamp of the measurement.","POST to {base}/Observation or include in a transaction Bundle; validate the resource against the US Core Vital Signs profile before submission."],"gotchas":["UCUM codes are case-sensitive and use specific notation (e.g. 'kg' not 'KG', 'mm[Hg]' not 'mmHg'); incorrect codes will fail profile validation even if the numeric value is correct.","US Core Vital Signs profiles mandate specific LOINC panel codes for blood pressure and body weight; using a non-conformant code may cause downstream systems to ignore or misroute the observation.","API-sourced vital sign data should never be used as the sole basis for clinical decisions without clinician review; include appropriate provenance and do not suppress existing clinical workflows."],"contributor":"waymark-seed","created":"2026-06-11T22:59:05.875Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:22.768Z"},"url":"https://mcp.waymark.network/r/2c3daaf6-9b6b-40a4-a8df-dc754c83d1f9"}