PackagesCanonicalsLogsProblems
    Packages
    il.fhir.r4.ashmc@0.8.0
    http://fhir.ashmc.co.il/StructureDefinition/med-administration-cml
description: Asuta Ashdod medication administration (MedicationAdministration) profile for the CML interface. For cocktail (compound) administrations, 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: AsutaAshdodMedicationAdministrationCml
type: MedicationAdministration
elements:
  identifier:
    elements:
      type:
        index: 0
        elements:
          coding:
            index: 1
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.health.gov.il/cs/il-core-identifier-type'}
                index: 2
              code:
                pattern: {type: Code, value: strong-id}
                index: 3
              display:
                pattern: {type: String, value: Strong Identifier}
                index: 4
        required: [coding]
      system:
        pattern: {type: Uri, value: 'http://fhir.ashmc.co.il/identifier/med-administration-cml'}
        index: 5
    required: [type]
  category:
    elements:
      coding:
        elements:
          system:
            pattern: {type: Uri, value: 'http://fhir.health.gov.il/cs/il-core-medication-request-category'}
            index: 6
          code:
            pattern: {type: Code, value: inpatient}
            index: 7
          display:
            pattern: {type: String, value: Inpatient}
            index: 8
  medication:
    choices: [medicationCodeableConcept]
    index: 10
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema:
            choices: [medicationCodeableConcept]
            index: 10
  medicationCodeableConcept:
    type: CodeableConcept
    choiceOf: medication
    index: 11
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema: {type: CodeableConcept, choiceOf: medication, index: 11}
  medication[x]:
    elements:
      coding:
        index: 12
        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: 13
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.ashmc.co.il/cs/cml-med-code'}
                    index: 14
                  code: {index: 15}
                required: [system, code]
            mv:
              match: {system: 'http://fhir.ashmc.co.il/cs/mv-med-code'}
              schema:
                index: 16
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.ashmc.co.il/cs/mv-med-code'}
                    index: 17
                required: [system]
            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]
            atc:
              match: {system: 'http://fhir.ashmc.co.il/cs/local-atc-med-code'}
              schema:
                index: 21
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.ashmc.co.il/cs/local-atc-med-code'}
                    index: 22
                  code: {index: 23}
                required: [system, code]
    required: [coding]
  performer:
    index: 24
    slicing:
      rules: open
      discriminator:
      - {path: function, type: pattern}
      min: null
      slices:
        performer:
          match:
            function:
              coding:
              - {code: performer, system: 'http://terminology.hl7.org/CodeSystem/med-admin-perform-function', display: Performer}
          schema:
            index: 25
            elements:
              function:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: performer, system: 'http://terminology.hl7.org/CodeSystem/med-admin-perform-function', display: Performer}
                index: 26
                elements:
                  coding:
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/med-admin-perform-function'}
                        index: 27
                      code:
                        pattern: {type: Code, value: performer}
                        index: 28
                      display:
                        pattern: {type: String, value: Performer}
                        index: 29
            required: [function]
        verifier:
          match:
            function:
              coding:
              - {code: verifier, system: 'http://terminology.hl7.org/CodeSystem/med-admin-perform-function', display: Verifier}
          schema:
            index: 30
            elements:
              function:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: verifier, system: 'http://terminology.hl7.org/CodeSystem/med-admin-perform-function', display: Verifier}
                index: 31
                elements:
                  coding:
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/med-admin-perform-function'}
                        index: 32
                      code:
                        pattern: {type: Code, value: verifier}
                        index: 33
                      display:
                        pattern: {type: String, value: Verifier}
                        index: 34
            required: [function]
  request: {index: 35}
  dosage:
    elements:
      site:
        elements:
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'http://snomed.info/sct'}
                index: 36
      route:
        elements:
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'http://snomed.info/sct'}
                index: 37
      method:
        elements:
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'http://snomed.info/sct'}
                index: 38
      dose:
        elements:
          system:
            pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
            index: 39
      rate:
        choices: []
        index: 41
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: $this, type: type}
          min: null
          slices:
            rateRatio:
              match: {}
              schema:
                choices: [rateRatio]
                index: 43
              min: 0
              max: 1
      rateRatio:
        type: Ratio
        choiceOf: rate
        index: 44
        slicing:
          slices:
            rateRatio:
              match: {}
              schema: {type: Ratio, choiceOf: rate, index: 44}
              min: 0
              max: 1
      rate[x]:
        elements:
          numerator:
            elements:
              system:
                pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
                index: 45
          denominator:
            elements:
              value:
                pattern: {type: Decimal, value: 1}
                index: 46
              unit:
                pattern: {type: String, value: hour}
                index: 47
              system:
                pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
                index: 48
              code:
                pattern: {type: Code, value: h}
                index: 49
package_version: 0.8.0
class: profile
kind: resource
url: http://fhir.ashmc.co.il/StructureDefinition/med-administration-cml
base: http://hdp.fhir.health.gov.il/StructureDefinition/il-hdp-medication-administration
version: 0.8.0
required: [request]