{"resourceType":"StructureDefinition","id":"CDSHookEncounterDischargeContext","language":"en","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm","valueInteger":1},{"url":"http://hl7.org/fhir/tools/StructureDefinition/json-suppress-resourcetype","valueBoolean":true},{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-wg","valueCode":"fhir"}],"url":"http://hl7.org/fhir/tools/StructureDefinition/CDSHookEncounterDischargeContext","identifier":[{"system":"urn:ietf:rfc:3986","value":"urn:oid:2.16.840.1.113883.4.642.40.1.42.74"}],"version":"1.1.0","name":"CDSHookEncounterDischargeContext","title":"CDS Hooks Specific Context for encounter-discharge (Logical Definition)","status":"draft","experimental":true,"date":"2026-03-03T22:50:55+11:00","publisher":"HL7 International / FHIR Infrastructure","contact":[{"telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/fiwg"}]}],"description":"This structure is defined to allow the FHIR Validator to validate a CDSHooks encounter-discharge context. TODO: This content will be moved to the CDS Hooks specification in the future","jurisdiction":[{"coding":[{"system":"http://unstats.un.org/unsd/methods/m49/m49.htm","code":"001"}]}],"fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"}],"kind":"logical","abstract":false,"type":"http://hl7.org/fhir/tools/StructureDefinition/CDSHookEncounterDischargeContext","baseDefinition":"http://hl7.org/fhir/tools/StructureDefinition/CDSHookContext","derivation":"specialization","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"1.1.0"}],"element":[{"id":"CDSHookEncounterDischargeContext","path":"CDSHookEncounterDischargeContext","short":"The context for the encounter-discharge hook","definition":"The context (hook specific)","min":0,"max":"*","base":{"path":"Base","min":0,"max":"*"},"isModifier":false},{"id":"CDSHookEncounterDischargeContext.userId","path":"CDSHookEncounterDischargeContext.userId","short":"The id of the current user. Must be in the format [ResourceType]/[id].","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.","min":1,"max":"1","base":{"path":"CDSHookEncounterDischargeContext.userId","min":1,"max":"1"},"type":[{"code":"url"}]},{"id":"CDSHookEncounterDischargeContext.patientId","path":"CDSHookEncounterDischargeContext.patientId","short":"The FHIR Patient.id of the current patient in context","definition":"The FHIR Patient.id of the current patient in context","min":1,"max":"1","base":{"path":"CDSHookEncounterDischargeContext.patientId","min":1,"max":"1"},"type":[{"code":"id"}]},{"id":"CDSHookEncounterDischargeContext.encounterId","path":"CDSHookEncounterDischargeContext.encounterId","short":"The FHIR Encounter.id of the current encounter in context","definition":"The FHIR Encounter.id of the current encounter in context","min":0,"max":"1","base":{"path":"CDSHookEncounterDischargeContext.encounterId","min":0,"max":"1"},"type":[{"code":"id"}]}]},"differential":{"element":[{"id":"CDSHookEncounterDischargeContext","path":"CDSHookEncounterDischargeContext","short":"The context for the encounter-discharge hook"},{"id":"CDSHookEncounterDischargeContext.userId","path":"CDSHookEncounterDischargeContext.userId","short":"The id of the current user. Must be in the format [ResourceType]/[id].","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.","min":1,"max":"1","type":[{"code":"url"}]},{"id":"CDSHookEncounterDischargeContext.patientId","path":"CDSHookEncounterDischargeContext.patientId","short":"The FHIR Patient.id of the current patient in context","definition":"The FHIR Patient.id of the current patient in context","min":1,"max":"1","type":[{"code":"id"}]},{"id":"CDSHookEncounterDischargeContext.encounterId","path":"CDSHookEncounterDischargeContext.encounterId","short":"The FHIR Encounter.id of the current encounter in context","definition":"The FHIR Encounter.id of the current encounter in context","min":0,"max":"1","type":[{"code":"id"}]}]}}