{ "description": "Sets the SMART Launch context parameters within the SoFA with support for creating resources if needed.", "_filename": "profiles/OperationDefinition-set-context.json", "package_name": "ca.infoway.io.halo", "date": null, "system": true, "publisher": null, "instance": false, "name": "SetContext", "type": "false", "experimental": "false", "resourceType": "OperationDefinition", "title": "Set Context", "package_version": "0.1.0-dft-preballot", "status": "active", "id": "e2ffb401-ed47-462d-882a-12af22e362e7", "kind": "operation", "url": "http://fhir.infoway-inforoute.ca/io/HALO/OperationDefinition/set-context", "code": "set-context", "version": "1.0.0", "parameter": [ { "max": "1", "min": 0, "use": "in", "name": "patient", "type": "Reference", "documentation": "A reference to the Patient that is the current patient in context." }, { "max": "1", "min": 0, "use": "in", "name": "encounter", "type": "Reference", "documentation": "A reference to the Encounter that is the current patient in context." }, { "max": "*", "min": 0, "use": "in", "name": "fhirContext", "type": "Reference", "documentation": "A reference to other resources that are related to the current context." }, { "max": "1", "min": 0, "use": "in", "name": "fhirUser", "type": "Reference", "documentation": "A reference to the user (i.e., Patient, Practitioner, PractitionerRole, RelatedPerson, or Person) who is initiating the launch. This will be communicated to the SMART App via the fhirUser claim within the ID Token when the openid or fhirUser scope is requested." }, { "max": "1", "min": 0, "use": "in", "name": "need_patient_banner", "type": "boolean", "documentation": "The SMART on FHIR need_patient_banner launch context parameter." }, { "max": "1", "min": 0, "use": "in", "name": "intent", "type": "string", "documentation": "The SMART on FHIR intent launch context parameter." }, { "max": "1", "min": 0, "use": "in", "name": "smart_style_url", "type": "string", "documentation": "The SMART on FHIR smart_style_url launch context parameter." }, { "max": "1", "min": 0, "use": "in", "name": "tenant", "type": "string", "documentation": "The SMART on FHIR tenant launch context parameter." }, { "max": "*", "min": 0, "use": "in", "name": "resource", "type": "Resource", "documentation": "Any resources that should be created and stored within the SoFA. These may or may not be resources referenced by the context parameters defined in this operation." }, { "max": "1", "min": 0, "use": "out", "name": "launchID", "type": "string", "documentation": "An opaque identifier generated for this operation, representing the context set, such as patient or user session information. The launchID SHALL always be populated for a successful $set-context operation." }, { "max": "*", "min": 1, "use": "out", "name": "outcome", "type": "OperationOutcome", "documentation": "An OperationOutcome resource that provides details on the outcome (e.g., success, failure, etc.) of the operation." } ] }