This page is part of the FHIR Specification (v5.0.0-ballot: R5 Ballot - see ballot notes). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3
Clinical Decision Support Work Group | Maturity Level: N/A | Standards Status: Informative |
Raw Turtle (+ also see Turtle/RDF Format Specification)
Operation Definition
@prefix fhir: <http://hl7.org/fhir/> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . # - resource ------------------------------------------------------------------- [] a fhir:OperationDefinition; fhir:Resource.id [ fhir:value "PlanDefinition-apply"]; fhir:DomainResource.text [ fhir:Narrative.status [ fhir:value "extensions" ] ]; fhir:DomainResource.extension [ fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm" ]; fhir:Extension.value [ fhir:value "3" ] ], [ fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ]; fhir:Extension.value [ fhir:value "trial-use" ] ]; fhir:CanonicalResource.url [ fhir:value "http://hl7.org/fhir/OperationDefinition/PlanDefinition-apply"]; fhir:CanonicalResource.version [ fhir:value "5.0.0-ballot"]; fhir:CanonicalResource.name [ fhir:value "Apply"]; fhir:CanonicalResource.title [ fhir:value "Apply"]; fhir:CanonicalResource.status [ fhir:value "draft"]; fhir:CanonicalResource.experimental [ fhir:value "false"]; fhir:CanonicalResource.date [ fhir:value "2022-09-10T04:52:37+10:00"]; fhir:CanonicalResource.publisher [ fhir:value "HL7 (FHIR Project)"]; fhir:CanonicalResource.contact [ fhir:ContactDetail.telecom [ fhir:ContactPoint.system [ fhir:value "url" ]; fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ] ], [ fhir:ContactPoint.system [ fhir:value "email" ]; fhir:ContactPoint.value [ fhir:value "fhir@lists.hl7.org" ] ] ]; fhir:CanonicalResource.description [ fhir:value "The apply operation applies a PlanDefinition to a given subject"]; fhir:OperationDefinition.url [ fhir:value "http://hl7.org/fhir/OperationDefinition/PlanDefinition-apply"]; fhir:OperationDefinition.version [ fhir:value "5.0.0-ballot"]; fhir:OperationDefinition.name [ fhir:value "Apply"]; fhir:OperationDefinition.title [ fhir:value "Apply"]; fhir:OperationDefinition.status [ fhir:value "draft"]; fhir:OperationDefinition.kind [ fhir:value "operation"]; fhir:OperationDefinition.experimental [ fhir:value "false"]; fhir:OperationDefinition.date [ fhir:value "2022-09-10T04:52:37+10:00"]; fhir:OperationDefinition.publisher [ fhir:value "HL7 (FHIR Project)"]; fhir:OperationDefinition.contact [ fhir:ContactDetail.telecom [ fhir:ContactPoint.system [ fhir:value "url" ]; fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ] ], [ fhir:ContactPoint.system [ fhir:value "email" ]; fhir:ContactPoint.value [ fhir:value "fhir@lists.hl7.org" ] ] ]; fhir:OperationDefinition.description [ fhir:value "The apply operation applies a PlanDefinition to a given subject"]; fhir:OperationDefinition.affectsState [ fhir:value "false"]; fhir:OperationDefinition.code [ fhir:value "apply"]; fhir:OperationDefinition.comment [ fhir:value "The result of this operation is a Bundle for each subject, where the Bundle contains as its first entry a RequestOrchestration that is the direct result of applying the PlanDefinition to that subject, and any subsequent entries in the Bundle are resources that were created or updated as part of that process. The RequestOrchestration will have actions for each of the applicable actions in the plan based on evaluating the applicability condition in context. For each applicable action, the definition is applied as described in the $apply operation of the ActivityDefinition resource, and the resulting resource is added as an entry to the Bundle. 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. In addition, parameters to the $apply operation are available within dynamicValue expressions as context variables, accessible by the name of the parameter, prefixed with a percent (%) symbol. For a more detailed description, refer to the PlanDefinition and ActivityDefinition resource documentation. Note that result of this operation is transient (i.e. none of the resources created by the operation are persisted in the server, they are all returned as entries in the result Bundle(s)). The result effectively represents a proposed set of activities, and it is up to the caller to determine whether and how those activities are actually carried out and/or persisted."]; fhir:OperationDefinition.resource [ fhir:value "PlanDefinition"]; fhir:OperationDefinition.system [ fhir:value "false"]; fhir:OperationDefinition.type [ fhir:value "true"]; fhir:OperationDefinition.instance [ fhir:value "true"]; fhir:OperationDefinition.parameter [ fhir:OperationDefinitionParameterComponent.name [ fhir:value "planDefinition" ]; fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ]; fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ]; fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ]; fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "The plan definition to be applied. If the operation is invoked at the instance level, this parameter is not allowed; if the operation is invoked at the type level, this parameter is required, or a url (and optionally version) must be supplied" ]; fhir:OperationDefinitionParameterComponent.type [ fhir:value "PlanDefinition" ] ], [ fhir:OperationDefinitionParameterComponent.name [ fhir:value "url" ]; fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ]; fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ]; fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ]; fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "The url of the plan definition to be applied. If the operation is invoked at the instance level, this parameter is not allowed; if the operation is invoked at the type level, this parameter (and optionally the version), or the planDefinition parameter must be supplied" ]; fhir:OperationDefinitionParameterComponent.type [ fhir:value "canonical" ]; fhir:OperationDefinitionParameterComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/PlanDefinition" ]; fhir:OperationDefinitionParameterComponent.searchType [ fhir:value "reference" ] ], [ fhir:OperationDefinitionParameterComponent.name [ fhir:value "version" ]; fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ]; fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ]; fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ]; fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "The version of the plan definition to be applied. If the operation is invoked at the instance level, this parameter is not allowed; if the operation is invoked at the type level, this parameter may only be used if the url parameter is supplied." ]; fhir:OperationDefinitionParameterComponent.type [ fhir:value "string" ] ], [ fhir:OperationDefinitionParameterComponent.name [ fhir:value "subject" ]; fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ]; fhir:OperationDefinitionParameterComponent.min [ fhir:value "1" ]; fhir:OperationDefinitionParameterComponent.max [ fhir:value "*" ]; fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "The subject(s) that is/are the target of the plan to be applied. The subject may be a Patient, Practitioner, Organization, Location, Device, or Group. Subjects provided in this parameter will be resolved as the subject of the PlanDefinition based on the type of the subject. If multiple subjects of the same type are provided, the behavior is implementation-defined" ]; fhir:OperationDefinitionParameterComponent.type [ fhir:value "string" ]; fhir:OperationDefinitionParameterComponent.searchType [ fhir:value "reference" ] ], [ fhir:OperationDefinitionParameterComponent.name [ fhir:value "encounter" ]; fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ]; fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ]; fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ]; fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "The encounter in context, if any" ]; fhir:OperationDefinitionParameterComponent.type [ fhir:value "string" ]; fhir:OperationDefinitionParameterComponent.searchType [ fhir:value "reference" ] ], [ fhir:OperationDefinitionParameterComponent.name [ fhir:value "practitioner" ]; fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ]; fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ]; fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ]; fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "The practitioner applying the plan definition" ]; fhir:OperationDefinitionParameterComponent.type [ fhir:value "string" ]; fhir:OperationDefinitionParameterComponent.searchType [ fhir:value "reference" ] ], [ fhir:OperationDefinitionParameterComponent.name [ fhir:value "organization" ]; fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ]; fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ]; fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ]; fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "The organization applying the plan definition" ]; fhir:OperationDefinitionParameterComponent.type [ fhir:value "string" ]; fhir:OperationDefinitionParameterComponent.searchType [ fhir:value "reference" ] ], [ fhir:OperationDefinitionParameterComponent.name [ fhir:value "userType" ]; fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ]; fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ]; fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ]; fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "The type of user initiating the request, e.g. patient, healthcare provider, or specific type of healthcare provider (physician, nurse, etc.)" ]; fhir:OperationDefinitionParameterComponent.type [ fhir:value "CodeableConcept" ] ], [ fhir:OperationDefinitionParameterComponent.name [ fhir:value "userLanguage" ]; fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ]; fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ]; fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ]; fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "Preferred language of the person using the system" ]; fhir:OperationDefinitionParameterComponent.type [ fhir:value "CodeableConcept" ] ], [ fhir:OperationDefinitionParameterComponent.name [ fhir:value "userTaskContext" ]; fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ]; fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ]; fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ]; fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "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" ]; fhir:OperationDefinitionParameterComponent.type [ fhir:value "CodeableConcept" ] ], [ fhir:OperationDefinitionParameterComponent.name [ fhir:value "setting" ]; fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ]; fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ]; fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ]; fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "The current setting of the request (inpatient, outpatient, etc.)" ]; fhir:OperationDefinitionParameterComponent.type [ fhir:value "CodeableConcept" ] ], [ fhir:OperationDefinitionParameterComponent.name [ fhir:value "settingContext" ]; fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ]; fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ]; fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ]; fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "Additional detail about the setting of the request, if any" ]; fhir:OperationDefinitionParameterComponent.type [ fhir:value "CodeableConcept" ] ], [ fhir:OperationDefinitionParameterComponent.name [ fhir:value "return" ]; fhir:OperationDefinitionParameterComponent.use [ fhir:value "out" ]; fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ]; fhir:OperationDefinitionParameterComponent.max [ fhir:value "*" ]; fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "A Bundle for each input subject that is the result of applying the plan definition to that subject" ]; fhir:OperationDefinitionParameterComponent.type [ fhir:value "Bundle" ] ] . # -------------------------------------------------------------------------------------
Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.
FHIR ®© HL7.org 2011+. FHIR R5 Ballot hl7.fhir.core#5.0.0-ballot generated on Sat, Sep 10, 2022 05:05+1000.
Links: Search |
Version History |
Contents |
Glossary |
QA |
Compare to R4B |
Compare to R5 Draft |
|
Propose a change