description: This Extension profile represents a flag which, if it is present, indicates that the **target** reference represents a triggering event and caused the eCR to be generated. It contains the trigger code which is the same as the trigger code in the resource and is used to identify which code(s) in a resource that allows multiple trigger codes (e.g. US Core Observation Lab where a trigger code could be contained in either the code (lab test) or the value (lab test result) or in the case of a battery or panel of tests, in the hasMember as another US Core Observation Lab code or value). It also contains the RCTC OID and RCTC version of the value set from which the code was matched. \n\nIt is available for use in the following places:\n\n* eICR Encounter\n * flags a code contained in Condition.code (eICR Condition) which is contained in Encounter.diagnosis (eICR Encounter) - diagnosis\n* Problem Section entry\n * flags a code contained in Condition.code (eICR Condition) - diagnosis\n* Plan of Treatment Section entry\n * flags a code contained in ServiceRequest.code (eICR ServiceRequest) - test being requested\n* Results Section entry\n * flags codes contained in:\n * Observation.code (US Core Laboratory Result Observation Profile code) - test performed/battery or panel name\n * Observation.value (US Core Laboratory Result Observation Profile value) - test result\n * Observation.code referenced in containing Observation.hasMember (US Core Laboratory Result Observation Profile code) - member of panel test performed\n * Observation.value referenced in containing Observation.hasMember (US Core Laboratory Result Observation Profile value) - member of panel test result\n* Medications Section entry\n * flags a code contained in MedicationAdministration.medicationCodeableConcept - medication\n* Immunization Section entry\n * flags a code contained in US Core Immunization (Immunization.vaccineCode) - vaccine\n\n package_name: hl7.fhir.us.ecr derivation: constraint name: Eicr_Trigger_Code_Flag_Extension type: Extension elements: extension: index: 0 slicing: rules: open discriminator: - {path: url, type: value} min: null slices: extensionTriggerCodeValueSet: match: {url: triggerCodeValueSet} schema: short: RCTC value set OID _required: true index: 1 elements: url: pattern: {type: Uri, value: triggerCodeValueSet} index: 2 value: choices: [valueOid] index: 4 valueOid: {type: oid, choiceOf: value, index: 5} extensionTriggerCodeValueSetVersion: match: {url: triggerCodeValueSetVersion} schema: short: RCTC value set version _required: true index: 6 elements: url: pattern: {type: Uri, value: triggerCodeValueSetVersion} index: 7 value: choices: [valueString] index: 9 valueString: {type: string, choiceOf: value, index: 10} required: [valueString, value] extensionTriggerCode: match: {url: triggerCode} schema: short: Trigger code _required: true index: 11 elements: url: pattern: {type: Uri, value: triggerCode} index: 12 value: choices: [valueCoding] index: 14 valueCoding: {type: Coding, choiceOf: value, index: 15} required: [valueCoding, value] url: pattern: {type: Uri, value: 'http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-trigger-code-flag-extension'} index: 16 value: choices: [] index: 18 package_version: 1.0.0 extensions: extensionTriggerCodeValueSet: url: triggerCodeValueSet short: RCTC value set OID _required: true index: 1 elements: url: pattern: {type: Uri, value: triggerCodeValueSet} index: 2 value: choices: [valueOid] index: 4 valueOid: {type: oid, choiceOf: value, index: 5} extensionTriggerCodeValueSetVersion: url: triggerCodeValueSetVersion short: RCTC value set version _required: true index: 6 elements: url: pattern: {type: Uri, value: triggerCodeValueSetVersion} index: 7 value: choices: [valueString] index: 9 valueString: {type: string, choiceOf: value, index: 10} required: [valueString, value] extensionTriggerCode: url: triggerCode short: Trigger code _required: true index: 11 elements: url: pattern: {type: Uri, value: triggerCode} index: 12 value: choices: [valueCoding] index: 14 valueCoding: {type: Coding, choiceOf: value, index: 15} required: [valueCoding, value] class: extension kind: complex-type url: http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-trigger-code-flag-extension base: http://hl7.org/fhir/StructureDefinition/Extension version: 1.0.0