FQL is a query language that allows you to retrieve, filter and project data from any data source containing FHIR Resources. It brings the power of three existing languages together: SQL, JSON and FhirPath. It allows you to create tables and is useful for gaining insight and perform quality control.
Invocations
URL: [base]/PlanDefinition/[id]/$apply
Parameters (In)
Name | Cardinality | Type | StructureDefinition | Documentation |
patient | 1..1 | Reference | Patient | The patient that is the target of the plan to be applied |
encounter | 0..1 | Reference | Encounter | The encounter in context, if any |
practitioner | 0..1 | Reference | Practitioner | The practitioner applying the plan definition |
organization | 0..1 | Reference | Organization | The organization applying the plan definition |
userType | 0..1 | CodeableConcept | The type of user initiating the request, e.g. patient, healthcare provider, or specific type of healthcare provider (physician, nurse, etc.) | |
userLanguage | 0..1 | CodeableConcept | Preferred language of the person using the system | |
userTaskContext | 0..1 | CodeableConcept | The task the system user is performing, e.g. laboratory results review, medication list review, etc. This information can be used to tailor decision support outputs, such as recommended information resources | |
setting | 0..1 | CodeableConcept | The current setting of the request (inpatient, outpatient, etc) | |
settingContext | 0..1 | CodeableConcept | Additional detail about the setting of the request, if any |
Return Values (Out)
Name | Cardinality | Type | Documentation |
return | 1..1 | CarePlan | The CarePlan that is the result of applying the plan definition |
The result of this operation is a CarePlan resource, with activities for each of the applicable actions based on evaluating the applicability condition in context. For each applicable action, the activitydefinition is applied as described in the $apply operation of the ActivityDefinition resource, and the resulting resource is added as an activity to the CarePlan. If the ActivityDefinition includes library references, those libraries will be available to the evaluated expressions. If those libraries have parameters, those parameters will be bound by name to the parameters given to the operation