PackagesCanonicalsLogsProblems
    Packages
    tw.gov.mohw.nhi.empd@0.1.0
    https://nhicore.nhi.gov.tw/empd/StructureDefinition/Composition-EMPD
description: 用於表示電子處方箋資料集之文檔
package_name: tw.gov.mohw.nhi.empd
derivation: constraint
name: CompositionEMPD
type: Composition
elements:
  subject:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Group', 'http://hl7.org/fhir/StructureDefinition/Substance', 'https://nhicore.nhi.gov.tw/empd/StructureDefinition/Patient-EMPD', 'https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Location-twcore']
    index: 0
    elements:
      reference: {mustSupport: true, index: 1}
  encounter:
    type: Reference
    mustSupport: true
    refers: ['https://nhicore.nhi.gov.tw/empd/StructureDefinition/Encounter-EMPD']
    index: 2
    elements:
      reference: {mustSupport: true, index: 3}
  date: {short: 'Composition的編輯時間。[處方箋有效日期]。日期格式為西元 YYYYMMDD', index: 4}
  author:
    type: Reference
    refers: ['https://nhicore.nhi.gov.tw/empd/StructureDefinition/Organization-EMPD', 'https://nhicore.nhi.gov.tw/empd/StructureDefinition/Patient-EMPD', 'https://nhicore.nhi.gov.tw/empd/StructureDefinition/Practitioner-EMPD']
    index: 5
    elements:
      reference: {mustSupport: true, index: 6}
  custodian:
    type: Reference
    refers: ['https://nhicore.nhi.gov.tw/empd/StructureDefinition/Organization-EMPD']
    index: 7
    elements:
      reference: {mustSupport: true, index: 8}
  section:
    array: true
    min: 3
    index: 9
    slicing:
      rules: open
      discriminator:
      - {path: code.coding.code, type: value}
      min: 3
      slices:
        Coverage:
          match:
            code:
              coding: {code: 29762-2}
          schema:
            short: 就醫身分別
            array: true
            min: 1
            _required: true
            index: 10
            elements:
              code:
                index: 11
                elements:
                  coding:
                    index: 12
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://loinc.org'}
                        index: 13
                      code:
                        pattern: {type: Code, value: 29762-2}
                        index: 14
                      display:
                        pattern: {type: String, value: Social history Narrative}
                        index: 15
                    required: [system, code]
                required: [coding]
              entry:
                type: Reference
                refers: ['https://nhicore.nhi.gov.tw/empd/StructureDefinition/Coverage-EMR']
                index: 16
                elements:
                  reference: {index: 17}
                required: [reference]
            required: [entry, code]
        ObservationBodyWeight:
          match:
            code:
              coding: {code: 85353-1}
          schema:
            short: 體重。若調劑藥物劑量須配合體重而有所調整,此欄位為必填。
            index: 18
            elements:
              code:
                index: 19
                elements:
                  coding:
                    index: 20
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://loinc.org'}
                        index: 21
                      code:
                        pattern: {type: Code, value: 85353-1}
                        index: 22
                      display:
                        pattern: {type: String, value: 'Vital signs, weight, height, head circumference, oxygen saturation and BMI panel'}
                        index: 23
                    required: [system, code]
                required: [coding]
              entry:
                type: Reference
                refers: ['https://nhicore.nhi.gov.tw/empd/StructureDefinition/Observation-EMPD-BodyWeight']
                index: 24
                elements:
                  reference: {index: 25}
                required: [reference]
            required: [entry, code]
        Condition:
          match:
            code:
              coding: {code: 29548-5}
          schema:
            short: 診斷
            array: true
            min: 1
            _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: 29548-5}
                        index: 30
                      display:
                        pattern: {type: String, value: Diagnosis Narrative}
                        index: 31
                    required: [system, code]
                required: [coding]
              entry:
                type: Reference
                refers: ['https://nhicore.nhi.gov.tw/empd/StructureDefinition/Condition-EMPD']
                index: 32
                elements:
                  reference: {index: 33}
                required: [reference]
            required: [entry, code]
        MedicationPrescribed:
          match:
            code:
              coding: {code: 29551-9}
          schema:
            short: 處方內容
            array: true
            min: 1
            _required: true
            index: 34
            elements:
              code:
                index: 35
                elements:
                  coding:
                    index: 36
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://loinc.org'}
                        index: 37
                      code:
                        pattern: {type: Code, value: 29551-9}
                        index: 38
                      display:
                        pattern: {type: String, value: Medication prescribed Narrative}
                        index: 39
                    required: [system, code]
                required: [coding]
              entry:
                type: Reference
                refers: ['https://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-EMPD', 'https://nhicore.nhi.gov.tw/empd/StructureDefinition/MedicationRequest-EMPD']
                array: true
                min: 2
                index: 40
                slicing:
                  rules: open
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: 2
                  slices:
                    Medication:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['https://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-EMPD']
                        array: true
                        min: 1
                        _required: true
                        index: 41
                        elements:
                          reference: {index: 42}
                        required: [reference]
                    MedicationRequest:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['https://nhicore.nhi.gov.tw/empd/StructureDefinition/MedicationRequest-EMPD']
                        array: true
                        min: 1
                        _required: true
                        index: 43
                        elements:
                          reference: {index: 44}
                        required: [reference]
            required: [code]
package_version: 0.1.0
class: profile
kind: resource
url: https://nhicore.nhi.gov.tw/empd/StructureDefinition/Composition-EMPD
base: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Composition-twcore
version: 0.1.0
required: [encounter, subject, custodian]