PackagesCanonicalsLogsProblems
    Packages
    silth.fhir.th.mophpc1@0.1.1
    https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-medicationstatement-base
description: การใช้ยาของผู้รับบริการ
package_name: silth.fhir.th.mophpc1
derivation: constraint
name: MophPcMedicationStatementBase
type: MedicationStatement
elements:
  category:
    mustSupport: true
    index: 5
    elements:
      coding:
        index: 6
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: 1
          slices:
            eclaim:
              match: {system: null}
              schema:
                binding: {strength: extensible, valueSet: 'https://terms.sil-th.org/core/ValueSet/vs-eclaim-medication-category'}
                mustSupport: true
                _required: true
                index: 7
                elements:
                  system: {index: 8}
                  code: {index: 9}
                required: [system, code]
    required: [coding]
  dosage:
    mustSupport: true
    index: 28
    elements:
      text: {mustSupport: true, index: 29}
  medication[x]:
    elements:
      coding:
        index: 13
        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: 14
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://terms.sil-th.org/core/CodeSystem/cs-th-tmt'}
                    index: 15
                  code: {index: 16}
                required: [system, code]
            local:
              match: {system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-local-drug-code'}
              schema:
                short: รหัสยาของสถานพยาบาล
                mustSupport: true
                index: 17
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://terms.sil-th.org/core/CodeSystem/cs-th-local-drug-code'}
                    index: 18
                  code: {index: 19}
                required: [system, code]
  medicationCodeableConcept: {type: CodeableConcept, mustSupport: true, choiceOf: medication, index: 12}
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        medicationSource:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-medicationrequest-medication-source', index: 1}
          min: 0
        npc:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-medicationrequest-ned-criteria', index: 2}
          min: 0
        approvedNo:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-medicationrequest-med-approved-no', index: 3}
          min: 0
  status: {mustSupport: true, index: 4}
  effective:
    mustSupport: true
    choices: []
    index: 22
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this, type: type}
      min: null
      slices:
        effectivePeriod:
          match: {}
          schema:
            mustSupport: true
            choices: [effectivePeriod]
            index: 24
          min: 0
          max: 1
  dateAsserted: {mustSupport: true, index: 26}
  informationSource:
    type: Reference
    mustSupport: true
    refers: ['https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-organization-provider', 'https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-patient-base']
    index: 27
  subject:
    type: Reference
    mustSupport: true
    refers: ['https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-patient-base']
    index: 20
  effectivePeriod:
    type: Period
    mustSupport: true
    choiceOf: effective
    index: 25
    slicing:
      slices:
        effectivePeriod:
          match: {}
          schema: {type: Period, mustSupport: true, choiceOf: effective, index: 25}
          min: 0
          max: 1
  medication:
    mustSupport: true
    choices: [medicationCodeableConcept]
    index: 11
package_version: 0.1.1
extensions:
  medicationSource: {url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-medicationrequest-medication-source', min: 0, type: Extension, mustSupport: true, index: 1}
  npc: {url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-medicationrequest-ned-criteria', min: 0, type: Extension, mustSupport: true, index: 2}
  approvedNo: {url: 'https://fhir-ig.sil-th.org/th/extensions/StructureDefinition/ex-medicationrequest-med-approved-no', min: 0, type: Extension, mustSupport: true, index: 3}
class: profile
kind: resource
url: https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-medicationstatement-base
base: http://hl7.org/fhir/StructureDefinition/MedicationStatement
version: 0.1.1