PackagesCanonicalsLogsProblems
    Packages
    tw.gov.mohw.emr@0.2.0
    https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/Composition-DS
description: 用於表示調劑單張資料集之文檔
package_name: tw.gov.mohw.emr
derivation: constraint
name: CompositionDS
type: Composition
elements:
  subject:
    type: Reference
    refers: ['https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/Patient-DS']
    index: 0
  encounter:
    type: Reference
    mustSupport: true
    refers: ['https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/Encounter-DS']
    index: 1
  author:
    type: Reference
    refers: ['https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/Organization-DS', 'https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/Patient-DS', 'https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/Practitioner-DS']
    index: 2
  custodian:
    type: Reference
    refers: ['https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/Organization-DS']
    index: 3
  section:
    array: true
    min: 3
    index: 4
    slicing:
      rules: open
      discriminator:
      - {path: code.coding.code, type: value}
      min: 3
      slices:
        Coverage:
          match:
            code:
              coding: {code: 29762-2}
          schema:
            short: 就醫身分別
            _required: true
            index: 5
            elements:
              code:
                index: 6
                elements:
                  coding:
                    index: 7
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://loinc.org'}
                        index: 8
                      code:
                        pattern: {type: Code, value: 29762-2}
                        index: 9
                      display:
                        pattern: {type: String, value: Social history Narrative}
                        index: 10
                    required: [system, code]
                required: [coding]
              entry:
                type: Reference
                refers: ['https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/Coverage-EMR']
                index: 11
            required: [entry, code]
        BodyWeight:
          match:
            code:
              coding: {code: 85353-1}
          schema:
            short: 體重
            index: 12
            elements:
              code:
                index: 13
                elements:
                  coding:
                    index: 14
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://loinc.org'}
                        index: 15
                      code:
                        pattern: {type: Code, value: 85353-1}
                        index: 16
                      display:
                        pattern: {type: String, value: 'Vital signs, weight, height, head circumference, oxygen saturation and BMI panel'}
                        index: 17
                    required: [system, code]
                required: [coding]
              entry:
                type: Reference
                refers: ['https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/Observation-DS-BodyWeight']
                index: 18
            required: [entry, code]
        Condition:
          match:
            code:
              coding: {code: 29548-5}
          schema:
            short: 診斷
            _required: true
            index: 19
            elements:
              code:
                index: 20
                elements:
                  coding:
                    index: 21
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://loinc.org'}
                        index: 22
                      code:
                        pattern: {type: Code, value: 29548-5}
                        index: 23
                      display:
                        pattern: {type: String, value: Diagnosis Narrative}
                        index: 24
                    required: [system, code]
                required: [coding]
              entry:
                type: Reference
                refers: ['https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/Condition-DS']
                index: 25
            required: [entry, code]
        MedicationPrescribed:
          match:
            code:
              coding: {code: 29551-9}
          schema:
            short: 處方內容
            _required: true
            index: 26
            elements:
              code:
                index: 27
                elements:
                  coding:
                    index: 28
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://loinc.org'}
                        index: 29
                      code:
                        pattern: {type: Code, value: 29551-9}
                        index: 30
                      display:
                        pattern: {type: String, value: Medication prescribed Narrative}
                        index: 31
                    required: [system, code]
                required: [coding]
              entry:
                type: Reference
                refers: ['https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/ChargeItem-DS', 'https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/Medication-DS', 'https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/MedicationDispense-DS', 'https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/MedicationRequest-DS']
                array: true
                min: 3
                index: 32
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: 3
                  slices:
                    MedicationRequest:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/MedicationRequest-DS']
                        _required: true
                        index: 33
                      min: 1
                    Medication:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/Medication-DS']
                        _required: true
                        index: 34
                      min: 1
                    MedicationDispense:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/MedicationDispense-DS']
                        _required: true
                        index: 35
                      min: 1
                    sliceEntry:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/ChargeItem-DS']
                        index: 36
                      max: 1
            required: [code]
        Media:
          match:
            code:
              coding: {code: 85647-6}
          schema:
            short: 領藥者數位簽章
            index: 37
            elements:
              code:
                index: 38
                elements:
                  coding:
                    index: 39
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://loinc.org'}
                        index: 40
                      code:
                        pattern: {type: Code, value: 85647-6}
                        index: 41
                    required: [system, code]
                required: [coding]
              entry:
                type: Reference
                refers: ['https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/Media-DS']
                index: 42
            required: [entry, code]
package_version: 0.2.0
class: profile
kind: resource
url: https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/Composition-DS
base: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Composition-twcore
version: 0.2.0
required: [encounter, subject, custodian]