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: 3 | Trial Use | Security Category: Anonymous | Compartments: Not linked to any defined compartments |
This resource allows for the definition of some activity to be performed, independent of a particular patient, practitioner, or other performance context.
This resource is a definition resource from a FHIR workflow perspective - see Workflow, specifically Definition.
An ActivityDefinition is a shareable, consumable description of some activity to be performed. It may be used to specify actions to be taken as part of a workflow, order set, or protocol, or it may be used independently as part of a catalog of activities such as orderables.
For more information on how activity definitions can be used to construct request resources, see the Applying an ActivityDefinition topic below.
In general, an activity definition is simply a conceptual description of some specific action that should be taken. An instance of an ActivityDefinition does not indicate that any action has been performed (as an event resource does), nor does it indicate the actual intent to carry out any particular action (as a request resource does). Instead, an activity definition provides a reusable template that can be used to construct specific request resources such as ServiceRequest and MedicationRequest.
Note that this is conceptually similar to the Task resource as well, with the distinction being that ActivityDefinition represents the description of a task in the abstract, while the Task resource is used to track a specific instance of a task as it moves through the steps of a workflow.
Structure
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
ActivityDefinition | TU | DomainResource | The definition of a specific activity to be taken, independent of any particular patient or context + Warning: Name should be usable as an identifier for the module by machine processing applications such as code generation Elements defined in Ancestors: id, meta, implicitRules, language, text, contained, extension, modifierExtension Interfaces Implemented: MetadataResource | |
url | ΣC | 0..1 | uri | Canonical identifier for this activity definition, represented as a URI (globally unique) + Warning: URL should not contain | or # - these characters make processing canonical references problematic |
identifier | Σ | 0..* | Identifier | Additional identifier for the activity definition |
version | Σ | 0..1 | string | Business version of the activity definition |
name | ΣC | 0..1 | string | Name for this activity definition (computer friendly) |
title | Σ | 0..1 | string | Name for this activity definition (human friendly) |
subtitle | 0..1 | string | Subordinate title of the activity definition | |
status | ?!Σ | 1..1 | code | draft | active | retired | unknown PublicationStatus (Required) |
experimental | Σ | 0..1 | boolean | For testing purposes, not real usage |
subject[x] | 0..1 | Type of individual the activity definition is intended for Participant Resource Types (Extensible) | ||
subjectCodeableConcept | CodeableConcept | |||
subjectReference | Reference(Group | MedicinalProductDefinition | SubstanceDefinition | AdministrableProductDefinition | ManufacturedItemDefinition | PackagedProductDefinition) | |||
subjectCanonical | canonical(EvidenceVariable) | |||
date | Σ | 0..1 | dateTime | Date last changed |
publisher | Σ | 0..1 | string | Name of the publisher/steward (organization or individual) |
contact | Σ | 0..* | ContactDetail | Contact details for the publisher |
description | Σ | 0..1 | markdown | Natural language description of the activity definition |
useContext | Σ | 0..* | UsageContext | The context that the content is intended to support |
jurisdiction | Σ | 0..* | CodeableConcept | Intended jurisdiction for activity definition (if applicable) Jurisdiction (Extensible) |
purpose | 0..1 | markdown | Why this activity definition is defined | |
usage | 0..1 | string | Describes the clinical usage of the activity definition | |
copyright | 0..1 | markdown | Use and/or publishing restrictions | |
approvalDate | 0..1 | date | When the activity definition was approved by publisher | |
lastReviewDate | 0..1 | date | When the activity definition was last reviewed | |
effectivePeriod | Σ | 0..1 | Period | When the activity definition is expected to be used |
topic | 0..* | CodeableConcept | E.g. Education, Treatment, Assessment, etc. DefinitionTopic (Example) | |
author | 0..* | ContactDetail | Who authored the content | |
editor | 0..* | ContactDetail | Who edited the content | |
reviewer | 0..* | ContactDetail | Who reviewed the content | |
endorser | 0..* | ContactDetail | Who endorsed the content | |
relatedArtifact | 0..* | RelatedArtifact | Additional documentation, citations, etc. | |
library | 0..* | canonical(Library) | Logic used by the activity definition | |
kind | Σ | 0..1 | code | Kind of resource Request Resource Types (Required) |
profile | 0..1 | canonical(StructureDefinition) | What profile the resource needs to conform to | |
code | Σ | 0..1 | CodeableConcept | Detail type of activity Procedure Codes (SNOMED CT) (Example) |
intent | 0..1 | code | proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option RequestIntent (Required) | |
priority | 0..1 | code | routine | urgent | asap | stat RequestPriority (Required) | |
doNotPerform | ?!Σ | 0..1 | boolean | True if the activity should not be performed |
timing[x] | 0..1 | When activity is to occur | ||
timingTiming | Timing | |||
timingAge | Age | |||
timingRange | Range | |||
timingDuration | Duration | |||
asNeeded[x] | Σ | 0..1 | Preconditions for service SNOMED CT Medication As Needed Reason Codes (Example) | |
asNeededBoolean | boolean | |||
asNeededCodeableConcept | CodeableConcept | |||
location | 0..1 | CodeableReference(Location) | Where it should happen | |
participant | 0..* | BackboneElement | Who should participate in the action | |
type | 0..1 | code | careteam | device | group | healthcareservice | location | organization | patient | practitioner | practitionerrole | relatedperson ActionParticipantType (Required) | |
typeCanonical | 0..1 | canonical(CapabilityStatement) | Who or what can participate | |
typeReference | 0..1 | Reference(CareTeam | Device | DeviceDefinition | Endpoint | Group | HealthcareService | Location | Organization | Patient | Practitioner | PractitionerRole | RelatedPerson) | Who or what can participate | |
role | 0..1 | CodeableConcept | E.g. Nurse, Surgeon, Parent, etc. ActionParticipantRole (Example) | |
function | 0..1 | CodeableConcept | E.g. Author, Reviewer, Witness, etc. ActionParticipantFunction (Example) | |
product[x] | 0..1 | What's administered/supplied SNOMED CT Medication Codes (Example) | ||
productReference | Reference(Medication | Substance | Ingredient) | |||
productCodeableConcept | CodeableConcept | |||
quantity | 0..1 | SimpleQuantity | How much is administered/consumed/supplied | |
dosage | 0..* | Dosage | Detailed dosage instructions | |
bodySite | 0..* | CodeableConcept | What part of body to perform on SNOMED CT Body Structures (Example) | |
specimenRequirement | 0..* | canonical(SpecimenDefinition) | What specimens are required to perform this action | |
observationRequirement | 0..* | canonical(ObservationDefinition) | What observations are required to perform this action | |
observationResultRequirement | 0..* | canonical(ObservationDefinition) | What observations must be produced by this action | |
transform | 0..1 | canonical(StructureMap) | Transform to apply the template | |
dynamicValue | 0..* | BackboneElement | Dynamic aspects of the definition | |
path | 1..1 | string | The path to the element to be set dynamically | |
expression | 1..1 | Expression | An expression that provides the dynamic value for the customization | |
Documentation for this format |
See the Extensions for this resource
UML Diagram (Legend)
XML Template
<ActivityDefinition xmlns="http://hl7.org/fhir"> <!-- from Resource: id, meta, implicitRules, and language --> <!-- from DomainResource: text, contained, extension, and modifierExtension --> <url value="[uri]"/><!-- 0..1 Canonical identifier for this activity definition, represented as a URI (globally unique) --> <identifier><!-- 0..* Identifier Additional identifier for the activity definition --></identifier> <version value="[string]"/><!-- 0..1 Business version of the activity definition --> <name value="[string]"/><!-- I 0..1 Name for this activity definition (computer friendly) --> <title value="[string]"/><!-- 0..1 Name for this activity definition (human friendly) --> <subtitle value="[string]"/><!-- 0..1 Subordinate title of the activity definition --> <status value="[code]"/><!-- 1..1 draft | active | retired | unknown --> <experimental value="[boolean]"/><!-- 0..1 For testing purposes, not real usage --> <subject[x]><!-- 0..1 CodeableConcept|Reference(AdministrableProductDefinition| Group|ManufacturedItemDefinition|MedicinalProductDefinition| PackagedProductDefinition|SubstanceDefinition)|canonical(EvidenceVariable) Type of individual the activity definition is intended for --></subject[x]> <date value="[dateTime]"/><!-- 0..1 Date last changed --> <publisher value="[string]"/><!-- 0..1 Name of the publisher/steward (organization or individual) --> <contact><!-- 0..* ContactDetail Contact details for the publisher --></contact> <description value="[markdown]"/><!-- 0..1 Natural language description of the activity definition --> <useContext><!-- 0..* UsageContext The context that the content is intended to support --></useContext> <jurisdiction><!-- 0..* CodeableConcept Intended jurisdiction for activity definition (if applicable) --></jurisdiction> <purpose value="[markdown]"/><!-- 0..1 Why this activity definition is defined --> <usage value="[string]"/><!-- 0..1 Describes the clinical usage of the activity definition --> <copyright value="[markdown]"/><!-- 0..1 Use and/or publishing restrictions --> <approvalDate value="[date]"/><!-- 0..1 When the activity definition was approved by publisher --> <lastReviewDate value="[date]"/><!-- 0..1 When the activity definition was last reviewed --> <effectivePeriod><!-- 0..1 Period When the activity definition is expected to be used --></effectivePeriod> <topic><!-- 0..* CodeableConcept E.g. Education, Treatment, Assessment, etc. --></topic> <author><!-- 0..* ContactDetail Who authored the content --></author> <editor><!-- 0..* ContactDetail Who edited the content --></editor> <reviewer><!-- 0..* ContactDetail Who reviewed the content --></reviewer> <endorser><!-- 0..* ContactDetail Who endorsed the content --></endorser> <relatedArtifact><!-- 0..* RelatedArtifact Additional documentation, citations, etc. --></relatedArtifact> <library><!-- 0..* canonical(Library) Logic used by the activity definition --></library> <kind value="[code]"/><!-- 0..1 Kind of resource --> <profile><!-- 0..1 canonical(StructureDefinition) What profile the resource needs to conform to --></profile> <code><!-- 0..1 CodeableConcept Detail type of activity --></code> <intent value="[code]"/><!-- 0..1 proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option --> <priority value="[code]"/><!-- 0..1 routine | urgent | asap | stat --> <doNotPerform value="[boolean]"/><!-- 0..1 True if the activity should not be performed --> <timing[x]><!-- 0..1 Timing|Age|Range|Duration When activity is to occur --></timing[x]> <asNeeded[x]><!-- 0..1 boolean|CodeableConcept Preconditions for service --></asNeeded[x]> <location><!-- 0..1 CodeableReference(Location) Where it should happen --></location> <participant> <!-- 0..* Who should participate in the action --> <type value="[code]"/><!-- 0..1 careteam | device | group | healthcareservice | location | organization | patient | practitioner | practitionerrole | relatedperson --> <typeCanonical><!-- 0..1 canonical(CapabilityStatement) Who or what can participate --></typeCanonical> <typeReference><!-- 0..1 Reference(CareTeam|Device|DeviceDefinition|Endpoint| Group|HealthcareService|Location|Organization|Patient|Practitioner| PractitionerRole|RelatedPerson) Who or what can participate --></typeReference> <role><!-- 0..1 CodeableConcept E.g. Nurse, Surgeon, Parent, etc. --></role> <function><!-- 0..1 CodeableConcept E.g. Author, Reviewer, Witness, etc. --></function> </participant> <product[x]><!-- 0..1 Reference(Ingredient|Medication|Substance)|CodeableConcept What's administered/supplied --></product[x]> <quantity><!-- 0..1 Quantity(SimpleQuantity) How much is administered/consumed/supplied --></quantity> <dosage><!-- 0..* Dosage Detailed dosage instructions --></dosage> <bodySite><!-- 0..* CodeableConcept What part of body to perform on --></bodySite> <specimenRequirement><!-- 0..* canonical(SpecimenDefinition) What specimens are required to perform this action --></specimenRequirement> <observationRequirement><!-- 0..* canonical(ObservationDefinition) What observations are required to perform this action --></observationRequirement> <observationResultRequirement><!-- 0..* canonical(ObservationDefinition) What observations must be produced by this action --></observationResultRequirement> <transform><!-- 0..1 canonical(StructureMap) Transform to apply the template --></transform> <dynamicValue> <!-- 0..* Dynamic aspects of the definition --> <path value="[string]"/><!-- 1..1 The path to the element to be set dynamically --> <expression><!-- 1..1 Expression An expression that provides the dynamic value for the customization --></expression> </dynamicValue> </ActivityDefinition>
JSON Template
{ "resourceType" : "ActivityDefinition", // from Resource: id, meta, implicitRules, and language // from DomainResource: text, contained, extension, and modifierExtension "url" : "<uri>", // Canonical identifier for this activity definition, represented as a URI (globally unique) "identifier" : [{ Identifier }], // Additional identifier for the activity definition "version" : "<string>", // Business version of the activity definition "name" : "<string>", // I Name for this activity definition (computer friendly) "title" : "<string>", // Name for this activity definition (human friendly) "subtitle" : "<string>", // Subordinate title of the activity definition "status" : "<code>", // R! draft | active | retired | unknown "experimental" : <boolean>, // For testing purposes, not real usage // subject[x]: Type of individual the activity definition is intended for. One of these 3: "subjectCodeableConcept" : { CodeableConcept }, "subjectReference" : { Reference(AdministrableProductDefinition|Group| ManufacturedItemDefinition|MedicinalProductDefinition| PackagedProductDefinition|SubstanceDefinition) }, "subjectCanonical" : "<canonical(EvidenceVariable)>", "date" : "<dateTime>", // Date last changed "publisher" : "<string>", // Name of the publisher/steward (organization or individual) "contact" : [{ ContactDetail }], // Contact details for the publisher "description" : "<markdown>", // Natural language description of the activity definition "useContext" : [{ UsageContext }], // The context that the content is intended to support "jurisdiction" : [{ CodeableConcept }], // Intended jurisdiction for activity definition (if applicable) "purpose" : "<markdown>", // Why this activity definition is defined "usage" : "<string>", // Describes the clinical usage of the activity definition "copyright" : "<markdown>", // Use and/or publishing restrictions "approvalDate" : "<date>", // When the activity definition was approved by publisher "lastReviewDate" : "<date>", // When the activity definition was last reviewed "effectivePeriod" : { Period }, // When the activity definition is expected to be used "topic" : [{ CodeableConcept }], // E.g. Education, Treatment, Assessment, etc. "author" : [{ ContactDetail }], // Who authored the content "editor" : [{ ContactDetail }], // Who edited the content "reviewer" : [{ ContactDetail }], // Who reviewed the content "endorser" : [{ ContactDetail }], // Who endorsed the content "relatedArtifact" : [{ RelatedArtifact }], // Additional documentation, citations, etc. "library" : ["<canonical(Library)>"], // Logic used by the activity definition "kind" : "<code>", // Kind of resource "profile" : "<canonical(StructureDefinition)>", // What profile the resource needs to conform to "code" : { CodeableConcept }, // Detail type of activity "intent" : "<code>", // proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option "priority" : "<code>", // routine | urgent | asap | stat "doNotPerform" : <boolean>, // True if the activity should not be performed // timing[x]: When activity is to occur. One of these 4: "timingTiming" : { Timing }, "timingAge" : { Age }, "timingRange" : { Range }, "timingDuration" : { Duration }, // asNeeded[x]: Preconditions for service. One of these 2: "asNeededBoolean" : <boolean>, "asNeededCodeableConcept" : { CodeableConcept }, "location" : { CodeableReference(Location) }, // Where it should happen "participant" : [{ // Who should participate in the action "type" : "<code>", // careteam | device | group | healthcareservice | location | organization | patient | practitioner | practitionerrole | relatedperson "typeCanonical" : "<canonical(CapabilityStatement)>", // Who or what can participate "typeReference" : { Reference(CareTeam|Device|DeviceDefinition|Endpoint| Group|HealthcareService|Location|Organization|Patient|Practitioner| PractitionerRole|RelatedPerson) }, // Who or what can participate "role" : { CodeableConcept }, // E.g. Nurse, Surgeon, Parent, etc. "function" : { CodeableConcept } // E.g. Author, Reviewer, Witness, etc. }], // product[x]: What's administered/supplied. One of these 2: "productReference" : { Reference(Ingredient|Medication|Substance) }, "productCodeableConcept" : { CodeableConcept }, "quantity" : { Quantity(SimpleQuantity) }, // How much is administered/consumed/supplied "dosage" : [{ Dosage }], // Detailed dosage instructions "bodySite" : [{ CodeableConcept }], // What part of body to perform on "specimenRequirement" : ["<canonical(SpecimenDefinition)>"], // What specimens are required to perform this action "observationRequirement" : ["<canonical(ObservationDefinition)>"], // What observations are required to perform this action "observationResultRequirement" : ["<canonical(ObservationDefinition)>"], // What observations must be produced by this action "transform" : "<canonical(StructureMap)>", // Transform to apply the template "dynamicValue" : [{ // Dynamic aspects of the definition "path" : "<string>", // R! The path to the element to be set dynamically "expression" : { Expression } // R! An expression that provides the dynamic value for the customization }] }
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ a fhir:ActivityDefinition; fhir:nodeRole fhir:treeRoot; # if this is the parser root # from Resource: .id, .meta, .implicitRules, and .language # from DomainResource: .text, .contained, .extension, and .modifierExtension fhir:ActivityDefinition.url [ uri ]; # 0..1 Canonical identifier for this activity definition, represented as a URI (globally unique) fhir:ActivityDefinition.identifier [ Identifier ], ... ; # 0..* Additional identifier for the activity definition fhir:ActivityDefinition.version [ string ]; # 0..1 Business version of the activity definition fhir:ActivityDefinition.name [ string ]; # 0..1 I Name for this activity definition (computer friendly) fhir:ActivityDefinition.title [ string ]; # 0..1 Name for this activity definition (human friendly) fhir:ActivityDefinition.subtitle [ string ]; # 0..1 Subordinate title of the activity definition fhir:ActivityDefinition.status [ code ]; # 1..1 draft | active | retired | unknown fhir:ActivityDefinition.experimental [ boolean ]; # 0..1 For testing purposes, not real usage # ActivityDefinition.subject[x] : 0..1 Type of individual the activity definition is intended for. One of these 3 fhir:ActivityDefinition.subjectCodeableConcept [ CodeableConcept ] fhir:ActivityDefinition.subjectReference [ Reference(AdministrableProductDefinition|Group|ManufacturedItemDefinition| MedicinalProductDefinition|PackagedProductDefinition|SubstanceDefinition) ] fhir:ActivityDefinition.subjectCanonical [ canonical(EvidenceVariable) ] fhir:ActivityDefinition.date [ dateTime ]; # 0..1 Date last changed fhir:ActivityDefinition.publisher [ string ]; # 0..1 Name of the publisher/steward (organization or individual) fhir:ActivityDefinition.contact [ ContactDetail ], ... ; # 0..* Contact details for the publisher fhir:ActivityDefinition.description [ markdown ]; # 0..1 Natural language description of the activity definition fhir:ActivityDefinition.useContext [ UsageContext ], ... ; # 0..* The context that the content is intended to support fhir:ActivityDefinition.jurisdiction [ CodeableConcept ], ... ; # 0..* Intended jurisdiction for activity definition (if applicable) fhir:ActivityDefinition.purpose [ markdown ]; # 0..1 Why this activity definition is defined fhir:ActivityDefinition.usage [ string ]; # 0..1 Describes the clinical usage of the activity definition fhir:ActivityDefinition.copyright [ markdown ]; # 0..1 Use and/or publishing restrictions fhir:ActivityDefinition.approvalDate [ date ]; # 0..1 When the activity definition was approved by publisher fhir:ActivityDefinition.lastReviewDate [ date ]; # 0..1 When the activity definition was last reviewed fhir:ActivityDefinition.effectivePeriod [ Period ]; # 0..1 When the activity definition is expected to be used fhir:ActivityDefinition.topic [ CodeableConcept ], ... ; # 0..* E.g. Education, Treatment, Assessment, etc. fhir:ActivityDefinition.author [ ContactDetail ], ... ; # 0..* Who authored the content fhir:ActivityDefinition.editor [ ContactDetail ], ... ; # 0..* Who edited the content fhir:ActivityDefinition.reviewer [ ContactDetail ], ... ; # 0..* Who reviewed the content fhir:ActivityDefinition.endorser [ ContactDetail ], ... ; # 0..* Who endorsed the content fhir:ActivityDefinition.relatedArtifact [ RelatedArtifact ], ... ; # 0..* Additional documentation, citations, etc. fhir:ActivityDefinition.library [ canonical(Library) ], ... ; # 0..* Logic used by the activity definition fhir:ActivityDefinition.kind [ code ]; # 0..1 Kind of resource fhir:ActivityDefinition.profile [ canonical(StructureDefinition) ]; # 0..1 What profile the resource needs to conform to fhir:ActivityDefinition.code [ CodeableConcept ]; # 0..1 Detail type of activity fhir:ActivityDefinition.intent [ code ]; # 0..1 proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option fhir:ActivityDefinition.priority [ code ]; # 0..1 routine | urgent | asap | stat fhir:ActivityDefinition.doNotPerform [ boolean ]; # 0..1 True if the activity should not be performed # ActivityDefinition.timing[x] : 0..1 When activity is to occur. One of these 4 fhir:ActivityDefinition.timingTiming [ Timing ] fhir:ActivityDefinition.timingAge [ Age ] fhir:ActivityDefinition.timingRange [ Range ] fhir:ActivityDefinition.timingDuration [ Duration ] # ActivityDefinition.asNeeded[x] : 0..1 Preconditions for service. One of these 2 fhir:ActivityDefinition.asNeededBoolean [ boolean ] fhir:ActivityDefinition.asNeededCodeableConcept [ CodeableConcept ] fhir:ActivityDefinition.location [ CodeableReference(Location) ]; # 0..1 Where it should happen fhir:ActivityDefinition.participant [ # 0..* Who should participate in the action fhir:ActivityDefinition.participant.type [ code ]; # 0..1 careteam | device | group | healthcareservice | location | organization | patient | practitioner | practitionerrole | relatedperson fhir:ActivityDefinition.participant.typeCanonical [ canonical(CapabilityStatement) ]; # 0..1 Who or what can participate fhir:ActivityDefinition.participant.typeReference [ Reference(CareTeam|Device|DeviceDefinition|Endpoint|Group|HealthcareService|Location| Organization|Patient|Practitioner|PractitionerRole|RelatedPerson) ]; # 0..1 Who or what can participate fhir:ActivityDefinition.participant.role [ CodeableConcept ]; # 0..1 E.g. Nurse, Surgeon, Parent, etc. fhir:ActivityDefinition.participant.function [ CodeableConcept ]; # 0..1 E.g. Author, Reviewer, Witness, etc. ], ...; # ActivityDefinition.product[x] : 0..1 What's administered/supplied. One of these 2 fhir:ActivityDefinition.productReference [ Reference(Ingredient|Medication|Substance) ] fhir:ActivityDefinition.productCodeableConcept [ CodeableConcept ] fhir:ActivityDefinition.quantity [ Quantity(SimpleQuantity) ]; # 0..1 How much is administered/consumed/supplied fhir:ActivityDefinition.dosage [ Dosage ], ... ; # 0..* Detailed dosage instructions fhir:ActivityDefinition.bodySite [ CodeableConcept ], ... ; # 0..* What part of body to perform on fhir:ActivityDefinition.specimenRequirement [ canonical(SpecimenDefinition) ], ... ; # 0..* What specimens are required to perform this action fhir:ActivityDefinition.observationRequirement [ canonical(ObservationDefinition) ], ... ; # 0..* What observations are required to perform this action fhir:ActivityDefinition.observationResultRequirement [ canonical(ObservationDefinition) ], ... ; # 0..* What observations must be produced by this action fhir:ActivityDefinition.transform [ canonical(StructureMap) ]; # 0..1 Transform to apply the template fhir:ActivityDefinition.dynamicValue [ # 0..* Dynamic aspects of the definition fhir:ActivityDefinition.dynamicValue.path [ string ]; # 1..1 The path to the element to be set dynamically fhir:ActivityDefinition.dynamicValue.expression [ Expression ]; # 1..1 An expression that provides the dynamic value for the customization ], ...; ]
Changes since R4
ActivityDefinition | |
ActivityDefinition.subject[x] |
|
ActivityDefinition.timing[x] |
|
ActivityDefinition.asNeeded[x] |
|
ActivityDefinition.location |
|
ActivityDefinition.participant.type |
|
ActivityDefinition.participant.typeCanonical |
|
ActivityDefinition.participant.typeReference |
|
ActivityDefinition.participant.function |
|
ActivityDefinition.specimenRequirement |
|
ActivityDefinition.observationRequirement |
|
ActivityDefinition.observationResultRequirement |
|
See the Full Difference for further information
This analysis is available as XML or JSON.
See R3 <--> R4 Conversion Maps (status = 9 tests that all execute ok. 2 fail round-trip testing and 9 r3 resources are invalid (0 errors).)
Structure
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
ActivityDefinition | TU | DomainResource | The definition of a specific activity to be taken, independent of any particular patient or context + Warning: Name should be usable as an identifier for the module by machine processing applications such as code generation Elements defined in Ancestors: id, meta, implicitRules, language, text, contained, extension, modifierExtension Interfaces Implemented: MetadataResource | |
url | ΣC | 0..1 | uri | Canonical identifier for this activity definition, represented as a URI (globally unique) + Warning: URL should not contain | or # - these characters make processing canonical references problematic |
identifier | Σ | 0..* | Identifier | Additional identifier for the activity definition |
version | Σ | 0..1 | string | Business version of the activity definition |
name | ΣC | 0..1 | string | Name for this activity definition (computer friendly) |
title | Σ | 0..1 | string | Name for this activity definition (human friendly) |
subtitle | 0..1 | string | Subordinate title of the activity definition | |
status | ?!Σ | 1..1 | code | draft | active | retired | unknown PublicationStatus (Required) |
experimental | Σ | 0..1 | boolean | For testing purposes, not real usage |
subject[x] | 0..1 | Type of individual the activity definition is intended for Participant Resource Types (Extensible) | ||
subjectCodeableConcept | CodeableConcept | |||
subjectReference | Reference(Group | MedicinalProductDefinition | SubstanceDefinition | AdministrableProductDefinition | ManufacturedItemDefinition | PackagedProductDefinition) | |||
subjectCanonical | canonical(EvidenceVariable) | |||
date | Σ | 0..1 | dateTime | Date last changed |
publisher | Σ | 0..1 | string | Name of the publisher/steward (organization or individual) |
contact | Σ | 0..* | ContactDetail | Contact details for the publisher |
description | Σ | 0..1 | markdown | Natural language description of the activity definition |
useContext | Σ | 0..* | UsageContext | The context that the content is intended to support |
jurisdiction | Σ | 0..* | CodeableConcept | Intended jurisdiction for activity definition (if applicable) Jurisdiction (Extensible) |
purpose | 0..1 | markdown | Why this activity definition is defined | |
usage | 0..1 | string | Describes the clinical usage of the activity definition | |
copyright | 0..1 | markdown | Use and/or publishing restrictions | |
approvalDate | 0..1 | date | When the activity definition was approved by publisher | |
lastReviewDate | 0..1 | date | When the activity definition was last reviewed | |
effectivePeriod | Σ | 0..1 | Period | When the activity definition is expected to be used |
topic | 0..* | CodeableConcept | E.g. Education, Treatment, Assessment, etc. DefinitionTopic (Example) | |
author | 0..* | ContactDetail | Who authored the content | |
editor | 0..* | ContactDetail | Who edited the content | |
reviewer | 0..* | ContactDetail | Who reviewed the content | |
endorser | 0..* | ContactDetail | Who endorsed the content | |
relatedArtifact | 0..* | RelatedArtifact | Additional documentation, citations, etc. | |
library | 0..* | canonical(Library) | Logic used by the activity definition | |
kind | Σ | 0..1 | code | Kind of resource Request Resource Types (Required) |
profile | 0..1 | canonical(StructureDefinition) | What profile the resource needs to conform to | |
code | Σ | 0..1 | CodeableConcept | Detail type of activity Procedure Codes (SNOMED CT) (Example) |
intent | 0..1 | code | proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option RequestIntent (Required) | |
priority | 0..1 | code | routine | urgent | asap | stat RequestPriority (Required) | |
doNotPerform | ?!Σ | 0..1 | boolean | True if the activity should not be performed |
timing[x] | 0..1 | When activity is to occur | ||
timingTiming | Timing | |||
timingAge | Age | |||
timingRange | Range | |||
timingDuration | Duration | |||
asNeeded[x] | Σ | 0..1 | Preconditions for service SNOMED CT Medication As Needed Reason Codes (Example) | |
asNeededBoolean | boolean | |||
asNeededCodeableConcept | CodeableConcept | |||
location | 0..1 | CodeableReference(Location) | Where it should happen | |
participant | 0..* | BackboneElement | Who should participate in the action | |
type | 0..1 | code | careteam | device | group | healthcareservice | location | organization | patient | practitioner | practitionerrole | relatedperson ActionParticipantType (Required) | |
typeCanonical | 0..1 | canonical(CapabilityStatement) | Who or what can participate | |
typeReference | 0..1 | Reference(CareTeam | Device | DeviceDefinition | Endpoint | Group | HealthcareService | Location | Organization | Patient | Practitioner | PractitionerRole | RelatedPerson) | Who or what can participate | |
role | 0..1 | CodeableConcept | E.g. Nurse, Surgeon, Parent, etc. ActionParticipantRole (Example) | |
function | 0..1 | CodeableConcept | E.g. Author, Reviewer, Witness, etc. ActionParticipantFunction (Example) | |
product[x] | 0..1 | What's administered/supplied SNOMED CT Medication Codes (Example) | ||
productReference | Reference(Medication | Substance | Ingredient) | |||
productCodeableConcept | CodeableConcept | |||
quantity | 0..1 | SimpleQuantity | How much is administered/consumed/supplied | |
dosage | 0..* | Dosage | Detailed dosage instructions | |
bodySite | 0..* | CodeableConcept | What part of body to perform on SNOMED CT Body Structures (Example) | |
specimenRequirement | 0..* | canonical(SpecimenDefinition) | What specimens are required to perform this action | |
observationRequirement | 0..* | canonical(ObservationDefinition) | What observations are required to perform this action | |
observationResultRequirement | 0..* | canonical(ObservationDefinition) | What observations must be produced by this action | |
transform | 0..1 | canonical(StructureMap) | Transform to apply the template | |
dynamicValue | 0..* | BackboneElement | Dynamic aspects of the definition | |
path | 1..1 | string | The path to the element to be set dynamically | |
expression | 1..1 | Expression | An expression that provides the dynamic value for the customization | |
Documentation for this format |
See the Extensions for this resource
XML Template
<ActivityDefinition xmlns="http://hl7.org/fhir"> <!-- from Resource: id, meta, implicitRules, and language --> <!-- from DomainResource: text, contained, extension, and modifierExtension --> <url value="[uri]"/><!-- 0..1 Canonical identifier for this activity definition, represented as a URI (globally unique) --> <identifier><!-- 0..* Identifier Additional identifier for the activity definition --></identifier> <version value="[string]"/><!-- 0..1 Business version of the activity definition --> <name value="[string]"/><!-- I 0..1 Name for this activity definition (computer friendly) --> <title value="[string]"/><!-- 0..1 Name for this activity definition (human friendly) --> <subtitle value="[string]"/><!-- 0..1 Subordinate title of the activity definition --> <status value="[code]"/><!-- 1..1 draft | active | retired | unknown --> <experimental value="[boolean]"/><!-- 0..1 For testing purposes, not real usage --> <subject[x]><!-- 0..1 CodeableConcept|Reference(AdministrableProductDefinition| Group|ManufacturedItemDefinition|MedicinalProductDefinition| PackagedProductDefinition|SubstanceDefinition)|canonical(EvidenceVariable) Type of individual the activity definition is intended for --></subject[x]> <date value="[dateTime]"/><!-- 0..1 Date last changed --> <publisher value="[string]"/><!-- 0..1 Name of the publisher/steward (organization or individual) --> <contact><!-- 0..* ContactDetail Contact details for the publisher --></contact> <description value="[markdown]"/><!-- 0..1 Natural language description of the activity definition --> <useContext><!-- 0..* UsageContext The context that the content is intended to support --></useContext> <jurisdiction><!-- 0..* CodeableConcept Intended jurisdiction for activity definition (if applicable) --></jurisdiction> <purpose value="[markdown]"/><!-- 0..1 Why this activity definition is defined --> <usage value="[string]"/><!-- 0..1 Describes the clinical usage of the activity definition --> <copyright value="[markdown]"/><!-- 0..1 Use and/or publishing restrictions --> <approvalDate value="[date]"/><!-- 0..1 When the activity definition was approved by publisher --> <lastReviewDate value="[date]"/><!-- 0..1 When the activity definition was last reviewed --> <effectivePeriod><!-- 0..1 Period When the activity definition is expected to be used --></effectivePeriod> <topic><!-- 0..* CodeableConcept E.g. Education, Treatment, Assessment, etc. --></topic> <author><!-- 0..* ContactDetail Who authored the content --></author> <editor><!-- 0..* ContactDetail Who edited the content --></editor> <reviewer><!-- 0..* ContactDetail Who reviewed the content --></reviewer> <endorser><!-- 0..* ContactDetail Who endorsed the content --></endorser> <relatedArtifact><!-- 0..* RelatedArtifact Additional documentation, citations, etc. --></relatedArtifact> <library><!-- 0..* canonical(Library) Logic used by the activity definition --></library> <kind value="[code]"/><!-- 0..1 Kind of resource --> <profile><!-- 0..1 canonical(StructureDefinition) What profile the resource needs to conform to --></profile> <code><!-- 0..1 CodeableConcept Detail type of activity --></code> <intent value="[code]"/><!-- 0..1 proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option --> <priority value="[code]"/><!-- 0..1 routine | urgent | asap | stat --> <doNotPerform value="[boolean]"/><!-- 0..1 True if the activity should not be performed --> <timing[x]><!-- 0..1 Timing|Age|Range|Duration When activity is to occur --></timing[x]> <asNeeded[x]><!-- 0..1 boolean|CodeableConcept Preconditions for service --></asNeeded[x]> <location><!-- 0..1 CodeableReference(Location) Where it should happen --></location> <participant> <!-- 0..* Who should participate in the action --> <type value="[code]"/><!-- 0..1 careteam | device | group | healthcareservice | location | organization | patient | practitioner | practitionerrole | relatedperson --> <typeCanonical><!-- 0..1 canonical(CapabilityStatement) Who or what can participate --></typeCanonical> <typeReference><!-- 0..1 Reference(CareTeam|Device|DeviceDefinition|Endpoint| Group|HealthcareService|Location|Organization|Patient|Practitioner| PractitionerRole|RelatedPerson) Who or what can participate --></typeReference> <role><!-- 0..1 CodeableConcept E.g. Nurse, Surgeon, Parent, etc. --></role> <function><!-- 0..1 CodeableConcept E.g. Author, Reviewer, Witness, etc. --></function> </participant> <product[x]><!-- 0..1 Reference(Ingredient|Medication|Substance)|CodeableConcept What's administered/supplied --></product[x]> <quantity><!-- 0..1 Quantity(SimpleQuantity) How much is administered/consumed/supplied --></quantity> <dosage><!-- 0..* Dosage Detailed dosage instructions --></dosage> <bodySite><!-- 0..* CodeableConcept What part of body to perform on --></bodySite> <specimenRequirement><!-- 0..* canonical(SpecimenDefinition) What specimens are required to perform this action --></specimenRequirement> <observationRequirement><!-- 0..* canonical(ObservationDefinition) What observations are required to perform this action --></observationRequirement> <observationResultRequirement><!-- 0..* canonical(ObservationDefinition) What observations must be produced by this action --></observationResultRequirement> <transform><!-- 0..1 canonical(StructureMap) Transform to apply the template --></transform> <dynamicValue> <!-- 0..* Dynamic aspects of the definition --> <path value="[string]"/><!-- 1..1 The path to the element to be set dynamically --> <expression><!-- 1..1 Expression An expression that provides the dynamic value for the customization --></expression> </dynamicValue> </ActivityDefinition>
JSON Template
{ "resourceType" : "ActivityDefinition", // from Resource: id, meta, implicitRules, and language // from DomainResource: text, contained, extension, and modifierExtension "url" : "<uri>", // Canonical identifier for this activity definition, represented as a URI (globally unique) "identifier" : [{ Identifier }], // Additional identifier for the activity definition "version" : "<string>", // Business version of the activity definition "name" : "<string>", // I Name for this activity definition (computer friendly) "title" : "<string>", // Name for this activity definition (human friendly) "subtitle" : "<string>", // Subordinate title of the activity definition "status" : "<code>", // R! draft | active | retired | unknown "experimental" : <boolean>, // For testing purposes, not real usage // subject[x]: Type of individual the activity definition is intended for. One of these 3: "subjectCodeableConcept" : { CodeableConcept }, "subjectReference" : { Reference(AdministrableProductDefinition|Group| ManufacturedItemDefinition|MedicinalProductDefinition| PackagedProductDefinition|SubstanceDefinition) }, "subjectCanonical" : "<canonical(EvidenceVariable)>", "date" : "<dateTime>", // Date last changed "publisher" : "<string>", // Name of the publisher/steward (organization or individual) "contact" : [{ ContactDetail }], // Contact details for the publisher "description" : "<markdown>", // Natural language description of the activity definition "useContext" : [{ UsageContext }], // The context that the content is intended to support "jurisdiction" : [{ CodeableConcept }], // Intended jurisdiction for activity definition (if applicable) "purpose" : "<markdown>", // Why this activity definition is defined "usage" : "<string>", // Describes the clinical usage of the activity definition "copyright" : "<markdown>", // Use and/or publishing restrictions "approvalDate" : "<date>", // When the activity definition was approved by publisher "lastReviewDate" : "<date>", // When the activity definition was last reviewed "effectivePeriod" : { Period }, // When the activity definition is expected to be used "topic" : [{ CodeableConcept }], // E.g. Education, Treatment, Assessment, etc. "author" : [{ ContactDetail }], // Who authored the content "editor" : [{ ContactDetail }], // Who edited the content "reviewer" : [{ ContactDetail }], // Who reviewed the content "endorser" : [{ ContactDetail }], // Who endorsed the content "relatedArtifact" : [{ RelatedArtifact }], // Additional documentation, citations, etc. "library" : ["<canonical(Library)>"], // Logic used by the activity definition "kind" : "<code>", // Kind of resource "profile" : "<canonical(StructureDefinition)>", // What profile the resource needs to conform to "code" : { CodeableConcept }, // Detail type of activity "intent" : "<code>", // proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option "priority" : "<code>", // routine | urgent | asap | stat "doNotPerform" : <boolean>, // True if the activity should not be performed // timing[x]: When activity is to occur. One of these 4: "timingTiming" : { Timing }, "timingAge" : { Age }, "timingRange" : { Range }, "timingDuration" : { Duration }, // asNeeded[x]: Preconditions for service. One of these 2: "asNeededBoolean" : <boolean>, "asNeededCodeableConcept" : { CodeableConcept }, "location" : { CodeableReference(Location) }, // Where it should happen "participant" : [{ // Who should participate in the action "type" : "<code>", // careteam | device | group | healthcareservice | location | organization | patient | practitioner | practitionerrole | relatedperson "typeCanonical" : "<canonical(CapabilityStatement)>", // Who or what can participate "typeReference" : { Reference(CareTeam|Device|DeviceDefinition|Endpoint| Group|HealthcareService|Location|Organization|Patient|Practitioner| PractitionerRole|RelatedPerson) }, // Who or what can participate "role" : { CodeableConcept }, // E.g. Nurse, Surgeon, Parent, etc. "function" : { CodeableConcept } // E.g. Author, Reviewer, Witness, etc. }], // product[x]: What's administered/supplied. One of these 2: "productReference" : { Reference(Ingredient|Medication|Substance) }, "productCodeableConcept" : { CodeableConcept }, "quantity" : { Quantity(SimpleQuantity) }, // How much is administered/consumed/supplied "dosage" : [{ Dosage }], // Detailed dosage instructions "bodySite" : [{ CodeableConcept }], // What part of body to perform on "specimenRequirement" : ["<canonical(SpecimenDefinition)>"], // What specimens are required to perform this action "observationRequirement" : ["<canonical(ObservationDefinition)>"], // What observations are required to perform this action "observationResultRequirement" : ["<canonical(ObservationDefinition)>"], // What observations must be produced by this action "transform" : "<canonical(StructureMap)>", // Transform to apply the template "dynamicValue" : [{ // Dynamic aspects of the definition "path" : "<string>", // R! The path to the element to be set dynamically "expression" : { Expression } // R! An expression that provides the dynamic value for the customization }] }
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ a fhir:ActivityDefinition; fhir:nodeRole fhir:treeRoot; # if this is the parser root # from Resource: .id, .meta, .implicitRules, and .language # from DomainResource: .text, .contained, .extension, and .modifierExtension fhir:ActivityDefinition.url [ uri ]; # 0..1 Canonical identifier for this activity definition, represented as a URI (globally unique) fhir:ActivityDefinition.identifier [ Identifier ], ... ; # 0..* Additional identifier for the activity definition fhir:ActivityDefinition.version [ string ]; # 0..1 Business version of the activity definition fhir:ActivityDefinition.name [ string ]; # 0..1 I Name for this activity definition (computer friendly) fhir:ActivityDefinition.title [ string ]; # 0..1 Name for this activity definition (human friendly) fhir:ActivityDefinition.subtitle [ string ]; # 0..1 Subordinate title of the activity definition fhir:ActivityDefinition.status [ code ]; # 1..1 draft | active | retired | unknown fhir:ActivityDefinition.experimental [ boolean ]; # 0..1 For testing purposes, not real usage # ActivityDefinition.subject[x] : 0..1 Type of individual the activity definition is intended for. One of these 3 fhir:ActivityDefinition.subjectCodeableConcept [ CodeableConcept ] fhir:ActivityDefinition.subjectReference [ Reference(AdministrableProductDefinition|Group|ManufacturedItemDefinition| MedicinalProductDefinition|PackagedProductDefinition|SubstanceDefinition) ] fhir:ActivityDefinition.subjectCanonical [ canonical(EvidenceVariable) ] fhir:ActivityDefinition.date [ dateTime ]; # 0..1 Date last changed fhir:ActivityDefinition.publisher [ string ]; # 0..1 Name of the publisher/steward (organization or individual) fhir:ActivityDefinition.contact [ ContactDetail ], ... ; # 0..* Contact details for the publisher fhir:ActivityDefinition.description [ markdown ]; # 0..1 Natural language description of the activity definition fhir:ActivityDefinition.useContext [ UsageContext ], ... ; # 0..* The context that the content is intended to support fhir:ActivityDefinition.jurisdiction [ CodeableConcept ], ... ; # 0..* Intended jurisdiction for activity definition (if applicable) fhir:ActivityDefinition.purpose [ markdown ]; # 0..1 Why this activity definition is defined fhir:ActivityDefinition.usage [ string ]; # 0..1 Describes the clinical usage of the activity definition fhir:ActivityDefinition.copyright [ markdown ]; # 0..1 Use and/or publishing restrictions fhir:ActivityDefinition.approvalDate [ date ]; # 0..1 When the activity definition was approved by publisher fhir:ActivityDefinition.lastReviewDate [ date ]; # 0..1 When the activity definition was last reviewed fhir:ActivityDefinition.effectivePeriod [ Period ]; # 0..1 When the activity definition is expected to be used fhir:ActivityDefinition.topic [ CodeableConcept ], ... ; # 0..* E.g. Education, Treatment, Assessment, etc. fhir:ActivityDefinition.author [ ContactDetail ], ... ; # 0..* Who authored the content fhir:ActivityDefinition.editor [ ContactDetail ], ... ; # 0..* Who edited the content fhir:ActivityDefinition.reviewer [ ContactDetail ], ... ; # 0..* Who reviewed the content fhir:ActivityDefinition.endorser [ ContactDetail ], ... ; # 0..* Who endorsed the content fhir:ActivityDefinition.relatedArtifact [ RelatedArtifact ], ... ; # 0..* Additional documentation, citations, etc. fhir:ActivityDefinition.library [ canonical(Library) ], ... ; # 0..* Logic used by the activity definition fhir:ActivityDefinition.kind [ code ]; # 0..1 Kind of resource fhir:ActivityDefinition.profile [ canonical(StructureDefinition) ]; # 0..1 What profile the resource needs to conform to fhir:ActivityDefinition.code [ CodeableConcept ]; # 0..1 Detail type of activity fhir:ActivityDefinition.intent [ code ]; # 0..1 proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option fhir:ActivityDefinition.priority [ code ]; # 0..1 routine | urgent | asap | stat fhir:ActivityDefinition.doNotPerform [ boolean ]; # 0..1 True if the activity should not be performed # ActivityDefinition.timing[x] : 0..1 When activity is to occur. One of these 4 fhir:ActivityDefinition.timingTiming [ Timing ] fhir:ActivityDefinition.timingAge [ Age ] fhir:ActivityDefinition.timingRange [ Range ] fhir:ActivityDefinition.timingDuration [ Duration ] # ActivityDefinition.asNeeded[x] : 0..1 Preconditions for service. One of these 2 fhir:ActivityDefinition.asNeededBoolean [ boolean ] fhir:ActivityDefinition.asNeededCodeableConcept [ CodeableConcept ] fhir:ActivityDefinition.location [ CodeableReference(Location) ]; # 0..1 Where it should happen fhir:ActivityDefinition.participant [ # 0..* Who should participate in the action fhir:ActivityDefinition.participant.type [ code ]; # 0..1 careteam | device | group | healthcareservice | location | organization | patient | practitioner | practitionerrole | relatedperson fhir:ActivityDefinition.participant.typeCanonical [ canonical(CapabilityStatement) ]; # 0..1 Who or what can participate fhir:ActivityDefinition.participant.typeReference [ Reference(CareTeam|Device|DeviceDefinition|Endpoint|Group|HealthcareService|Location| Organization|Patient|Practitioner|PractitionerRole|RelatedPerson) ]; # 0..1 Who or what can participate fhir:ActivityDefinition.participant.role [ CodeableConcept ]; # 0..1 E.g. Nurse, Surgeon, Parent, etc. fhir:ActivityDefinition.participant.function [ CodeableConcept ]; # 0..1 E.g. Author, Reviewer, Witness, etc. ], ...; # ActivityDefinition.product[x] : 0..1 What's administered/supplied. One of these 2 fhir:ActivityDefinition.productReference [ Reference(Ingredient|Medication|Substance) ] fhir:ActivityDefinition.productCodeableConcept [ CodeableConcept ] fhir:ActivityDefinition.quantity [ Quantity(SimpleQuantity) ]; # 0..1 How much is administered/consumed/supplied fhir:ActivityDefinition.dosage [ Dosage ], ... ; # 0..* Detailed dosage instructions fhir:ActivityDefinition.bodySite [ CodeableConcept ], ... ; # 0..* What part of body to perform on fhir:ActivityDefinition.specimenRequirement [ canonical(SpecimenDefinition) ], ... ; # 0..* What specimens are required to perform this action fhir:ActivityDefinition.observationRequirement [ canonical(ObservationDefinition) ], ... ; # 0..* What observations are required to perform this action fhir:ActivityDefinition.observationResultRequirement [ canonical(ObservationDefinition) ], ... ; # 0..* What observations must be produced by this action fhir:ActivityDefinition.transform [ canonical(StructureMap) ]; # 0..1 Transform to apply the template fhir:ActivityDefinition.dynamicValue [ # 0..* Dynamic aspects of the definition fhir:ActivityDefinition.dynamicValue.path [ string ]; # 1..1 The path to the element to be set dynamically fhir:ActivityDefinition.dynamicValue.expression [ Expression ]; # 1..1 An expression that provides the dynamic value for the customization ], ...; ]
Changes since Release 4
ActivityDefinition | |
ActivityDefinition.subject[x] |
|
ActivityDefinition.timing[x] |
|
ActivityDefinition.asNeeded[x] |
|
ActivityDefinition.location |
|
ActivityDefinition.participant.type |
|
ActivityDefinition.participant.typeCanonical |
|
ActivityDefinition.participant.typeReference |
|
ActivityDefinition.participant.function |
|
ActivityDefinition.specimenRequirement |
|
ActivityDefinition.observationRequirement |
|
ActivityDefinition.observationResultRequirement |
|
See the Full Difference for further information
This analysis is available as XML or JSON.
See R3 <--> R4 Conversion Maps (status = 9 tests that all execute ok. 2 fail round-trip testing and 9 r3 resources are invalid (0 errors).)
Additional definitions: Master Definition XML + JSON, XML Schema/Schematron + JSON Schema, ShEx (for Turtle) , the spreadsheet version & the dependency analysis
Path | Definition | Type | Reference |
---|---|---|---|
ActivityDefinition.status | The lifecycle status of an artifact. | Required | PublicationStatus |
ActivityDefinition.subject[x] | All Resource Types that represent participant resources | Extensible | ParticipantResourceTypes |
ActivityDefinition.jurisdiction | This value set defines a base set of codes for country, country subdivision and region for indicating where a resource is intended to be used. Note: The codes for countries and country subdivisions are taken from ISO 3166 while the codes for "supra-national" regions are from UN Standard country or area codes for statistical use (M49) . | Extensible | Jurisdiction ValueSet |
ActivityDefinition.topic | High-level categorization of the definition, used for searching, sorting, and filtering. | Example | DefinitionTopic |
ActivityDefinition.kind | All Resource Types that represent request resources | Required | RequestResourceTypes |
ActivityDefinition.code | Procedure Code: All SNOMED CT procedure codes. | Example | ProcedureCodes(SNOMEDCT) |
ActivityDefinition.intent | Codes indicating the degree of authority/intentionality associated with a request. | Required | RequestIntent |
ActivityDefinition.priority | Identifies the level of importance to be assigned to actioning the request. | Required | RequestPriority |
ActivityDefinition.asNeeded[x] | This value set includes all clinical findings from SNOMED CT - provided as an exemplar value set. | Example | SNOMEDCTMedicationAsNeededReasonCodes |
ActivityDefinition.participant.type | The type of participant for the action. | Required | ActionParticipantType |
ActivityDefinition.participant.role | Either a practitioner role or a relationship type. Note from UTG import - may have been a temporary entry that subsequently disappeared from the FHIR source; unable to locate. Version set to 0.1.0 | Example | ActionParticipantRole |
ActivityDefinition.participant.function | The function performed by the participant for the action. | Example | ActionParticipantFunction |
ActivityDefinition.product[x] | This value set includes all drug or medicament substance codes and all pharmaceutical/biologic products from SNOMED CT - provided as an exemplar value set. | Example | SNOMEDCTMedicationCodes |
ActivityDefinition.bodySite | This value set includes all codes from SNOMED CT where concept is-a 442083009 (Anatomical or acquired body site (body structure)). | Example | SNOMEDCTBodyStructures |
UniqueKey | Level | Location | Description | Expression |
cnl-0 | Warning | (base) | Name should be usable as an identifier for the module by machine processing applications such as code generation | name.exists() implies name.matches('[A-Z]([A-Za-z0-9_]){1,254}') |
cnl-1 | Warning | ActivityDefinition.url | URL should not contain | or # - these characters make processing canonical references problematic | url.matches('([^|#])*') |
An ActivityDefinition resource provides a description, or template, of an action to performed. These actions can be purely text-based descriptions of the action to be performed, only interpretable by a human user, or they can be structured definitions with enough information to construct a resource to represent the request or activity directly. This process of converting the ActivityDefinition into a specific resource in a particular context is performed with the $apply
operation.
In the simplest case, the process maps the elements specified in the ActivityDefinition to the corresponding elements on a resource of the appropriate type, using the kind
element of the definition to determine the type of resource to be created.
More dynamic scenarios can be achieved in one of two ways, either by providing dynamicValue
expressions, or by specifying a StructureMap that transforms the definition into the appropriate request resource.
Note that systems will likely vary widely in the degree of support they provide for the $apply
operation. In particular, the fact that a system supports applying definitions of one category, does not imply that it supports applying definitions for all categories. For example, a service focused on medication order sets may have sophisticated support for MedicationRequest activities, but no support at all for the ServiceRequest activities.
The following diagram illustrates the relationship between the PlanDefinition and ActivityDefinition resources, as well as a typical application to CarePlan, RequestOrchestration, and Request resources:
To accommodate the variability in systems and use cases, this specification is not prescriptive about exactly how an ActivityDefinition is applied to produce target request or event resources. However, the approach depicted above provides a general framework for the process, and the following steps provide more detail on the potential approach:
kind
element and focused on the Patient in contextstatus
of the target resource to draftcode
, timing
, doNotPerform
, product
, quantity
, dosage
, and so onparticipant
element based on the user in contextlocation
element based on the location in contexttransform
element is specified, apply the transform to the resource. Note that the referenced StructureMap may actually construct the resource, rather than taking an instance. See the StructureMap for more informationdynamicValue
elements (in the order in which they appear in the ActivityDefinition resource) by evaluating the expression and setting the value of the appropriate element of the target resource (as specified by the dynamicValue.path
element)Note that the parameters to the $apply operation are available within dynamicValue CQL and FHIRPath expressions as context variables, accessible by the name of the parameter prefixed with a percent (%) symbol. For example, to access the subject given to the apply, use the expression %subject
.
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 contained resources in the result). 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.
Because the ActivityDefinition resource can be used to describe many different types of request resources, profiles of the resource will be useful in communicating additional constraints and expectations about how the resource should be used in a particular context. For example, a profile of ActivityDefinition may specify that it is intended to describe medication orders within an order set. Such a profile would indicate that the quantity
element should not be used, but the dosage
element must be.
Search parameters for this resource. The common parameters also apply. See Searching for more information about searching in REST, messaging, and services.
Name | Type | Description | Expression | In Common |
composed-of | reference | What resource is being referenced | ActivityDefinition.relatedArtifact.where(type='composed-of').resource (Any) | |
context | token | A use context assigned to the activity definition | (ActivityDefinition.useContext.value as CodeableConcept) | |
context-quantity | quantity | A quantity- or range-valued use context assigned to the activity definition | (ActivityDefinition.useContext.value as Quantity) | (ActivityDefinition.useContext.value as Range) | |
context-type | token | A type of use context assigned to the activity definition | ActivityDefinition.useContext.code | |
context-type-quantity | composite | A use context type and quantity- or range-based value assigned to the activity definition | On ActivityDefinition.useContext: context-type: code context-quantity: value.ofType(Quantity) | value.ofType(Range) | |
context-type-value | composite | A use context type and value assigned to the activity definition | On ActivityDefinition.useContext: context-type: code context: value.ofType(CodeableConcept) | |
date N | date | The activity definition publication date | ActivityDefinition.date | |
depends-on | reference | What resource is being referenced | ActivityDefinition.relatedArtifact.where(type='depends-on').resource | ActivityDefinition.library (Library, Any) | |
derived-from | reference | What resource is being referenced | ActivityDefinition.relatedArtifact.where(type='derived-from').resource (Any) | |
description N | string | The description of the activity definition | ActivityDefinition.description | |
effective | date | The time during which the activity definition is intended to be in use | ActivityDefinition.effectivePeriod | |
identifier | token | External identifier for the activity definition | ActivityDefinition.identifier | |
jurisdiction | token | Intended jurisdiction for the activity definition | ActivityDefinition.jurisdiction | |
kind | token | The kind of activity definition | ActivityDefinition.kind | |
name N | string | Computationally friendly name of the activity definition | ActivityDefinition.name | |
predecessor | reference | What resource is being referenced | ActivityDefinition.relatedArtifact.where(type='predecessor').resource (Any) | |
publisher N | string | Name of the publisher of the activity definition | ActivityDefinition.publisher | |
status N | token | The current status of the activity definition | ActivityDefinition.status | |
successor | reference | What resource is being referenced | ActivityDefinition.relatedArtifact.where(type='successor').resource (Any) | |
title N | string | The human-friendly name of the activity definition | ActivityDefinition.title | |
topic | token | Topics associated with the module | ActivityDefinition.topic | |
url N | uri | The uri that identifies the activity definition | ActivityDefinition.url | |
version N | token | The business version of the activity definition | ActivityDefinition.version |