PackagesCanonicalsLogsProblems
    Packages
    il.fhir.r4.ashmc@0.8.0
    http://fhir.ashmc.co.il/StructureDefinition/med-allergy-intolerance
description: AllergyIntolerance profile for medication (drug) allergies and intolerances in the CML interface. Category is always medication.
package_name: il.fhir.r4.ashmc
derivation: constraint
name: AsutaAshdodMedAllergyIntolerance
type: AllergyIntolerance
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-allergy-intolerance'}
        index: 5
    required: [type]
  category:
    pattern: {type: Code, value: medication}
    index: 6
  code:
    elements:
      coding:
        array: true
        min: 2
        index: 7
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: 2
          slices:
            snomed:
              match: {system: 'http://snomed.info/sct'}
              schema:
                array: true
                min: 1
                _required: true
                index: 8
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    index: 9
            cml:
              match: {system: 'http://fhir.ashmc.co.il/cs/med-cml-code'}
              schema:
                array: true
                min: 1
                _required: true
                index: 10
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.ashmc.co.il/cs/med-cml-code'}
                    index: 11
  reaction:
    elements:
      manifestation:
        elements:
          coding:
            array: true
            min: 2
            index: 12
            slicing:
              rules: open
              discriminator:
              - {path: system, type: value}
              min: 2
              slices:
                cml:
                  match: {system: 'http://fhir.ashmc.co.il/cs/reaction-cml-code'}
                  schema:
                    array: true
                    min: 1
                    _required: true
                    index: 13
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://fhir.ashmc.co.il/cs/reaction-cml-code'}
                        index: 14
                      code: {index: 15}
                    required: [system, code]
                ilcore:
                  match: {system: 'http://snomed.info/sct'}
                  schema:
                    binding: {strength: required, valueSet: 'http://fhir.health.gov.il/ValueSet/il-core-manifestation'}
                    array: true
                    min: 1
                    _required: true
                    index: 16
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 17
                      code: {index: 18}
                    required: [system, code]
package_version: 0.8.0
class: profile
kind: resource
url: http://fhir.ashmc.co.il/StructureDefinition/med-allergy-intolerance
base: http://hdp.fhir.health.gov.il/StructureDefinition/il-hdp-allergy-intolerance
version: 0.8.0