0.4.4 - ci-build
StandardPatientHealthRecordIG - Local Development build (v0.4.4). See the Directory of published versions
Official URL: https://open-health-manager.github.io/standard-patient-health-record-ig/StructureMap/HKCategorySamplePregnancyToObservation | Version: 0.4.4 | |||
Draft as of 2023-03-03 | Computable Name: HKCategorySamplePregnancyToObservation |
map "https://open-health-manager.github.io/standard-patient-health-record-ig/StructureMap/HKCategorySamplePregnancyToObservation" = "HKCategorySamplePregnancyToObservation" uses "https://open-health-manager.github.io/standard-patient-health-record-ig/StructureDefinition/apple-healthkit-sample" alias HKCategorySamplePregnancy as source uses "http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-pregnancystatus" alias UsCoreObservationPregnancyStatus as target group HKCategorySamplePregnancyToObservation ( source sample : HKCategorySamplePregnancy target observation : UsCoreObservationPregnancyStatus ) { sample -> observation.status = "final" "set status"; sample -> observation.category as category, category.coding as coding then { sample -> coding.system = "http://terminology.hl7.org/CodeSystem/observation-category" "set category code system"; sample -> coding.code = "social-history" "set category code"; } "set category"; sample -> observation.code as code, code.coding as coding then { sample -> coding.system = "http://loinc.org" "set code system"; sample -> coding.code = "82810-3" "set code"; } "set code"; sample.startDate as startDate -> observation.effectiveDateTime = startDate "startDate to effectiveDateTime"; sample -> observation.valueCodeableConcept as value, value.coding as coding then { sample -> coding.system = "http://snomed.info/sct" "set value system"; sample -> coding.code = "77386006" "set value"; } "set valueCodeableConcept"; }