PackagesCanonicalsLogsProblems
    Packages
    il.fhir.r4.dgmc@0.10.0
    http://fhir.dgmc.health.gov.il/StructureDefinition/dgmc-med-statement
description: DGMC Medication Statement for Medications
package_name: il.fhir.r4.dgmc
derivation: constraint
name: DGMCMedStatement
type: MedicationStatement
elements:
  category:
    elements:
      coding:
        elements:
          system:
            pattern: {type: Uri, value: 'http://fhir.health.gov.il/ValueSet/il-core-medication-statement-category'}
            index: 9
  dosage:
    elements:
      route:
        elements:
          coding:
            index: 28
            slicing:
              rules: open
              ordered: false
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                internal:
                  match: {system: null}
                  schema:
                    index: 29
                    elements:
                      system:
                        binding: {strength: required, valueSet: 'http://fhir.dgmc.health.gov.il/ValueSet/cml-med-route-code-uri'}
                        index: 30
                      code: {index: 31}
                    required: [system, code]
                snomed:
                  match: {system: 'http://snomed.info/sct'}
                  schema:
                    index: 32
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 33
                      code: {index: 34}
                    required: [system, code]
  medication[x]:
    elements:
      coding:
        index: 13
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: system, type: value}
          min: 1
          slices:
            internal:
              match: {system: null}
              schema:
                index: 14
                elements:
                  system:
                    binding: {strength: required, valueSet: 'http://fhir.dgmc.health.gov.il/ValueSet/cml-internal-drug-code-uri'}
                    index: 15
                  code: {index: 16}
                  display: {index: 17}
                required: [display, system, code]
            snomed:
              match: {system: 'http://snomed.info/sct'}
              schema:
                index: 18
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    index: 19
                  code: {index: 20}
                required: [system, code]
            external:
              match: {system: null}
              schema:
                index: 21
                elements:
                  system:
                    binding: {strength: required, valueSet: 'http://fhir.dgmc.health.gov.il/ValueSet/cml-external-drug-code-uri'}
                    index: 22
                  code: {index: 23}
                required: [system, code]
            atc:
              match: {system: 'http://www.whocc.no/atc'}
              schema:
                index: 24
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://www.whocc.no/atc'}
                    index: 25
                  code: {index: 26}
                required: [system, code]
    required: [coding]
  medicationCodeableConcept:
    type: CodeableConcept
    choiceOf: medication
    index: 12
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema: {type: CodeableConcept, choiceOf: medication, _required: true, index: 12}
          min: 1
  extension:
    index: 1
    slicing:
      slices:
        courseOfTherapyType:
          match: {}
          schema:
            index: 1
            elements:
              value:
                choices: []
                index: 3
        medicationStartedPregnancyWeek:
          match: {}
          schema: {type: Extension, url: 'http://fhir.dgmc.health.gov.il/StructureDefinition/ext-medication-started-pregnancy-week', index: 4}
          min: 0
          max: 1
  id: {index: 0}
  identifier:
    index: 5
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: system, type: value}
      min: null
      max: 1
      slices:
        cml-med-statement:
          match: {system: null}
          schema:
            _required: true
            index: 6
            elements:
              system:
                binding: {strength: required, valueSet: 'http://fhir.dgmc.health.gov.il/ValueSet/cml-med-statement-uri'}
                index: 7
              value: {index: 8}
            required: [value, system]
  subject:
    elements:
      reference: {index: 27}
    required: [reference]
  medication:
    choices: [medicationCodeableConcept]
    index: 11
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema:
            choices: [medicationCodeableConcept]
            _required: true
            index: 11
          min: 1
package_version: 0.10.0
extensions:
  courseOfTherapyType:
    url: null
    index: 1
    elements:
      value:
        choices: []
        index: 3
  medicationStartedPregnancyWeek: {url: 'http://fhir.dgmc.health.gov.il/StructureDefinition/ext-medication-started-pregnancy-week', min: 0, max: 1, type: Extension, index: 4}
class: profile
kind: resource
url: http://fhir.dgmc.health.gov.il/StructureDefinition/dgmc-med-statement
base: http://hdp.fhir.health.gov.il/StructureDefinition/il-hdp-medication-statement
version: 0.10.0
required: [medicationCodeableConcept, id, medication]