PackagesCanonicalsLogsProblems
    Packages
    silth.fhir.th.mophpc1@0.1.1
    https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-medicationdispense-base
description: การจ่ายยา
package_name: silth.fhir.th.mophpc1
derivation: constraint
name: MophPcMedicationDispenseBase
type: MedicationDispense
elements:
  whenHandedOver: {mustSupport: true, index: 18}
  medication[x]:
    elements:
      coding:
        index: 5
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          slices:
            tmt:
              match: {system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-tmt'}
              schema:
                short: รหัสยามาตรฐาน TMT
                binding: {strength: extensible, valueSet: 'https://terms.sil-th.org/core/ValueSet/th-tmt'}
                mustSupport: true
                index: 6
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://terms.sil-th.org/core/CodeSystem/cs-th-tmt'}
                    index: 7
                  code: {index: 8}
                required: [system, code]
            local:
              match: {system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-local-drug-code'}
              schema:
                short: รหัสยาของสถานพยาบาล
                mustSupport: true
                index: 9
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://terms.sil-th.org/core/CodeSystem/cs-th-local-drug-code'}
                    index: 10
                  code: {index: 11}
                required: [system, code]
  medicationCodeableConcept: {type: CodeableConcept, mustSupport: true, choiceOf: medication, index: 4}
  extension:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        deliveryMode:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-medicationdispense-med-delivery-mode', index: 1}
          min: 0
  daysSupply: {mustSupport: true, index: 17}
  quantity: {mustSupport: true, index: 16}
  authorizingPrescription:
    type: Reference
    mustSupport: true
    refers: ['https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-medicationrequest-base']
    index: 15
  subject:
    type: Reference
    mustSupport: true
    refers: ['https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-patient-base']
    index: 12
  performer:
    mustSupport: true
    index: 13
    elements:
      actor:
        type: Reference
        short: เภสัชกรที่จ่ายยา
        mustSupport: true
        refers: ['https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-practitioner-base']
        index: 14
  medication:
    mustSupport: true
    choices: [medicationCodeableConcept]
    index: 3
package_version: 0.1.1
extensions:
  deliveryMode: {url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-medicationdispense-med-delivery-mode', min: 0, type: Extension, mustSupport: true, index: 1}
class: profile
kind: resource
url: https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-medicationdispense-base
base: http://hl7.org/fhir/StructureDefinition/MedicationDispense
version: 0.1.1