public IResource MapBloodPressure(ViSiBloodPressure bp) { var observation = new Observation { Id = bp.Id.ToString(), Subject = new ResourceReference($"Patient/{bp.PatientId}"), Effective = new FhirDateTime(bp.MeasuredAt), Status = ObservationStatus.Final }; observation.Category.Add(new CodeableConcept("http://hl7.org/fhir/observation-category", "vital-signs", "Vital Signs")); observation.Component.Add( new Observation.ComponentComponent() { Code = new CodeableConcept("http://loinc.org", "8480-6", "Systolic blood pressure"), Value = new Quantity(bp.Systolic, "mm[Hg]", VonkConstants.UcumSystem) }); observation.Component.Add( new Observation.ComponentComponent() { Code = new CodeableConcept("http://loinc.org", "8462-4", "Diastolic blood pressure"), Value = new Quantity(bp.Diastolic, "mm[Hg]", VonkConstants.UcumSystem) }); return(observation.AsIResource()); }