This page is part of the FHIR Specification (v1.8.0: STU 3 Draft). 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: 0 | 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 draft proposal for use as part of an approach to Clinical Quality within FHIR, and is documented as part of the Clinical Reasoning module.
An activity definition is a shareable, consumable description of some activity to be performed. It may be used to specify actions to be taken as part of an 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 Category Mapping and Realizing an ActivityDefinition topics 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 potentially be used to construct specific request resources such as ProcedureRequest and MedicationRequest.
This resource is referenced by MedicationRequest, MessageDefinition, PlanDefinition and Task
Structure
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
ActivityDefinition | DomainResource | The definition of a specific activity to be taken, independent of any particular patient or context | ||
url | Σ | 0..1 | uri | Logical uri to reference this activity definition (globally unique) |
identifier | Σ | 0..* | Identifier | Additional identifier for the activity definition |
version | Σ | 0..1 | string | Business version of the activity definition |
name | Σ | 0..1 | string | Name for this activity definition (Computer friendly) |
title | Σ | 0..1 | string | Name for this activity definition (Human friendly) |
status | ?!Σ | 1..1 | code | draft | active | retired PublicationStatus (Required) |
experimental | ?!Σ | 0..1 | boolean | If for testing purposes, not real usage |
date | Σ | 0..1 | dateTime | Date this was last changed |
description | 0..1 | markdown | Natural language description of the activity definition | |
purpose | 0..1 | markdown | Why this activity definition is defined | |
usage | 0..1 | string | Describes the clinical usage of the asset | |
approvalDate | 0..1 | date | When activity definition approved by publisher | |
lastReviewDate | 0..1 | date | Last review date for the activity definition | |
effectivePeriod | Σ | 0..1 | Period | The effective date range for the activity definition |
useContext | Σ | 0..* | UsageContext | Content intends to support these contexts |
jurisdiction | Σ | 0..* | CodeableConcept | Intended jurisdiction for activity definition (if applicable) Jurisdiction ValueSet (Extensible) |
topic | 0..* | CodeableConcept | Descriptional topics for the asset | |
contributor | 0..* | Contributor | A content contributor | |
publisher | Σ | 0..1 | string | Name of the publisher (Organization or individual) |
contact | Σ | 0..* | ContactDetail | Contact details for the publisher |
copyright | 0..1 | markdown | Use and/or publishing restrictions | |
relatedArtifact | 0..* | RelatedArtifact | Related artifacts for the asset | |
library | 0..* | Reference(Library) | Logic used by the asset | |
category | 0..1 | code | communication | device | diagnostic | diet | drug | encounter | immunization | observation | procedure | referral | supply | vision | other ActivityDefinitionCategory (Required) | |
code | 0..1 | CodeableConcept | Detail type of activity | |
timing[x] | 0..1 | When activity is to occur | ||
timingCodeableConcept | CodeableConcept | |||
timingTiming | Timing | |||
location | 0..1 | Reference(Location) | Where it should happen | |
participantType | 0..* | code | patient | practitioner | related-person PlanActionParticipantType (Required) | |
product[x] | 0..1 | What's administered/supplied | ||
productReference | Reference(Medication | Substance) | |||
productCodeableConcept | CodeableConcept | |||
quantity | 0..1 | SimpleQuantity | How much is administered/consumed/supplied | |
dosageInstruction | 0..* | DosageInstruction | Detailed dosage instructions | |
bodySite | 0..* | CodeableConcept | What part of body to perform on SNOMED CT Body Structures (Example) | |
transform | 0..1 | Reference(StructureMap) | Transform to apply the template | |
dynamicValue | 0..* | BackboneElement | Dynamic aspects of the definition | |
description | 0..1 | string | Natural language description of the dynamic value | |
path | 0..1 | string | The path to the element to be set dynamically | |
language | 0..1 | string | Language of the expression | |
expression | 0..1 | string | An expression that provides the dynamic value for the customization | |
Documentation for this format |
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 Logical uri to reference this activity definition (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]"/><!-- 0..1 Name for this activity definition (Computer friendly) --> <title value="[string]"/><!-- 0..1 Name for this activity definition (Human friendly) --> <status value="[code]"/><!-- 1..1 draft | active | retired --> <experimental value="[boolean]"/><!-- 0..1 If for testing purposes, not real usage --> <date value="[dateTime]"/><!-- 0..1 Date this was last changed --> <description value="[markdown]"/><!-- 0..1 Natural language description of the activity definition --> <purpose value="[markdown]"/><!-- 0..1 Why this activity definition is defined --> <usage value="[string]"/><!-- 0..1 Describes the clinical usage of the asset --> <approvalDate value="[date]"/><!-- 0..1 When activity definition approved by publisher --> <lastReviewDate value="[date]"/><!-- 0..1 Last review date for the activity definition --> <effectivePeriod><!-- 0..1 Period The effective date range for the activity definition --></effectivePeriod> <useContext><!-- 0..* UsageContext Content intends to support these contexts --></useContext> <jurisdiction><!-- 0..* CodeableConcept Intended jurisdiction for activity definition (if applicable) --></jurisdiction> <topic><!-- 0..* CodeableConcept Descriptional topics for the asset --></topic> <contributor><!-- 0..* Contributor A content contributor --></contributor> <publisher value="[string]"/><!-- 0..1 Name of the publisher (Organization or individual) --> <contact><!-- 0..* ContactDetail Contact details for the publisher --></contact> <copyright value="[markdown]"/><!-- 0..1 Use and/or publishing restrictions --> <relatedArtifact><!-- 0..* RelatedArtifact Related artifacts for the asset --></relatedArtifact> <library><!-- 0..* Reference(Library) Logic used by the asset --></library> <category value="[code]"/><!-- 0..1 communication | device | diagnostic | diet | drug | encounter | immunization | observation | procedure | referral | supply | vision | other --> <code><!-- 0..1 CodeableConcept Detail type of activity --></code> <timing[x]><!-- 0..1 CodeableConcept|Timing When activity is to occur --></timing[x]> <location><!-- 0..1 Reference(Location) Where it should happen --></location> <participantType value="[code]"/><!-- 0..* patient | practitioner | related-person --> <product[x]><!-- 0..1 Reference(Medication|Substance)|CodeableConcept What's administered/supplied --></product[x]> <quantity><!-- 0..1 Quantity(SimpleQuantity) How much is administered/consumed/supplied --></quantity> <dosageInstruction><!-- 0..* DosageInstruction Detailed dosage instructions --></dosageInstruction> <bodySite><!-- 0..* CodeableConcept What part of body to perform on --></bodySite> <transform><!-- 0..1 Reference(StructureMap) Transform to apply the template --></transform> <dynamicValue> <!-- 0..* Dynamic aspects of the definition --> <description value="[string]"/><!-- 0..1 Natural language description of the dynamic value --> <path value="[string]"/><!-- 0..1 The path to the element to be set dynamically --> <language value="[string]"/><!-- 0..1 Language of the expression --> <expression value="[string]"/><!-- 0..1 An expression that provides the dynamic value for the customization --> </dynamicValue> </ActivityDefinition>
JSON Template
{ "resourceType" : "ActivityDefinition", // from Resource: id, meta, implicitRules, and language // from DomainResource: text, contained, extension, and modifierExtension "url" : "<uri>", // Logical uri to reference this activity definition (globally unique) "identifier" : [{ Identifier }], // Additional identifier for the activity definition "version" : "<string>", // Business version of the activity definition "name" : "<string>", // Name for this activity definition (Computer friendly) "title" : "<string>", // Name for this activity definition (Human friendly) "status" : "<code>", // R! draft | active | retired "experimental" : <boolean>, // If for testing purposes, not real usage "date" : "<dateTime>", // Date this was last changed "description" : "<markdown>", // Natural language description of the activity definition "purpose" : "<markdown>", // Why this activity definition is defined "usage" : "<string>", // Describes the clinical usage of the asset "approvalDate" : "<date>", // When activity definition approved by publisher "lastReviewDate" : "<date>", // Last review date for the activity definition "effectivePeriod" : { Period }, // The effective date range for the activity definition "useContext" : [{ UsageContext }], // Content intends to support these contexts "jurisdiction" : [{ CodeableConcept }], // Intended jurisdiction for activity definition (if applicable) "topic" : [{ CodeableConcept }], // Descriptional topics for the asset "contributor" : [{ Contributor }], // A content contributor "publisher" : "<string>", // Name of the publisher (Organization or individual) "contact" : [{ ContactDetail }], // Contact details for the publisher "copyright" : "<markdown>", // Use and/or publishing restrictions "relatedArtifact" : [{ RelatedArtifact }], // Related artifacts for the asset "library" : [{ Reference(Library) }], // Logic used by the asset "category" : "<code>", // communication | device | diagnostic | diet | drug | encounter | immunization | observation | procedure | referral | supply | vision | other "code" : { CodeableConcept }, // Detail type of activity // timing[x]: When activity is to occur. One of these 2: "timingCodeableConcept" : { CodeableConcept }, "timingTiming" : { Timing }, "location" : { Reference(Location) }, // Where it should happen "participantType" : ["<code>"], // patient | practitioner | related-person // product[x]: What's administered/supplied. One of these 2: "productReference" : { Reference(Medication|Substance) }, "productCodeableConcept" : { CodeableConcept }, "quantity" : { Quantity(SimpleQuantity) }, // How much is administered/consumed/supplied "dosageInstruction" : [{ DosageInstruction }], // Detailed dosage instructions "bodySite" : [{ CodeableConcept }], // What part of body to perform on "transform" : { Reference(StructureMap) }, // Transform to apply the template "dynamicValue" : [{ // Dynamic aspects of the definition "description" : "<string>", // Natural language description of the dynamic value "path" : "<string>", // The path to the element to be set dynamically "language" : "<string>", // Language of the expression "expression" : "<string>" // 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 Logical uri to reference this activity definition (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 Name for this activity definition (Computer friendly) fhir:ActivityDefinition.title [ string ]; # 0..1 Name for this activity definition (Human friendly) fhir:ActivityDefinition.status [ code ]; # 1..1 draft | active | retired fhir:ActivityDefinition.experimental [ boolean ]; # 0..1 If for testing purposes, not real usage fhir:ActivityDefinition.date [ dateTime ]; # 0..1 Date this was last changed fhir:ActivityDefinition.description [ markdown ]; # 0..1 Natural language description of the activity definition fhir:ActivityDefinition.purpose [ markdown ]; # 0..1 Why this activity definition is defined fhir:ActivityDefinition.usage [ string ]; # 0..1 Describes the clinical usage of the asset fhir:ActivityDefinition.approvalDate [ date ]; # 0..1 When activity definition approved by publisher fhir:ActivityDefinition.lastReviewDate [ date ]; # 0..1 Last review date for the activity definition fhir:ActivityDefinition.effectivePeriod [ Period ]; # 0..1 The effective date range for the activity definition fhir:ActivityDefinition.useContext [ UsageContext ], ... ; # 0..* Content intends to support these contexts fhir:ActivityDefinition.jurisdiction [ CodeableConcept ], ... ; # 0..* Intended jurisdiction for activity definition (if applicable) fhir:ActivityDefinition.topic [ CodeableConcept ], ... ; # 0..* Descriptional topics for the asset fhir:ActivityDefinition.contributor [ Contributor ], ... ; # 0..* A content contributor fhir:ActivityDefinition.publisher [ string ]; # 0..1 Name of the publisher (Organization or individual) fhir:ActivityDefinition.contact [ ContactDetail ], ... ; # 0..* Contact details for the publisher fhir:ActivityDefinition.copyright [ markdown ]; # 0..1 Use and/or publishing restrictions fhir:ActivityDefinition.relatedArtifact [ RelatedArtifact ], ... ; # 0..* Related artifacts for the asset fhir:ActivityDefinition.library [ Reference(Library) ], ... ; # 0..* Logic used by the asset fhir:ActivityDefinition.category [ code ]; # 0..1 communication | device | diagnostic | diet | drug | encounter | immunization | observation | procedure | referral | supply | vision | other fhir:ActivityDefinition.code [ CodeableConcept ]; # 0..1 Detail type of activity # ActivityDefinition.timing[x] : 0..1 When activity is to occur. One of these 2 fhir:ActivityDefinition.timingCodeableConcept [ CodeableConcept ] fhir:ActivityDefinition.timingTiming [ Timing ] fhir:ActivityDefinition.location [ Reference(Location) ]; # 0..1 Where it should happen fhir:ActivityDefinition.participantType [ code ], ... ; # 0..* patient | practitioner | related-person # ActivityDefinition.product[x] : 0..1 What's administered/supplied. One of these 2 fhir:ActivityDefinition.productReference [ Reference(Medication|Substance) ] fhir:ActivityDefinition.productCodeableConcept [ CodeableConcept ] fhir:ActivityDefinition.quantity [ Quantity(SimpleQuantity) ]; # 0..1 How much is administered/consumed/supplied fhir:ActivityDefinition.dosageInstruction [ DosageInstruction ], ... ; # 0..* Detailed dosage instructions fhir:ActivityDefinition.bodySite [ CodeableConcept ], ... ; # 0..* What part of body to perform on fhir:ActivityDefinition.transform [ Reference(StructureMap) ]; # 0..1 Transform to apply the template fhir:ActivityDefinition.dynamicValue [ # 0..* Dynamic aspects of the definition fhir:ActivityDefinition.dynamicValue.description [ string ]; # 0..1 Natural language description of the dynamic value fhir:ActivityDefinition.dynamicValue.path [ string ]; # 0..1 The path to the element to be set dynamically fhir:ActivityDefinition.dynamicValue.language [ string ]; # 0..1 Language of the expression fhir:ActivityDefinition.dynamicValue.expression [ string ]; # 0..1 An expression that provides the dynamic value for the customization ], ...; ]
Changes since DSTU2
This resource did not exist in Release 2
Structure
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
ActivityDefinition | DomainResource | The definition of a specific activity to be taken, independent of any particular patient or context | ||
url | Σ | 0..1 | uri | Logical uri to reference this activity definition (globally unique) |
identifier | Σ | 0..* | Identifier | Additional identifier for the activity definition |
version | Σ | 0..1 | string | Business version of the activity definition |
name | Σ | 0..1 | string | Name for this activity definition (Computer friendly) |
title | Σ | 0..1 | string | Name for this activity definition (Human friendly) |
status | ?!Σ | 1..1 | code | draft | active | retired PublicationStatus (Required) |
experimental | ?!Σ | 0..1 | boolean | If for testing purposes, not real usage |
date | Σ | 0..1 | dateTime | Date this was last changed |
description | 0..1 | markdown | Natural language description of the activity definition | |
purpose | 0..1 | markdown | Why this activity definition is defined | |
usage | 0..1 | string | Describes the clinical usage of the asset | |
approvalDate | 0..1 | date | When activity definition approved by publisher | |
lastReviewDate | 0..1 | date | Last review date for the activity definition | |
effectivePeriod | Σ | 0..1 | Period | The effective date range for the activity definition |
useContext | Σ | 0..* | UsageContext | Content intends to support these contexts |
jurisdiction | Σ | 0..* | CodeableConcept | Intended jurisdiction for activity definition (if applicable) Jurisdiction ValueSet (Extensible) |
topic | 0..* | CodeableConcept | Descriptional topics for the asset | |
contributor | 0..* | Contributor | A content contributor | |
publisher | Σ | 0..1 | string | Name of the publisher (Organization or individual) |
contact | Σ | 0..* | ContactDetail | Contact details for the publisher |
copyright | 0..1 | markdown | Use and/or publishing restrictions | |
relatedArtifact | 0..* | RelatedArtifact | Related artifacts for the asset | |
library | 0..* | Reference(Library) | Logic used by the asset | |
category | 0..1 | code | communication | device | diagnostic | diet | drug | encounter | immunization | observation | procedure | referral | supply | vision | other ActivityDefinitionCategory (Required) | |
code | 0..1 | CodeableConcept | Detail type of activity | |
timing[x] | 0..1 | When activity is to occur | ||
timingCodeableConcept | CodeableConcept | |||
timingTiming | Timing | |||
location | 0..1 | Reference(Location) | Where it should happen | |
participantType | 0..* | code | patient | practitioner | related-person PlanActionParticipantType (Required) | |
product[x] | 0..1 | What's administered/supplied | ||
productReference | Reference(Medication | Substance) | |||
productCodeableConcept | CodeableConcept | |||
quantity | 0..1 | SimpleQuantity | How much is administered/consumed/supplied | |
dosageInstruction | 0..* | DosageInstruction | Detailed dosage instructions | |
bodySite | 0..* | CodeableConcept | What part of body to perform on SNOMED CT Body Structures (Example) | |
transform | 0..1 | Reference(StructureMap) | Transform to apply the template | |
dynamicValue | 0..* | BackboneElement | Dynamic aspects of the definition | |
description | 0..1 | string | Natural language description of the dynamic value | |
path | 0..1 | string | The path to the element to be set dynamically | |
language | 0..1 | string | Language of the expression | |
expression | 0..1 | string | An expression that provides the dynamic value for the customization | |
Documentation for this format |
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 Logical uri to reference this activity definition (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]"/><!-- 0..1 Name for this activity definition (Computer friendly) --> <title value="[string]"/><!-- 0..1 Name for this activity definition (Human friendly) --> <status value="[code]"/><!-- 1..1 draft | active | retired --> <experimental value="[boolean]"/><!-- 0..1 If for testing purposes, not real usage --> <date value="[dateTime]"/><!-- 0..1 Date this was last changed --> <description value="[markdown]"/><!-- 0..1 Natural language description of the activity definition --> <purpose value="[markdown]"/><!-- 0..1 Why this activity definition is defined --> <usage value="[string]"/><!-- 0..1 Describes the clinical usage of the asset --> <approvalDate value="[date]"/><!-- 0..1 When activity definition approved by publisher --> <lastReviewDate value="[date]"/><!-- 0..1 Last review date for the activity definition --> <effectivePeriod><!-- 0..1 Period The effective date range for the activity definition --></effectivePeriod> <useContext><!-- 0..* UsageContext Content intends to support these contexts --></useContext> <jurisdiction><!-- 0..* CodeableConcept Intended jurisdiction for activity definition (if applicable) --></jurisdiction> <topic><!-- 0..* CodeableConcept Descriptional topics for the asset --></topic> <contributor><!-- 0..* Contributor A content contributor --></contributor> <publisher value="[string]"/><!-- 0..1 Name of the publisher (Organization or individual) --> <contact><!-- 0..* ContactDetail Contact details for the publisher --></contact> <copyright value="[markdown]"/><!-- 0..1 Use and/or publishing restrictions --> <relatedArtifact><!-- 0..* RelatedArtifact Related artifacts for the asset --></relatedArtifact> <library><!-- 0..* Reference(Library) Logic used by the asset --></library> <category value="[code]"/><!-- 0..1 communication | device | diagnostic | diet | drug | encounter | immunization | observation | procedure | referral | supply | vision | other --> <code><!-- 0..1 CodeableConcept Detail type of activity --></code> <timing[x]><!-- 0..1 CodeableConcept|Timing When activity is to occur --></timing[x]> <location><!-- 0..1 Reference(Location) Where it should happen --></location> <participantType value="[code]"/><!-- 0..* patient | practitioner | related-person --> <product[x]><!-- 0..1 Reference(Medication|Substance)|CodeableConcept What's administered/supplied --></product[x]> <quantity><!-- 0..1 Quantity(SimpleQuantity) How much is administered/consumed/supplied --></quantity> <dosageInstruction><!-- 0..* DosageInstruction Detailed dosage instructions --></dosageInstruction> <bodySite><!-- 0..* CodeableConcept What part of body to perform on --></bodySite> <transform><!-- 0..1 Reference(StructureMap) Transform to apply the template --></transform> <dynamicValue> <!-- 0..* Dynamic aspects of the definition --> <description value="[string]"/><!-- 0..1 Natural language description of the dynamic value --> <path value="[string]"/><!-- 0..1 The path to the element to be set dynamically --> <language value="[string]"/><!-- 0..1 Language of the expression --> <expression value="[string]"/><!-- 0..1 An expression that provides the dynamic value for the customization --> </dynamicValue> </ActivityDefinition>
JSON Template
{ "resourceType" : "ActivityDefinition", // from Resource: id, meta, implicitRules, and language // from DomainResource: text, contained, extension, and modifierExtension "url" : "<uri>", // Logical uri to reference this activity definition (globally unique) "identifier" : [{ Identifier }], // Additional identifier for the activity definition "version" : "<string>", // Business version of the activity definition "name" : "<string>", // Name for this activity definition (Computer friendly) "title" : "<string>", // Name for this activity definition (Human friendly) "status" : "<code>", // R! draft | active | retired "experimental" : <boolean>, // If for testing purposes, not real usage "date" : "<dateTime>", // Date this was last changed "description" : "<markdown>", // Natural language description of the activity definition "purpose" : "<markdown>", // Why this activity definition is defined "usage" : "<string>", // Describes the clinical usage of the asset "approvalDate" : "<date>", // When activity definition approved by publisher "lastReviewDate" : "<date>", // Last review date for the activity definition "effectivePeriod" : { Period }, // The effective date range for the activity definition "useContext" : [{ UsageContext }], // Content intends to support these contexts "jurisdiction" : [{ CodeableConcept }], // Intended jurisdiction for activity definition (if applicable) "topic" : [{ CodeableConcept }], // Descriptional topics for the asset "contributor" : [{ Contributor }], // A content contributor "publisher" : "<string>", // Name of the publisher (Organization or individual) "contact" : [{ ContactDetail }], // Contact details for the publisher "copyright" : "<markdown>", // Use and/or publishing restrictions "relatedArtifact" : [{ RelatedArtifact }], // Related artifacts for the asset "library" : [{ Reference(Library) }], // Logic used by the asset "category" : "<code>", // communication | device | diagnostic | diet | drug | encounter | immunization | observation | procedure | referral | supply | vision | other "code" : { CodeableConcept }, // Detail type of activity // timing[x]: When activity is to occur. One of these 2: "timingCodeableConcept" : { CodeableConcept }, "timingTiming" : { Timing }, "location" : { Reference(Location) }, // Where it should happen "participantType" : ["<code>"], // patient | practitioner | related-person // product[x]: What's administered/supplied. One of these 2: "productReference" : { Reference(Medication|Substance) }, "productCodeableConcept" : { CodeableConcept }, "quantity" : { Quantity(SimpleQuantity) }, // How much is administered/consumed/supplied "dosageInstruction" : [{ DosageInstruction }], // Detailed dosage instructions "bodySite" : [{ CodeableConcept }], // What part of body to perform on "transform" : { Reference(StructureMap) }, // Transform to apply the template "dynamicValue" : [{ // Dynamic aspects of the definition "description" : "<string>", // Natural language description of the dynamic value "path" : "<string>", // The path to the element to be set dynamically "language" : "<string>", // Language of the expression "expression" : "<string>" // 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 Logical uri to reference this activity definition (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 Name for this activity definition (Computer friendly) fhir:ActivityDefinition.title [ string ]; # 0..1 Name for this activity definition (Human friendly) fhir:ActivityDefinition.status [ code ]; # 1..1 draft | active | retired fhir:ActivityDefinition.experimental [ boolean ]; # 0..1 If for testing purposes, not real usage fhir:ActivityDefinition.date [ dateTime ]; # 0..1 Date this was last changed fhir:ActivityDefinition.description [ markdown ]; # 0..1 Natural language description of the activity definition fhir:ActivityDefinition.purpose [ markdown ]; # 0..1 Why this activity definition is defined fhir:ActivityDefinition.usage [ string ]; # 0..1 Describes the clinical usage of the asset fhir:ActivityDefinition.approvalDate [ date ]; # 0..1 When activity definition approved by publisher fhir:ActivityDefinition.lastReviewDate [ date ]; # 0..1 Last review date for the activity definition fhir:ActivityDefinition.effectivePeriod [ Period ]; # 0..1 The effective date range for the activity definition fhir:ActivityDefinition.useContext [ UsageContext ], ... ; # 0..* Content intends to support these contexts fhir:ActivityDefinition.jurisdiction [ CodeableConcept ], ... ; # 0..* Intended jurisdiction for activity definition (if applicable) fhir:ActivityDefinition.topic [ CodeableConcept ], ... ; # 0..* Descriptional topics for the asset fhir:ActivityDefinition.contributor [ Contributor ], ... ; # 0..* A content contributor fhir:ActivityDefinition.publisher [ string ]; # 0..1 Name of the publisher (Organization or individual) fhir:ActivityDefinition.contact [ ContactDetail ], ... ; # 0..* Contact details for the publisher fhir:ActivityDefinition.copyright [ markdown ]; # 0..1 Use and/or publishing restrictions fhir:ActivityDefinition.relatedArtifact [ RelatedArtifact ], ... ; # 0..* Related artifacts for the asset fhir:ActivityDefinition.library [ Reference(Library) ], ... ; # 0..* Logic used by the asset fhir:ActivityDefinition.category [ code ]; # 0..1 communication | device | diagnostic | diet | drug | encounter | immunization | observation | procedure | referral | supply | vision | other fhir:ActivityDefinition.code [ CodeableConcept ]; # 0..1 Detail type of activity # ActivityDefinition.timing[x] : 0..1 When activity is to occur. One of these 2 fhir:ActivityDefinition.timingCodeableConcept [ CodeableConcept ] fhir:ActivityDefinition.timingTiming [ Timing ] fhir:ActivityDefinition.location [ Reference(Location) ]; # 0..1 Where it should happen fhir:ActivityDefinition.participantType [ code ], ... ; # 0..* patient | practitioner | related-person # ActivityDefinition.product[x] : 0..1 What's administered/supplied. One of these 2 fhir:ActivityDefinition.productReference [ Reference(Medication|Substance) ] fhir:ActivityDefinition.productCodeableConcept [ CodeableConcept ] fhir:ActivityDefinition.quantity [ Quantity(SimpleQuantity) ]; # 0..1 How much is administered/consumed/supplied fhir:ActivityDefinition.dosageInstruction [ DosageInstruction ], ... ; # 0..* Detailed dosage instructions fhir:ActivityDefinition.bodySite [ CodeableConcept ], ... ; # 0..* What part of body to perform on fhir:ActivityDefinition.transform [ Reference(StructureMap) ]; # 0..1 Transform to apply the template fhir:ActivityDefinition.dynamicValue [ # 0..* Dynamic aspects of the definition fhir:ActivityDefinition.dynamicValue.description [ string ]; # 0..1 Natural language description of the dynamic value fhir:ActivityDefinition.dynamicValue.path [ string ]; # 0..1 The path to the element to be set dynamically fhir:ActivityDefinition.dynamicValue.language [ string ]; # 0..1 Language of the expression fhir:ActivityDefinition.dynamicValue.expression [ string ]; # 0..1 An expression that provides the dynamic value for the customization ], ...; ]
Changes since DSTU2
This resource did not exist in Release 2
Alternate definitions: Master Definition (XML, JSON), XML Schema/Schematron (for ) + JSON Schema, ShEx (for Turtle), JSON-LD (for RDF as JSON-LD),
Path | Definition | Type | Reference |
---|---|---|---|
ActivityDefinition.status | The lifecycle status of a Value Set or Concept Map. | Required | PublicationStatus |
ActivityDefinition.jurisdiction | Countries and regions within which this artifact is targeted for use | Extensible | Jurisdiction ValueSet |
ActivityDefinition.category | High-level categorization of the type of activity in a protocol. | Required | ActivityDefinitionCategory |
ActivityDefinition.code | Detailed type of planned activity; e.g. CBC | Unknown | No details provided yet |
ActivityDefinition.timing[x] | Code describing the timing of an activity; e.g. BID, QD | Unknown | No details provided yet |
ActivityDefinition.participantType | The type of participant for an action in the orderset | Required | PlanActionParticipantType |
ActivityDefinition.product[x] | Code describing the type of substance or medication | Unknown | No details provided yet |
ActivityDefinition.bodySite | A code that identifies the anatomical location. | Example | SNOMED CT Body Structures |
The following table defines the mapping from ActivityDefinition categories to the appropriate intent resource:
Category code | Resource |
---|---|
communication | CommunicationRequest |
device | DeviceUseRequest |
diagnostic | DiagnosticRequest |
diet | NutritionRequest |
drug | MedicationRequest |
encounter | Appointment |
immunization | ImmunizationRecommendation |
observation | Observation |
procedure | ProcedureRequest |
referral | ReferralRequest |
supply | SupplyRequest |
vision | VisionPrescription |
other | N/A |
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 directly. This process of converting the ActivityDefinition into a specific intent 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 the intent resource of the appropriate type, based on the category of the definition as described in the category mapping table above.
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 intent 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 supported for the medication category, but no support at all for the encounter category.
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 | Paths | In Common |
date | date | The activity definition publication date | ActivityDefinition.date | |
description | string | Text search against the description of the activity definition | ActivityDefinition.description | |
effective | date | Effective time associated with the activity definition | ActivityDefinition.effectivePeriod | |
identifier | token | External identifiers for the activity definition | ActivityDefinition.identifier | |
jurisdiction | token | Intended jurisdiction for activity definition | ActivityDefinition.jurisdiction | |
name | string | Name of the activity definition | ActivityDefinition.name | |
publisher | string | Name of the publisher of the activity definition | ActivityDefinition.publisher | |
status | token | The current status of the activity definition | ActivityDefinition.status | |
title | string | Text search against the title of the activity definition | ActivityDefinition.title | |
topic | token | Topics associated with the module | ActivityDefinition.topic | |
url | uri | The uri that identifies the activity definition | ActivityDefinition.url | |
version | token | The version identifier of the activity definition | ActivityDefinition.version |