FHIR Tooling Extensions IG, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 0.8.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/FHIR/fhir-tools-ig/ and changes regularly. See the Directory of published versions
| Page standards status: Informative | Maturity Level: 1 | 
Definitions for the CDSHookEncounterDischargeContext logical model.
Guidance on how to interpret the contents of this table can be foundhere
| 0. CDSHookEncounterDischargeContext | |
| Definition | The context (hook specific) Base definition for all types defined in FHIR type system. | 
| Short | The context for the encounter-discharge hookBase for all types and resources | 
| Control | 0..* | 
| Is Modifier | false | 
| Logical Model | Instances of this logical model are not marked to be the target of a Reference | 
| 2. CDSHookEncounterDischargeContext.userId | |
| Definition | For this hook, the user is expected to be of type Practitioner, PractitionerRole, Patient, or RelatedPerson. Patient or RelatedPerson are appropriate when a patient or their proxy are viewing the record. For example, Practitioner/abc or Patient/123. | 
| Short | The id of the current user. Must be in the format [ResourceType]/[id]. | 
| Control | 1..1 | 
| Type | url | 
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension | 
| 4. CDSHookEncounterDischargeContext.patientId | |
| Definition | The FHIR Patient.id of the current patient in context | 
| Short | The FHIR Patient.id of the current patient in context | 
| Control | 1..1 | 
| Type | id | 
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension | 
| 6. CDSHookEncounterDischargeContext.encounterId | |
| Definition | The FHIR Encounter.id of the current encounter in context | 
| Short | The FHIR Encounter.id of the current encounter in context | 
| Control | 0..1 | 
| Type | id | 
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension | 
Guidance on how to interpret the contents of this table can be foundhere
| 0. CDSHookEncounterDischargeContext | |
| Short | The context for the encounter-discharge hook | 
| Logical Model | Instances of this logical model are not marked to be the target of a Reference | 
| 2. CDSHookEncounterDischargeContext.userId | |
| Definition | For this hook, the user is expected to be of type Practitioner, PractitionerRole, Patient, or RelatedPerson. Patient or RelatedPerson are appropriate when a patient or their proxy are viewing the record. For example, Practitioner/abc or Patient/123. | 
| Short | The id of the current user. Must be in the format [ResourceType]/[id]. | 
| Control | 1..1 | 
| Type | url | 
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension | 
| 4. CDSHookEncounterDischargeContext.patientId | |
| Definition | The FHIR Patient.id of the current patient in context | 
| Short | The FHIR Patient.id of the current patient in context | 
| Control | 1..1 | 
| Type | id | 
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension | 
| 6. CDSHookEncounterDischargeContext.encounterId | |
| Definition | The FHIR Encounter.id of the current encounter in context | 
| Short | The FHIR Encounter.id of the current encounter in context | 
| Control | 0..1 | 
| Type | id | 
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension | 
Guidance on how to interpret the contents of this table can be foundhere
| 0. CDSHookEncounterDischargeContext | |
| Definition | The context (hook specific) | 
| Short | The context for the encounter-discharge hook | 
| Control | 0..* | 
| Is Modifier | false | 
| Logical Model | Instances of this logical model are not marked to be the target of a Reference | 
| 2. CDSHookEncounterDischargeContext.userId | |
| Definition | For this hook, the user is expected to be of type Practitioner, PractitionerRole, Patient, or RelatedPerson. Patient or RelatedPerson are appropriate when a patient or their proxy are viewing the record. For example, Practitioner/abc or Patient/123. | 
| Short | The id of the current user. Must be in the format [ResourceType]/[id]. | 
| Control | 1..1 | 
| Type | url | 
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension | 
| 4. CDSHookEncounterDischargeContext.patientId | |
| Definition | The FHIR Patient.id of the current patient in context | 
| Short | The FHIR Patient.id of the current patient in context | 
| Control | 1..1 | 
| Type | id | 
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension | 
| 6. CDSHookEncounterDischargeContext.encounterId | |
| Definition | The FHIR Encounter.id of the current encounter in context | 
| Short | The FHIR Encounter.id of the current encounter in context | 
| Control | 0..1 | 
| Type | id | 
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |