<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Profile-HiGHmed-InfectionControl-Specimen" />
  <url value="http://highmed.org/fhir/StructureDefinition/ic/Specimen" />
  <version value="1.0.0" />
  <name value="Profile_HiGHmed_InfectionControl_Specimen" />
  <title value="Profile - HiGHmed - Infection Control - Specimen" />
  <status value="active" />
  <description value="Dieses Profil beschreibt die Probe in HiGHmed Projekt, Infection Control Use Case" />
  <fhirVersion value="4.0.1" />
  <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="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Specimen" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Specimen" />
  <derivation value="constraint" />
  <differential>
    <element id="Specimen">
      <path value="Specimen" />
      <definition value="Eine physikalische Probe zur Erforschung, Untersuchung oder Analyse, die von einer Person entnommen wurde oder die sich auf die Person bezieht." />
      <alias value="Probe" />
    </element>
    <element id="Specimen.identifier">
      <path value="Specimen.identifier" />
      <label value="Externer Identifikator" />
      <definition value="Eine eindeutige Kennung der Probe, die von einer Organisation außerhalb des Labors wie dem Auftraggeber zugeordnet wurde." />
      <mustSupport value="true" />
      <mapping>
        <identity value="v2" />
        <map value="OBR-2.1" />
        <comment value="v 2.3" />
      </mapping>
    </element>
    <element id="Specimen.accessionIdentifier">
      <path value="Specimen.accessionIdentifier" />
      <label value="Laborprobenidentifikator" />
      <short value="Eine eindeutige Kennung der Probe, die normalerweise vom Labor vergeben wird." />
      <min value="1" />
      <mustSupport value="true" />
      <mapping>
        <identity value="v2" />
        <map value="OBR-3.1" />
        <comment value="v 2.3" />
      </mapping>
    </element>
    <element id="Specimen.status">
      <path value="Specimen.status" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.type">
      <path value="Specimen.type" />
      <min value="1" />
      <constraint>
        <key value="Highmed-IC-Specimen-1" />
        <severity value="error" />
        <human value="Falls ein Isolat kodiert wird, muss die Probe auch angeben werden" />
        <expression value="coding.where(code = '429951000124103' and system = 'http://snomed.info/sct').exists() implies %resource.parent.exists()" />
        <source value="http://highmed.org/fhir/StructureDefinition/ic/Specimen" />
      </constraint>
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <description value="Use Case IC Probenart" />
        <valueSet value="http://highmed.org/fhir/ValueSet/ic/probenart" />
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="OBR-15" />
        <comment value="v 2.3" />
      </mapping>
    </element>
    <element id="Specimen.subject">
      <path value="Specimen.subject" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.receivedTime">
      <path value="Specimen.receivedTime" />
      <label value="Zeitpunkt des Probeneingangs" />
      <short value="Datum und Uhrzeit des Eingangs der Probe im Labor." />
      <mustSupport value="true" />
      <mapping>
        <identity value="v2" />
        <map value="OBR-14" />
        <comment value="v 2.3" />
      </mapping>
    </element>
    <element id="Specimen.parent">
      <path value="Specimen.parent" />
      <label value="Identifikator der Übergeordneten Probe" />
      <definition value="Eindeutige Kennung der verwandten Probe(n), bei der die Probe in Teilproben aufgeteilt ist." />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://highmed.org/fhir/StructureDefinition/ic/Specimen" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="v2" />
        <map value="OBR-29" />
      </mapping>
    </element>
    <element id="Specimen.collection">
      <path value="Specimen.collection" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.collection.collector">
      <path value="Specimen.collection.collector" />
      <label value="Identifikator des Probennehmers" />
      <short value="Die Person oder Organisation die für die Entnahme der Probe verantwortlich war." />
      <mustSupport value="true" />
      <mapping>
        <identity value="v2" />
        <map value="OBR-10" />
        <comment value="v 2.3" />
      </mapping>
    </element>
    <element id="Specimen.collection.collected[x]">
      <path value="Specimen.collection.collected[x]" />
      <label value="Zeitpunkt der Probenentnahme" />
      <definition value="Das Datum und die Uhrzeit, zu der die Probennahme angeordnet wurde oder stattfand." />
      <min value="1" />
      <condition value="dom-4" />
      <mustSupport value="true" />
      <mapping>
        <identity value="v2" />
        <map value="OBR-7" />
        <comment value="v 2.3" />
      </mapping>
    </element>
    <element id="Specimen.collection.bodySite">
      <path value="Specimen.collection.bodySite" />
      <label value="Probenentnahmestelle" />
      <code>
        <system value="http://hl7.org/fhir/sid/icd-10" />
      </code>
      <min value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <valueSet value="http://highmed.org/fhir/ValueSet/ic/probenentnahmestelle-mikrobiologischer-befund-snomedct" />
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="OBR-15.4,OBR-15.5" />
        <comment value="v 2.3" />
      </mapping>
    </element>
    <element id="Specimen.note">
      <path value="Specimen.note" />
      <label value="Kommentar (auch des Probennehmers)" />
      <short value="Kommentar des Probennehmers, Kommentar" />
      <max value="2" />
      <mustSupport value="true" />
      <mapping>
        <identity value="v2" />
        <map value="NTE" />
      </mapping>
    </element>
    <element id="Specimen.note.text">
      <path value="Specimen.note.text" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>