description: A simple alerting extension for PHDs. package_name: hl7.fhir.uv.phd derivation: constraint name: SimpleAlerting type: Extension elements: extension: array: true min: 2 index: 0 slicing: slices: alertType: match: {} schema: index: 1 extensions: {} elements: extension: {index: 2} url: pattern: {type: uri, value: alertType} type: uri index: 3 value: choices: [valueCodeableConcept] index: 5 valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 6} required: [value, valueCodeableConcept] currentLimits: match: {} schema: _required: true index: 7 extensions: {} elements: extension: {index: 8} url: pattern: {type: uri, value: currentLimits} type: uri index: 9 value: constraint: alerting-range-units: {human: The units used should be equal., source: 'http://hl7.org/fhir/uv/phd/StructureDefinition/SimpleAlerting', severity: warning, expression: low.code.exists() and high.code.exists() and low.code = high.code} choices: [valueRange] index: 11 valueRange: type: Range constraint: alerting-range-units: {human: The units used should be equal., source: 'http://hl7.org/fhir/uv/phd/StructureDefinition/SimpleAlerting', severity: warning, expression: low.code.exists() and high.code.exists() and low.code = high.code} choiceOf: value index: 12 value[x]: elements: low: elements: unit: {index: 13} high: elements: unit: {index: 14} required: [value, valueRange] alertOperationalState: match: {} schema: _required: true index: 15 extensions: {} elements: extension: {index: 16} url: pattern: {type: uri, value: alertOperationalState} type: uri index: 17 value: choices: [valueCodeableConcept] index: 19 valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 20} required: [value, valueCodeableConcept] alertOperationalText: match: {} schema: index: 21 extensions: {} elements: extension: {index: 22} url: pattern: {type: uri, value: alertOperationalText} type: uri index: 23 value: choices: [valueString] index: 25 valueString: {type: string, choiceOf: value, index: 26} thresholdNotificationText: match: {} schema: index: 27 extensions: {} elements: extension: {index: 28} url: pattern: {type: uri, value: thresholdNotificationText} type: uri index: 29 value: choices: [valueString] index: 31 valueString: {type: string, choiceOf: value, index: 32} url: pattern: {type: uri, value: 'http://hl7.org/fhir/uv/phd/StructureDefinition/SimpleAlerting'} type: uri index: 33 value: choices: [] index: 35 package_version: 2.0.0-ballot2 extensions: alertType: url: null index: 1 extensions: {} elements: extension: {index: 2} url: pattern: {type: uri, value: alertType} type: uri index: 3 value: choices: [valueCodeableConcept] index: 5 valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 6} required: [value, valueCodeableConcept] currentLimits: url: null _required: true index: 7 extensions: {} elements: extension: {index: 8} url: pattern: {type: uri, value: currentLimits} type: uri index: 9 value: constraint: alerting-range-units: {human: The units used should be equal., source: 'http://hl7.org/fhir/uv/phd/StructureDefinition/SimpleAlerting', severity: warning, expression: low.code.exists() and high.code.exists() and low.code = high.code} choices: [valueRange] index: 11 valueRange: type: Range constraint: alerting-range-units: {human: The units used should be equal., source: 'http://hl7.org/fhir/uv/phd/StructureDefinition/SimpleAlerting', severity: warning, expression: low.code.exists() and high.code.exists() and low.code = high.code} choiceOf: value index: 12 value[x]: elements: low: elements: unit: {index: 13} high: elements: unit: {index: 14} required: [value, valueRange] alertOperationalState: url: null _required: true index: 15 extensions: {} elements: extension: {index: 16} url: pattern: {type: uri, value: alertOperationalState} type: uri index: 17 value: choices: [valueCodeableConcept] index: 19 valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 20} required: [value, valueCodeableConcept] alertOperationalText: url: null index: 21 extensions: {} elements: extension: {index: 22} url: pattern: {type: uri, value: alertOperationalText} type: uri index: 23 value: choices: [valueString] index: 25 valueString: {type: string, choiceOf: value, index: 26} thresholdNotificationText: url: null index: 27 extensions: {} elements: extension: {index: 28} url: pattern: {type: uri, value: thresholdNotificationText} type: uri index: 29 value: choices: [valueString] index: 31 valueString: {type: string, choiceOf: value, index: 32} class: extension kind: complex-type url: http://hl7.org/fhir/uv/phd/StructureDefinition/SimpleAlerting base: http://hl7.org/fhir/StructureDefinition/Extension version: 2.0.0-ballot2