0.4.4 - ci-build
StandardPatientHealthRecordIG - Local Development build (v0.4.4). See the Directory of published versions
Draft as of 2023-03-03 |
<StructureMap xmlns="http://hl7.org/fhir">
<id value="HKCategorySamplePregnancyToObservation"/>
<text>
<status value="additional"/>
<div xmlns="http://www.w3.org/1999/xhtml"><pre>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";
}</pre></div>
</text>
<url
value="https://open-health-manager.github.io/standard-patient-health-record-ig/StructureMap/HKCategorySamplePregnancyToObservation"/>
<version value="0.4.4"/>
<name value="HKCategorySamplePregnancyToObservation"/>
<status value="draft"/>
<date value="2023-03-03T21:03:08+00:00"/>
<publisher value="MITRE"/>
<contact>
<name value="MITRE"/>
<telecom>
<system value="url"/>
<value
value="https://open-health-manager.github.io/standard-patient-health-record-ig"/>
</telecom>
</contact>
<structure>
<url
value="https://open-health-manager.github.io/standard-patient-health-record-ig/StructureDefinition/apple-healthkit-sample"/>
<mode value="source"/>
<alias value="HKCategorySamplePregnancy"/>
</structure>
<structure>
<url
value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-pregnancystatus"/>
<mode value="target"/>
<alias value="UsCoreObservationPregnancyStatus"/>
</structure>
<group>
<name value="HKCategorySamplePregnancyToObservation"/>
<typeMode value="none"/>
<input>
<name value="sample"/>
<type value="HKCategorySamplePregnancy"/>
<mode value="source"/>
</input>
<input>
<name value="observation"/>
<type value="UsCoreObservationPregnancyStatus"/>
<mode value="target"/>
</input>
<rule>
<name value="set status"/>
<source>
<context value="sample"/>
</source>
<target>
<context value="observation"/>
<contextType value="variable"/>
<element value="status"/>
<transform value="copy"/>
<parameter>
<valueString value="final"/>
</parameter>
</target>
</rule>
<rule>
<name value="set category"/>
<source>
<context value="sample"/>
</source>
<target>
<context value="observation"/>
<contextType value="variable"/>
<element value="category"/>
<variable value="category"/>
</target>
<target>
<context value="category"/>
<contextType value="variable"/>
<element value="coding"/>
<variable value="coding"/>
</target>
<rule>
<name value="set category code system"/>
<source>
<context value="sample"/>
</source>
<target>
<context value="coding"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString
value="http://terminology.hl7.org/CodeSystem/observation-category"/>
</parameter>
</target>
</rule>
<rule>
<name value="set category code"/>
<source>
<context value="sample"/>
</source>
<target>
<context value="coding"/>
<contextType value="variable"/>
<element value="code"/>
<transform value="copy"/>
<parameter>
<valueString value="social-history"/>
</parameter>
</target>
</rule>
</rule>
<rule>
<name value="set code"/>
<source>
<context value="sample"/>
</source>
<target>
<context value="observation"/>
<contextType value="variable"/>
<element value="code"/>
<variable value="code"/>
</target>
<target>
<context value="code"/>
<contextType value="variable"/>
<element value="coding"/>
<variable value="coding"/>
</target>
<rule>
<name value="set code system"/>
<source>
<context value="sample"/>
</source>
<target>
<context value="coding"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString value="http://loinc.org"/>
</parameter>
</target>
</rule>
<rule>
<name value="set code"/>
<source>
<context value="sample"/>
</source>
<target>
<context value="coding"/>
<contextType value="variable"/>
<element value="code"/>
<transform value="copy"/>
<parameter>
<valueString value="82810-3"/>
</parameter>
</target>
</rule>
</rule>
<rule>
<name value="startDate to effectiveDateTime"/>
<source>
<context value="sample"/>
<element value="startDate"/>
<variable value="startDate"/>
</source>
<target>
<context value="observation"/>
<contextType value="variable"/>
<element value="effectiveDateTime"/>
<transform value="copy"/>
<parameter>
<valueId value="startDate"/>
</parameter>
</target>
</rule>
<rule>
<name value="set valueCodeableConcept"/>
<source>
<context value="sample"/>
</source>
<target>
<context value="observation"/>
<contextType value="variable"/>
<element value="valueCodeableConcept"/>
<variable value="value"/>
</target>
<target>
<context value="value"/>
<contextType value="variable"/>
<element value="coding"/>
<variable value="coding"/>
</target>
<rule>
<name value="set value system"/>
<source>
<context value="sample"/>
</source>
<target>
<context value="coding"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString value="http://snomed.info/sct"/>
</parameter>
</target>
</rule>
<rule>
<name value="set value"/>
<source>
<context value="sample"/>
</source>
<target>
<context value="coding"/>
<contextType value="variable"/>
<element value="code"/>
<transform value="copy"/>
<parameter>
<valueString value="77386006"/>
</parameter>
</target>
</rule>
</rule>
</group>
</StructureMap>
IG © 2022+ MITRE. Package StandardPatientHealthRecordIG#0.4.4 based on FHIR 4.0.1. Generated 2023-03-03
Links: Table of Contents |
QA Report