0.4.4 - ci-build

StandardPatientHealthRecordIG, published by MITRE. This is not an authorized publication; it is the continuous build for version 0.4.4). This version is based on the current content of https://github.com/HL7/standard-patient-health-record-ig/ and changes regularly. See the Directory of published versions

: HKCategorySamplePregnancyToObservation - XML Representation

Draft as of 2023-09-13

Raw xml | Download



<StructureMap xmlns="http://hl7.org/fhir">
  <id value="HKCategorySamplePregnancyToObservation"/>
  <text>
    <status value="additional"/>
    <div xmlns="http://www.w3.org/1999/xhtml">Placeholder</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-09-13T16:34:31+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>