<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ObservationLab-adultcheck" />
  <url value="https://tstifhir.azurehealthcareapis.com/StructureDefinition/ObservationLab-adultcheck" />
  <version value="0.1.0" />
  <name value="ObservationLabAdultCheck" />
  <title value="Observation Lab - AdultCheck" />
  <status value="active" />
  <date value="2023-07-24T22:42:36+08:00" />
  <description value="此Observation Lab AdultCheck Profile說明成人預防保健檢驗資料" />
  <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://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Observation-laboratoryResult-twcore" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation.identifier">
      <path value="Observation.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="type.coding.code" />
        </discriminator>
        <discriminator>
          <type value="value" />
          <path value="type.coding.system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.identifier:medicalrecordNumber">
      <path value="Observation.identifier" />
      <sliceName value="medicalrecordNumber" />
      <short value="適用該就醫紀錄之就診序號" />
      <definition value="適用於該就醫紀錄之就診序號" />
      <requirements value="病人幾乎總是被指定一個特定的數值型的唯一識別碼（identifier）" />
      <min value="0" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.identifier:medicalrecordNumber.id">
      <path value="Observation.identifier.id" />
      <short value="唯一可識別ID，以供資料項目間相互參照。" />
      <definition value="resource中資料項目的唯一ID（用於內部參照）。這可以是任何不含空格的字串。" />
    </element>
    <element id="Observation.identifier:medicalrecordNumber.extension">
      <path value="Observation.identifier.extension" />
      <short value="擴充的資料項目" />
      <definition value="擴充的資料項目" />
    </element>
    <element id="Observation.identifier:medicalrecordNumber.use">
      <path value="Observation.identifier.use" />
      <short value="usual ｜ official ｜ temp ｜ secondary ｜ old （如果知道）" />
      <definition value="這個唯一識別碼（identifier）的用途" />
      <comment value="應用程式可以假定一個識別碼是永久的，除非它明確說它是暫時的。" />
      <requirements value="允許從一組識別碼中為特定的使用情境選擇適當的識別碼" />
      <patternCode value="official" />
      <mustSupport value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="IdentifierUse" />
        </extension>
        <strength value="required" />
        <description value="如果知道，請說明此識別碼的目的；應填入[IdentifierUse](http://hl7.org/fhir/R4/valueset-identifier-use.html)代碼表中的其中一個代碼。" />
        <valueSet value="http://hl7.org/fhir/ValueSet/identifier-use|4.0.1" />
      </binding>
    </element>
    <element id="Observation.identifier:medicalrecordNumber.type">
      <path value="Observation.identifier.type" />
      <short value="身份識別碼（identifier）的型別說明" />
      <definition value="識別碼的代碼型別，用於決定特定目適用的識別碼。" />
      <comment value="這個資料項目只涉及識別碼的一般類別。它 **必須沒有（SHALL NOT）** 被用於與Identifier.system 1..1對應的代碼。一些識別碼可能由於常見的用法而屬於多個類別。在系統是已知的情況下，型別是不必要的，因為型別總是系統定義的一部分。然而，系統經常需要處理系統不為人知的識別碼。型別和系統之間不是1:1的關係，因為許多不同的系統有相同的型別。" />
      <requirements value="允許使用者在不知道識別碼系統的情況下利用識別碼" />
      <min value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <description value="識別碼的型別，用於決定特定目的所適用的識別碼；應填入[臺灣識別碼類型值集](https://twcore.mohw.gov.tw/ig/twcore/ValueSet-identifier-type-tw.html)代碼表中適合的代碼，確定無適合的代碼才可以使用其他代碼中的代碼來表示。" />
        <valueSet value="https://twcore.mohw.gov.tw/ig/twcore/ValueSet/identifier-type-tw" />
      </binding>
    </element>
    <element id="Observation.identifier:medicalrecordNumber.type.id">
      <path value="Observation.identifier.type.id" />
      <definition value="resource中資料項目的唯一ID（用於內部參照），這可以是任何不含空格的字串。" />
    </element>
    <element id="Observation.identifier:medicalrecordNumber.type.coding.system">
      <path value="Observation.identifier.type.coding.system" />
      <min value="1" />
      <patternUri value="http://terminology.hl7.org/CodeSystem/v2-0203" />
    </element>
    <element id="Observation.identifier:medicalrecordNumber.type.coding.code">
      <path value="Observation.identifier.type.coding.code" />
      <min value="1" />
      <patternCode value="MRT" />
    </element>
    <element id="Observation.identifier:medicalrecordNumber.system">
      <path value="Observation.identifier.system" />
      <short value="就診序號發號者/機構/單位" />
      <definition value="建立值的命名空間－即一個描述一組值的唯一URL" />
      <comment value="Identifier.system總是區分大小寫" />
      <requirements value="有許多識別碼的集合。為了進行兩個識別碼的對應，我們需要知道我們處理的是哪一組。系統指明了一個特定的唯一識別碼集。" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.identifier:medicalrecordNumber.value">
      <path value="Observation.identifier.value" />
      <short value="唯一值。&#xD;&#xA;例如：就診序號為0123456789" />
      <definition value="識別碼中通常與使用者有關的部分，在系統情境內是唯一的。" />
      <comment value="如果此值是一個完整的URI，那麼此系統 **必須（SHALL）** 是urn:ietf:rfc:3986。此值的主要目的是為了可運算的對應。因此，為了比較的目的，它可能會被正規化（例如：去除不重要的空白、破折號等）。一個為人顯示的格式化的值可以使用[Rendered Value](http://hl7.org/fhir/R4/extension-rendered-value.html)擴充來傳達。除非對Identifier.system的了解使處理者確信不區分大小寫的處理是安全的，否則Identifier.value應被視為區分大小寫。" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.identifier:medicalrecordNumber.period">
      <path value="Observation.identifier.period" />
      <short value="此身份識別碼（identifier）的使用效期" />
      <definition value="識別碼有效／曾經有效使用的時段或期間" />
    </element>
    <element id="Observation.identifier:medicalrecordNumber.assigner">
      <path value="Observation.identifier.assigner" />
      <short value="簽發identifier的機構（可以只是文字表述）" />
      <definition value="簽發／管理識別碼的機構" />
      <comment value="Identifier.assigner可以省略.reference資料項目，只包含一個.display資料項目，反映指定機構的名稱或其他文字表述資訊。" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-hosp-twcore" />
      </type>
    </element>
    <element id="Observation.status">
      <path value="Observation.status" />
      <patternCode value="preliminary" />
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <short value="成人預防保健檢驗項目" />
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://tstifhir.azurehealthcareapis.com/StructureDefinition/Patient-adultcheck" />
      </type>
    </element>
    <element id="Observation.effective[x]">
      <path value="Observation.effective[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.effective[x]:effectiveDateTime">
      <path value="Observation.effective[x]" />
      <sliceName value="effectiveDateTime" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.performer">
      <path value="Observation.performer" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-hosp-twcore" />
      </type>
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.value[x]:valueQuantity">
      <path value="Observation.value[x]" />
      <sliceName value="valueQuantity" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Quantity" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.value[x]:valueQuantity.value">
      <path value="Observation.value[x].value" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.value[x]:valueQuantity.unit">
      <path value="Observation.value[x].unit" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.value[x]:valueQuantity.system">
      <path value="Observation.value[x].system" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.value[x]:valueQuantity.code">
      <path value="Observation.value[x].code" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.value[x]:valueString">
      <path value="Observation.value[x]" />
      <sliceName value="valueString" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.referenceRange">
      <path value="Observation.referenceRange" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.referenceRange.low">
      <path value="Observation.referenceRange.low" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.referenceRange.low.value">
      <path value="Observation.referenceRange.low.value" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.referenceRange.low.unit">
      <path value="Observation.referenceRange.low.unit" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.referenceRange.low.system">
      <path value="Observation.referenceRange.low.system" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.referenceRange.high">
      <path value="Observation.referenceRange.high" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.referenceRange.high.value">
      <path value="Observation.referenceRange.high.value" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.referenceRange.high.unit">
      <path value="Observation.referenceRange.high.unit" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.referenceRange.high.system">
      <path value="Observation.referenceRange.high.system" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>