<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Bundle-adultcheck" />
  <url value="https://tstifhir.azurehealthcareapis.com/StructureDefinition/Bundle-adultcheck" />
  <version value="0.1.0" />
  <name value="BundleAdultCheck" />
  <title value="Bundle - AdultCheck" />
  <status value="active" />
  <date value="2023-08-04T22:42:36+08:00" />
  <description value="此Bundle AdultCheck Profile說明成人預防保健服務檢查單資料" />
  <fhirVersion value="4.0.1" />
  <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="cda" />
    <uri value="http://hl7.org/v3/cda" />
    <name value="CDA (R2)" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Bundle" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Bundle" />
  <derivation value="constraint" />
  <differential>
    <element id="Bundle.identifier">
      <path value="Bundle.identifier" />
      <short value="該成人預防保健服務檢查單之就診序號" />
      <definition value="該成人預防保健服務檢查單之就診序號" />
      <requirements value="病人幾乎總是被指定一個特定的數值型的唯一識別碼（identifier）" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.identifier.id">
      <path value="Bundle.identifier.id" />
      <short value="唯一可識別ID，以供資料項目間相互參照。" />
      <definition value="resource中資料項目的唯一ID（用於內部參照）。這可以是任何不含空格的字串。" />
    </element>
    <element id="Bundle.identifier.extension">
      <path value="Bundle.identifier.extension" />
      <short value="擴充的資料項目" />
      <definition value="擴充的資料項目" />
    </element>
    <element id="Bundle.identifier.use">
      <path value="Bundle.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="Bundle.identifier.type">
      <path value="Bundle.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="Bundle.identifier.type.id">
      <path value="Bundle.identifier.type.id" />
      <definition value="resource中資料項目的唯一ID（用於內部參照），這可以是任何不含空格的字串。" />
    </element>
    <element id="Bundle.identifier.type.coding.system">
      <path value="Bundle.identifier.type.coding.system" />
      <min value="1" />
      <patternUri value="http://terminology.hl7.org/CodeSystem/v2-0203" />
    </element>
    <element id="Bundle.identifier.type.coding.code">
      <path value="Bundle.identifier.type.coding.code" />
      <min value="1" />
      <patternCode value="MRT" />
    </element>
    <element id="Bundle.identifier.system">
      <path value="Bundle.identifier.system" />
      <short value="就診序號發號者/機構/單位" />
      <definition value="建立值的命名空間－即一個描述一組值的唯一URL" />
      <comment value="Identifier.system總是區分大小寫" />
      <requirements value="有許多識別碼的集合。為了進行兩個識別碼的對應，我們需要知道我們處理的是哪一組。系統指明了一個特定的唯一識別碼集。" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.identifier.value">
      <path value="Bundle.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="Bundle.identifier.period">
      <path value="Bundle.identifier.period" />
      <short value="此身份識別碼（identifier）的使用效期" />
      <definition value="識別碼有效／曾經有效使用的時段或期間" />
    </element>
    <element id="Bundle.identifier.assigner">
      <path value="Bundle.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="Bundle.type">
      <path value="Bundle.type" />
      <patternCode value="document" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.timestamp">
      <path value="Bundle.timestamp" />
      <definition value="Bundle創建時間" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry">
      <path value="Bundle.entry" />
      <slicing>
        <discriminator>
          <type value="profile" />
          <path value="resource" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="3" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry.fullUrl">
      <path value="Bundle.entry.fullUrl" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry:composition">
      <path value="Bundle.entry" />
      <sliceName value="composition" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:composition.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Composition" />
        <profile value="https://tstifhir.azurehealthcareapis.com/StructureDefinition/Composition-adultcheck" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry:patient">
      <path value="Bundle.entry" />
      <sliceName value="patient" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:patient.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Patient" />
        <profile value="https://tstifhir.azurehealthcareapis.com/StructureDefinition/Patient-adultcheck" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry:organization">
      <path value="Bundle.entry" />
      <sliceName value="organization" />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:organization.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Organization" />
        <profile value="https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-hosp-twcore" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry:encounter">
      <path value="Bundle.entry" />
      <sliceName value="encounter" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:encounter.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Encounter" />
        <profile value="https://tstifhir.azurehealthcareapis.com/StructureDefinition/Encounter-adultcheck" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry:condition">
      <path value="Bundle.entry" />
      <sliceName value="condition" />
      <min value="0" />
      <max value="6" />
    </element>
    <element id="Bundle.entry:condition.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Condition" />
        <profile value="https://tstifhir.azurehealthcareapis.com/StructureDefinition/Condition-adultcheck" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry:observationLab">
      <path value="Bundle.entry" />
      <sliceName value="observationLab" />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:observationLab.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Observation" />
        <profile value="https://tstifhir.azurehealthcareapis.com/StructureDefinition/ObservationLab-adultcheck" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry:observationDepress">
      <path value="Bundle.entry" />
      <sliceName value="observationDepress" />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:observationDepress.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Observation" />
        <profile value="https://tstifhir.azurehealthcareapis.com/StructureDefinition/ObservationDepression-adultcheck" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry:observationSocial">
      <path value="Bundle.entry" />
      <sliceName value="observationSocial" />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:observationSocial.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Observation" />
        <profile value="https://tstifhir.azurehealthcareapis.com/StructureDefinition/ObservationSocial-adultcheck" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry:observationHeight">
      <path value="Bundle.entry" />
      <sliceName value="observationHeight" />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:observationHeight.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Observation" />
        <profile value="https://tstifhir.azurehealthcareapis.com/StructureDefinition/ObservationHeight-adultcheck" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry:observationWeight">
      <path value="Bundle.entry" />
      <sliceName value="observationWeight" />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:observationWeight.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Observation" />
        <profile value="https://tstifhir.azurehealthcareapis.com/StructureDefinition/ObservationWeight-adultcheck" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry:observationWaist">
      <path value="Bundle.entry" />
      <sliceName value="observationWaist" />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:observationWaist.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Observation" />
        <profile value="https://tstifhir.azurehealthcareapis.com/StructureDefinition/ObservationWaist-adultcheck" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry:observationBMI">
      <path value="Bundle.entry" />
      <sliceName value="observationBMI" />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:observationBMI.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Observation" />
        <profile value="https://tstifhir.azurehealthcareapis.com/StructureDefinition/ObservationBMI-adultcheck" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry:observationPressure">
      <path value="Bundle.entry" />
      <sliceName value="observationPressure" />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:observationPressure.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Observation" />
        <profile value="https://tstifhir.azurehealthcareapis.com/StructureDefinition/ObservationPressure-adultcheck" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry:disgnostic">
      <path value="Bundle.entry" />
      <sliceName value="disgnostic" />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:disgnostic.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="DiagnosticReport" />
        <profile value="https://tstifhir.azurehealthcareapis.com/StructureDefinition/DiagnosticReport-adultcheck" />
      </type>
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>