PackagesCanonicalsLogsProblems
    Packages
    il.fhir.r4.ashmc@0.7.0
    http://fhir.ashmc.co.il/StructureDefinition/med-order-cml
description: Asuta Ashdod medication order (MedicationRequest) profile for the CML interface. For cocktail (compound) orders, a contained Medication resource with id 'Cocktail' SHALL be used, medicationReference SHALL reference '#Cocktail', and the contained resource SHALL follow the ingredient coding structure defined in the interface specification.
package_name: il.fhir.r4.ashmc
derivation: constraint
name: AsutaAshdodMedicationRequestCml
type: MedicationRequest
elements:
  category:
    index: 13
    slicing:
      slices:
        il-core:
          match: {}
          schema:
            _required: true
            index: 14
            elements:
              coding:
                elements:
                  code:
                    pattern: {type: Code, value: inpatient}
                    index: 15
                  display:
                    pattern: {type: String, value: Inpatient}
                    index: 16
  encounter: {index: 36}
  medication[x]:
    elements:
      coding:
        index: 20
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: 1
          slices:
            cml:
              match: {system: 'http://fhir.ashmc.co.il/cs/cml-med-code'}
              schema:
                _required: true
                index: 21
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.ashmc.co.il/cs/cml-med-code'}
                    index: 22
                  code: {index: 23}
                required: [system, code]
            mv:
              match: {system: 'http://fhir.ashmc.co.il/cs/mv-med-code'}
              schema:
                index: 24
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.ashmc.co.il/cs/mv-med-code'}
                    index: 25
                required: [system]
            bi-id:
              match: {system: 'http://fhir.ashmc.co.il/cs/internal-med-code'}
              schema:
                index: 26
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.ashmc.co.il/cs/internal-med-code'}
                    index: 27
                  code: {index: 28}
                  display: {index: 29}
                required: [display, system, code]
            snomed:
              match: {system: 'http://snomed.info/sct'}
              schema:
                index: 30
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    index: 31
                  code: {index: 32}
                  display: {index: 33}
                required: [display, system, code]
            atc:
              match: {system: 'http://fhir.ashmc.co.il/cs/local-atc-med-code'}
              schema:
                index: 34
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.ashmc.co.il/cs/local-atc-med-code'}
                    index: 35
                required: [system]
    required: [coding]
  medicationCodeableConcept:
    type: CodeableConcept
    choiceOf: medication
    index: 19
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema: {type: CodeableConcept, choiceOf: medication, index: 19}
  extension:
    index: 0
    slicing:
      slices:
        ResourceRoleContext:
          match: {}
          schema: {type: Extension, url: 'http://fhir.health.gov.il/StructureDefinition/ext-resource-role-context', index: 1}
          min: 0
        confirmedBy:
          match: {}
          schema: {type: Extension, url: 'http://fhir.ashmc.co.il/StructureDefinition/ext-confirmed-by', index: 2}
          min: 0
          max: 1
        orderType:
          match: {}
          schema: {type: Extension, url: 'http://fhir.ashmc.co.il/StructureDefinition/ext-order-type', index: 3}
          min: 1
          max: 1
        totalDailyDose:
          match: {}
          schema: {type: Extension, url: 'http://fhir.ashmc.co.il/StructureDefinition/ext-daily-dose', index: 4}
          min: 0
          max: 1
        protocolName:
          match: {}
          schema: {type: Extension, url: 'http://fhir.ashmc.co.il/StructureDefinition/ext-protocol-name', index: 5}
          min: 0
          max: 1
  identifier:
    elements:
      type:
        index: 6
        elements:
          coding:
            index: 7
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.health.gov.il/cs/il-core-identifier-type'}
                index: 8
              code:
                pattern: {type: Code, value: strong-id}
                index: 9
              display:
                pattern: {type: String, value: Strong Identifier}
                index: 10
        required: [coding]
      system:
        pattern: {type: Uri, value: 'http://fhir.ashmc.co.il/identifier/med-order-cml'}
        index: 11
    required: [type]
  intent:
    pattern: {type: Code, value: order}
    index: 12
  courseOfTherapyType:
    elements:
      coding:
        index: 37
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: 1
          slices:
            cml-order-type:
              match: {system: 'http://fhir.dgmc.health.gov.il/cs/cml-order-type'}
              schema:
                _required: true
                index: 38
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.dgmc.health.gov.il/cs/cml-order-type'}
                    index: 39
                  code: {index: 40}
                  display: {index: 41}
                  userSelected:
                    pattern: {type: Boolean, value: true}
                    index: 42
                required: [display, system, code]
    required: [coding]
  medication:
    choices: [medicationCodeableConcept]
    index: 18
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema:
            choices: [medicationCodeableConcept]
            index: 18
package_version: 0.7.0
extensions:
  ResourceRoleContext: {url: 'http://fhir.health.gov.il/StructureDefinition/ext-resource-role-context', min: 0, type: Extension, index: 1}
  confirmedBy: {url: 'http://fhir.ashmc.co.il/StructureDefinition/ext-confirmed-by', min: 0, max: 1, type: Extension, index: 2}
  orderType: {url: 'http://fhir.ashmc.co.il/StructureDefinition/ext-order-type', min: 1, max: 1, type: Extension, index: 3}
  totalDailyDose: {url: 'http://fhir.ashmc.co.il/StructureDefinition/ext-daily-dose', min: 0, max: 1, type: Extension, index: 4}
  protocolName: {url: 'http://fhir.ashmc.co.il/StructureDefinition/ext-protocol-name', min: 0, max: 1, type: Extension, index: 5}
class: profile
kind: resource
url: http://fhir.ashmc.co.il/StructureDefinition/med-order-cml
base: http://hdp.fhir.health.gov.il/StructureDefinition/il-hdp-medication-request
version: 0.7.0
required: [encounter, extension, category]