<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="52a4b6e9-196b-4773-bd65-bb1164ba5d63" />
  <meta>
    <lastUpdated value="2023-05-25T03:27:17.977346+00:00" />
  </meta>
  <url value="https://simplifier.net/winningtest/blood-type-profile" />
  <name value="BloodType" />
  <title value="血型" />
  <status value="draft" />
  <date value="2023-05-25T03:27:25.3438472+00:00" />
  <description value="ABO与Rh血型" />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="sct-concept" />
    <uri value="http://snomed.info/conceptdomain" />
    <name value="SNOMED CT Concept Domain Binding" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <mapping>
    <identity value="sct-attr" />
    <uri value="http://snomed.org/attributebinding" />
    <name value="SNOMED CT Attribute Binding" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="https://simplifier.net/winningtest/laboratory-observation-profile" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation.code">
      <path value="Observation.code" />
      <fixedCodeableConcept>
        <coding>
          <system value="http://loinc.org" />
          <version value="2.72" />
          <code value="882-1" />
          <display value="ABO and Rh group [Type] in Blood" />
        </coding>
        <text value="ABO and Rh group [Type] in Blood" />
      </fixedCodeableConcept>
    </element>
    <element id="Observation.code.coding.system">
      <path value="Observation.code.coding.system" />
      <fixedUri value="http://loinc.org" />
    </element>
    <element id="Observation.code.coding.code">
      <path value="Observation.code.coding.code" />
      <short value="ABO血型" />
      <fixedCode value="14578-9" />
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="preferred" />
        <description value="ABORh" />
        <valueSet value="https://loinc.org/LL2972-9/" />
      </binding>
    </element>
    <element id="Observation.interpretation">
      <path value="Observation.interpretation" />
      <max value="0" />
    </element>
    <element id="Observation.referenceRange">
      <path value="Observation.referenceRange" />
      <max value="0" />
    </element>
    <element id="Observation.hasMember">
      <path value="Observation.hasMember" />
      <max value="0" />
    </element>
    <element id="Observation.derivedFrom">
      <path value="Observation.derivedFrom" />
      <max value="0" />
    </element>
    <element id="Observation.component">
      <path value="Observation.component" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="code" />
        </discriminator>
        <rules value="closed" />
      </slicing>
      <min value="1" />
      <max value="2" />
    </element>
    <element id="Observation.component:ABOGroup">
      <path value="Observation.component" />
      <sliceName value="ABOGroup" />
      <short value="ABO血型" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.component:ABOGroup.code">
      <path value="Observation.component.code" />
      <fixedCodeableConcept>
        <coding>
          <system value="http://loinc.org" />
          <version value="2.72" />
          <code value="883-9" />
          <display value="ABO group [Type] in Blood" />
        </coding>
      </fixedCodeableConcept>
    </element>
    <element id="Observation.component:ABOGroup.value[x]">
      <path value="Observation.component.value[x]" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="preferred" />
        <description value="ABO group" />
        <valueSet value="https://loinc.org/LL2419-1/" />
      </binding>
    </element>
    <element id="Observation.component:ABOGroup.interpretation">
      <path value="Observation.component.interpretation" />
      <max value="0" />
    </element>
    <element id="Observation.component:ABOGroup.referenceRange">
      <path value="Observation.component.referenceRange" />
      <max value="0" />
    </element>
    <element id="Observation.component:RhGroup">
      <path value="Observation.component" />
      <sliceName value="RhGroup" />
      <short value="Rh血型" />
      <max value="1" />
    </element>
    <element id="Observation.component:RhGroup.code">
      <path value="Observation.component.code" />
      <fixedCodeableConcept>
        <coding>
          <system value="http://loinc.org" />
          <version value="2.38" />
          <code value="10331-7" />
          <display value="Rh [Type] in Blood" />
        </coding>
      </fixedCodeableConcept>
    </element>
    <element id="Observation.component:RhGroup.value[x]">
      <path value="Observation.component.value[x]" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="preferred" />
        <description value="Pos|Neg" />
        <valueSet value="https://loinc.org/LL360-9/" />
      </binding>
    </element>
    <element id="Observation.component:RhGroup.interpretation">
      <path value="Observation.component.interpretation" />
      <max value="0" />
    </element>
    <element id="Observation.component:RhGroup.referenceRange">
      <path value="Observation.component.referenceRange" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>