FHIR Clinical Guidelines (v1.0.0) (STU1)

This page is part of the Clinical Guidelines (v1.0.0: STU 1) based on FHIR R4. This is the current published version in it's permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

D.4.1 StructureDefinition-cpg-documentmedicationtask

Introduction:

This is an activity request profile

Examples:

D.4.1.1 Formal Views of Profile Content

The official URL for this profile is:

http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-documentmedicationtask

Recommendation to document the use of a specific medication as part of the delivery of a computable clinical practice guideline

This profile builds on CPGTask.

This profile was published on Thu Jun 06 00:00:00 UTC 2019 as a draft by Health Level Seven, Inc. - CDS WG.

Description of Profiles, Differentials, and Snapshots.

Summary

Mandatory: 1 element
Must-Support: 9 elements

Structures

This structure refers to these other structures:

Slices

This structure defines the following Slices:

  • The element Task.input is sliced based on the value of value:type
  • The element Task.output is sliced based on the value of value:type
NameFlagsCard.TypeDescription & Constraintsdoco
.. Task 0..*CPGTaskA task to be performed
... code S0..1CodeableConceptTask Type
Required Pattern: At least the following
.... coding1..*CodingCode defined by a terminology system
Fixed Value: (complex)
..... system1..1uriIdentity of the terminology system
Fixed Value: http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type
..... code1..1codeSymbol in syntax defined by the system
Fixed Value: document-medication
... input S0..*(Slice Definition)Information used to perform task
Slice: Unordered, Open by value:type
.... input:medicationRequest S1..1BackboneElementMedication to dispense
..... type S1..1CodeableConceptLabel for the input
Required Pattern: At least the following
...... coding1..*CodingCode defined by a terminology system
Fixed Value: (complex)
....... system1..1uriIdentity of the terminology system
Fixed Value: http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: order-medication
..... value[x] S1..1Reference(CPGMedicationRequest)Content to use in performing the task
... output S0..*(Slice Definition)Information produced as part of task
Slice: Unordered, Open by value:type
.... output:medicationStatement S0..1BackboneElementMedication that was documented
..... type S1..1CodeableConceptLabel for output
Required Pattern: At least the following
...... coding1..*CodingCode defined by a terminology system
Fixed Value: (complex)
....... system1..1uriIdentity of the terminology system
Fixed Value: http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: document-medication
..... value[x] S1..1Reference(CPGMedicationStatement)Result of output

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. Task I0..*CPGTaskA task to be performed
... id Σ0..1stringLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: CommonLanguages (preferred)
Max Binding: AllLanguages: A human language.

... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
... cpg-rationale S0..1markdownExplanation
URL: http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-rationale
... cpg-pertinent S0..*Reference()Pertinent information
URL: http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-pertinent
... request-doNotPerform ?!S0..1booleantrue if request is prohibiting action
URL: http://hl7.org/fhir/StructureDefinition/request-doNotPerform
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier S0..*IdentifierTask Instance Identifier
... instantiatesCanonical SΣ0..1canonical(ActivityDefinition)Source
... instantiatesUri Σ0..1uriFormal definition of task
... basedOn SΣ0..*Reference(Resource)Request fulfilled by this task
... groupIdentifier Σ0..1IdentifierRequisition or grouper id
... partOf Σ0..*Reference(Task)Composite task
... status ?!SΣ1..1codedraft | requested | received | accepted | +
Binding: TaskStatus (required): The current status of the task.

... statusReason SΣ0..1CodeableConceptReason for current status
Binding: (unbound) (example): Codes to identify the reason for current status. These will typically be specific to a particular workflow.

... businessStatus Σ0..1CodeableConceptE.g. "Specimen collected", "IV prepped"
Binding: (unbound) (example): The domain-specific business-contextual sub-state of the task. For example: "Blood drawn", "IV inserted", "Awaiting physician signature", etc.

... intent SΣ1..1codeunknown | proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option
Binding: TaskIntent (required): Distinguishes whether the task is a proposal, plan or full order.

... priority S0..1coderoutine | urgent | asap | stat
Binding: RequestPriority (required): The task's priority.

... code SΣ0..1CodeableConceptTask Type
Binding: CPG Activity Type (extensible): Activity types for use in computable guidelines


Required Pattern: At least the following
.... id0..1stringUnique id for inter-element referencing
.... extension0..*ExtensionAdditional content defined by implementations
.... coding1..*CodingCode defined by a terminology system
Fixed Value: (complex)
..... id0..1stringUnique id for inter-element referencing
..... extension0..*ExtensionAdditional content defined by implementations
..... system1..1uriIdentity of the terminology system
Fixed Value: http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type
..... version0..1stringVersion of the system - if relevant
..... code1..1codeSymbol in syntax defined by the system
Fixed Value: document-medication
..... display0..1stringRepresentation defined by the system
..... userSelected0..1booleanIf this coding was chosen directly by the user
.... text0..1stringPlain text representation of the concept
... description SΣ0..1stringHuman-readable explanation of task
... focus Σ0..1Reference(Resource)What task is acting on
... for SΣ0..1Reference(CPGPatient)Beneficiary of the Task
... encounter SΣ0..1Reference(CPGEncounter)Healthcare event during which this task originated
... executionPeriod SΣ0..1PeriodStart and end time of execution
... authoredOn SI0..1dateTimeTask Creation Date
... lastModified ΣI0..1dateTimeTask Last Modified Date
... requester Σ0..1Reference(Device | Organization | Patient | Practitioner | PractitionerRole | RelatedPerson)Who is asking for task to be done
... performerType 0..*CodeableConceptRequested performer
Binding: ProcedurePerformerRoleCodes (preferred): The type(s) of task performers allowed.


... owner Σ0..1Reference(Practitioner | PractitionerRole | Organization | CareTeam | HealthcareService | Patient | Device | RelatedPerson)Responsible individual
... location Σ0..1Reference(Location)Where task occurs
... reasonCode 0..1CodeableConceptWhy task is needed
Binding: (unbound) (example): Indicates why the task is needed. E.g. Suspended because patient admitted to hospital.

... reasonReference 0..1Reference(Resource)Why task is needed
... insurance 0..*Reference(Coverage | ClaimResponse)Associated insurance coverage
... note 0..*AnnotationComments made about the task
... relevantHistory 0..*Reference(Provenance)Key events in history of the Task
... restriction 0..1BackboneElementConstraints on fulfillment tasks
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... repetitions 0..1positiveIntHow many times to repeat
.... period 0..1PeriodWhen fulfillment sought
.... recipient 0..*Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Group | Organization)For whom is fulfillment sought?
... input S0..*(Slice Definition)Information used to perform task
Slice: Unordered, Open by value:type
.... input:All Slices Content/Rules for all slices
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... type 1..1CodeableConceptLabel for the input
Binding: (unbound) (example): Codes to identify types of input parameters. These will typically be specific to a particular workflow. E.g. "Comparison source", "Applicable consent", "Concomitent Medications", etc.

..... value[x] 1..1Content to use in performing the task
...... valueBase64Binarybase64Binary
...... valueBooleanboolean
...... valueCanonicalcanonical(Any)
...... valueCodecode
...... valueDatedate
...... valueDateTimedateTime
...... valueDecimaldecimal
...... valueIdid
...... valueInstantinstant
...... valueIntegerinteger
...... valueMarkdownmarkdown
...... valueOidoid
...... valuePositiveIntpositiveInt
...... valueStringstring
...... valueTimetime
...... valueUnsignedIntunsignedInt
...... valueUriuri
...... valueUrlurl
...... valueUuiduuid
...... valueAddressAddress
...... valueAgeAge
...... valueAnnotationAnnotation
...... valueAttachmentAttachment
...... valueCodeableConceptCodeableConcept
...... valueCodingCoding
...... valueContactPointContactPoint
...... valueCountCount
...... valueDistanceDistance
...... valueDurationDuration
...... valueHumanNameHumanName
...... valueIdentifierIdentifier
...... valueMoneyMoney
...... valuePeriodPeriod
...... valueQuantityQuantity
...... valueRangeRange
...... valueRatioRatio
...... valueReferenceReference(Any)
...... valueSampledDataSampledData
...... valueSignatureSignature
...... valueTimingTiming
...... valueContactDetailContactDetail
...... valueContributorContributor
...... valueDataRequirementDataRequirement
...... valueExpressionExpression
...... valueParameterDefinitionParameterDefinition
...... valueRelatedArtifactRelatedArtifact
...... valueTriggerDefinitionTriggerDefinition
...... valueUsageContextUsageContext
...... valueDosageDosage
...... valueMetaMeta
.... input:medicationRequest S1..1BackboneElementMedication to dispense
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... type S1..1CodeableConceptLabel for the input
Binding: (unbound) (example): Codes to identify types of input parameters. These will typically be specific to a particular workflow. E.g. "Comparison source", "Applicable consent", "Concomitent Medications", etc.


Required Pattern: At least the following
...... id0..1stringUnique id for inter-element referencing
...... extension0..*ExtensionAdditional content defined by implementations
...... coding1..*CodingCode defined by a terminology system
Fixed Value: (complex)
....... id0..1stringUnique id for inter-element referencing
....... extension0..*ExtensionAdditional content defined by implementations
....... system1..1uriIdentity of the terminology system
Fixed Value: http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type
....... version0..1stringVersion of the system - if relevant
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: order-medication
....... display0..1stringRepresentation defined by the system
....... userSelected0..1booleanIf this coding was chosen directly by the user
...... text0..1stringPlain text representation of the concept
..... value[x] S1..1Reference(CPGMedicationRequest)Content to use in performing the task
... output S0..*(Slice Definition)Information produced as part of task
Slice: Unordered, Open by value:type
.... output:All Slices Content/Rules for all slices
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... type 1..1CodeableConceptLabel for output
Binding: (unbound) (example): Codes to identify types of input parameters. These will typically be specific to a particular workflow. E.g. "Identified issues", "Preliminary results", "Filler order", "Final results", etc.

..... value[x] 1..1Result of output
...... valueBase64Binarybase64Binary
...... valueBooleanboolean
...... valueCanonicalcanonical(Any)
...... valueCodecode
...... valueDatedate
...... valueDateTimedateTime
...... valueDecimaldecimal
...... valueIdid
...... valueInstantinstant
...... valueIntegerinteger
...... valueMarkdownmarkdown
...... valueOidoid
...... valuePositiveIntpositiveInt
...... valueStringstring
...... valueTimetime
...... valueUnsignedIntunsignedInt
...... valueUriuri
...... valueUrlurl
...... valueUuiduuid
...... valueAddressAddress
...... valueAgeAge
...... valueAnnotationAnnotation
...... valueAttachmentAttachment
...... valueCodeableConceptCodeableConcept
...... valueCodingCoding
...... valueContactPointContactPoint
...... valueCountCount
...... valueDistanceDistance
...... valueDurationDuration
...... valueHumanNameHumanName
...... valueIdentifierIdentifier
...... valueMoneyMoney
...... valuePeriodPeriod
...... valueQuantityQuantity
...... valueRangeRange
...... valueRatioRatio
...... valueReferenceReference(Any)
...... valueSampledDataSampledData
...... valueSignatureSignature
...... valueTimingTiming
...... valueContactDetailContactDetail
...... valueContributorContributor
...... valueDataRequirementDataRequirement
...... valueExpressionExpression
...... valueParameterDefinitionParameterDefinition
...... valueRelatedArtifactRelatedArtifact
...... valueTriggerDefinitionTriggerDefinition
...... valueUsageContextUsageContext
...... valueDosageDosage
...... valueMetaMeta
.... output:medicationStatement S0..1BackboneElementMedication that was documented
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... type S1..1CodeableConceptLabel for output
Binding: (unbound) (example): Codes to identify types of input parameters. These will typically be specific to a particular workflow. E.g. "Identified issues", "Preliminary results", "Filler order", "Final results", etc.


Required Pattern: At least the following
...... id0..1stringUnique id for inter-element referencing
...... extension0..*ExtensionAdditional content defined by implementations
...... coding1..*CodingCode defined by a terminology system
Fixed Value: (complex)
....... id0..1stringUnique id for inter-element referencing
....... extension0..*ExtensionAdditional content defined by implementations
....... system1..1uriIdentity of the terminology system
Fixed Value: http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type
....... version0..1stringVersion of the system - if relevant
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: document-medication
....... display0..1stringRepresentation defined by the system
....... userSelected0..1booleanIf this coding was chosen directly by the user
...... text0..1stringPlain text representation of the concept
..... value[x] S1..1Reference(CPGMedicationStatement)Result of output

doco Documentation for this format

Summary

Mandatory: 1 element
Must-Support: 9 elements

Structures

This structure refers to these other structures:

Slices

This structure defines the following Slices:

  • The element Task.input is sliced based on the value of value:type
  • The element Task.output is sliced based on the value of value:type

Differential View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Task 0..*CPGTaskA task to be performed
... code S0..1CodeableConceptTask Type
Required Pattern: At least the following
.... coding1..*CodingCode defined by a terminology system
Fixed Value: (complex)
..... system1..1uriIdentity of the terminology system
Fixed Value: http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type
..... code1..1codeSymbol in syntax defined by the system
Fixed Value: document-medication
... input S0..*(Slice Definition)Information used to perform task
Slice: Unordered, Open by value:type
.... input:medicationRequest S1..1BackboneElementMedication to dispense
..... type S1..1CodeableConceptLabel for the input
Required Pattern: At least the following
...... coding1..*CodingCode defined by a terminology system
Fixed Value: (complex)
....... system1..1uriIdentity of the terminology system
Fixed Value: http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: order-medication
..... value[x] S1..1Reference(CPGMedicationRequest)Content to use in performing the task
... output S0..*(Slice Definition)Information produced as part of task
Slice: Unordered, Open by value:type
.... output:medicationStatement S0..1BackboneElementMedication that was documented
..... type S1..1CodeableConceptLabel for output
Required Pattern: At least the following
...... coding1..*CodingCode defined by a terminology system
Fixed Value: (complex)
....... system1..1uriIdentity of the terminology system
Fixed Value: http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: document-medication
..... value[x] S1..1Reference(CPGMedicationStatement)Result of output

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Task I0..*CPGTaskA task to be performed
... id Σ0..1stringLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: CommonLanguages (preferred)
Max Binding: AllLanguages: A human language.

... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
... cpg-rationale S0..1markdownExplanation
URL: http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-rationale
... cpg-pertinent S0..*Reference()Pertinent information
URL: http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-pertinent
... request-doNotPerform ?!S0..1booleantrue if request is prohibiting action
URL: http://hl7.org/fhir/StructureDefinition/request-doNotPerform
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier S0..*IdentifierTask Instance Identifier
... instantiatesCanonical SΣ0..1canonical(ActivityDefinition)Source
... instantiatesUri Σ0..1uriFormal definition of task
... basedOn SΣ0..*Reference(Resource)Request fulfilled by this task
... groupIdentifier Σ0..1IdentifierRequisition or grouper id
... partOf Σ0..*Reference(Task)Composite task
... status ?!SΣ1..1codedraft | requested | received | accepted | +
Binding: TaskStatus (required): The current status of the task.

... statusReason SΣ0..1CodeableConceptReason for current status
Binding: (unbound) (example): Codes to identify the reason for current status. These will typically be specific to a particular workflow.

... businessStatus Σ0..1CodeableConceptE.g. "Specimen collected", "IV prepped"
Binding: (unbound) (example): The domain-specific business-contextual sub-state of the task. For example: "Blood drawn", "IV inserted", "Awaiting physician signature", etc.

... intent SΣ1..1codeunknown | proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option
Binding: TaskIntent (required): Distinguishes whether the task is a proposal, plan or full order.

... priority S0..1coderoutine | urgent | asap | stat
Binding: RequestPriority (required): The task's priority.

... code SΣ0..1CodeableConceptTask Type
Binding: CPG Activity Type (extensible): Activity types for use in computable guidelines


Required Pattern: At least the following
.... id0..1stringUnique id for inter-element referencing
.... extension0..*ExtensionAdditional content defined by implementations
.... coding1..*CodingCode defined by a terminology system
Fixed Value: (complex)
..... id0..1stringUnique id for inter-element referencing
..... extension0..*ExtensionAdditional content defined by implementations
..... system1..1uriIdentity of the terminology system
Fixed Value: http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type
..... version0..1stringVersion of the system - if relevant
..... code1..1codeSymbol in syntax defined by the system
Fixed Value: document-medication
..... display0..1stringRepresentation defined by the system
..... userSelected0..1booleanIf this coding was chosen directly by the user
.... text0..1stringPlain text representation of the concept
... description SΣ0..1stringHuman-readable explanation of task
... focus Σ0..1Reference(Resource)What task is acting on
... for SΣ0..1Reference(CPGPatient)Beneficiary of the Task
... encounter SΣ0..1Reference(CPGEncounter)Healthcare event during which this task originated
... executionPeriod SΣ0..1PeriodStart and end time of execution
... authoredOn SI0..1dateTimeTask Creation Date
... lastModified ΣI0..1dateTimeTask Last Modified Date
... requester Σ0..1Reference(Device | Organization | Patient | Practitioner | PractitionerRole | RelatedPerson)Who is asking for task to be done
... performerType 0..*CodeableConceptRequested performer
Binding: ProcedurePerformerRoleCodes (preferred): The type(s) of task performers allowed.


... owner Σ0..1Reference(Practitioner | PractitionerRole | Organization | CareTeam | HealthcareService | Patient | Device | RelatedPerson)Responsible individual
... location Σ0..1Reference(Location)Where task occurs
... reasonCode 0..1CodeableConceptWhy task is needed
Binding: (unbound) (example): Indicates why the task is needed. E.g. Suspended because patient admitted to hospital.

... reasonReference 0..1Reference(Resource)Why task is needed
... insurance 0..*Reference(Coverage | ClaimResponse)Associated insurance coverage
... note 0..*AnnotationComments made about the task
... relevantHistory 0..*Reference(Provenance)Key events in history of the Task
... restriction 0..1BackboneElementConstraints on fulfillment tasks
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... repetitions 0..1positiveIntHow many times to repeat
.... period 0..1PeriodWhen fulfillment sought
.... recipient 0..*Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Group | Organization)For whom is fulfillment sought?
... input S0..*(Slice Definition)Information used to perform task
Slice: Unordered, Open by value:type
.... input:All Slices Content/Rules for all slices
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... type 1..1CodeableConceptLabel for the input
Binding: (unbound) (example): Codes to identify types of input parameters. These will typically be specific to a particular workflow. E.g. "Comparison source", "Applicable consent", "Concomitent Medications", etc.

..... value[x] 1..1Content to use in performing the task
...... valueBase64Binarybase64Binary
...... valueBooleanboolean
...... valueCanonicalcanonical(Any)
...... valueCodecode
...... valueDatedate
...... valueDateTimedateTime
...... valueDecimaldecimal
...... valueIdid
...... valueInstantinstant
...... valueIntegerinteger
...... valueMarkdownmarkdown
...... valueOidoid
...... valuePositiveIntpositiveInt
...... valueStringstring
...... valueTimetime
...... valueUnsignedIntunsignedInt
...... valueUriuri
...... valueUrlurl
...... valueUuiduuid
...... valueAddressAddress
...... valueAgeAge
...... valueAnnotationAnnotation
...... valueAttachmentAttachment
...... valueCodeableConceptCodeableConcept
...... valueCodingCoding
...... valueContactPointContactPoint
...... valueCountCount
...... valueDistanceDistance
...... valueDurationDuration
...... valueHumanNameHumanName
...... valueIdentifierIdentifier
...... valueMoneyMoney
...... valuePeriodPeriod
...... valueQuantityQuantity
...... valueRangeRange
...... valueRatioRatio
...... valueReferenceReference(Any)
...... valueSampledDataSampledData
...... valueSignatureSignature
...... valueTimingTiming
...... valueContactDetailContactDetail
...... valueContributorContributor
...... valueDataRequirementDataRequirement
...... valueExpressionExpression
...... valueParameterDefinitionParameterDefinition
...... valueRelatedArtifactRelatedArtifact
...... valueTriggerDefinitionTriggerDefinition
...... valueUsageContextUsageContext
...... valueDosageDosage
...... valueMetaMeta
.... input:medicationRequest S1..1BackboneElementMedication to dispense
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... type S1..1CodeableConceptLabel for the input
Binding: (unbound) (example): Codes to identify types of input parameters. These will typically be specific to a particular workflow. E.g. "Comparison source", "Applicable consent", "Concomitent Medications", etc.


Required Pattern: At least the following
...... id0..1stringUnique id for inter-element referencing
...... extension0..*ExtensionAdditional content defined by implementations
...... coding1..*CodingCode defined by a terminology system
Fixed Value: (complex)
....... id0..1stringUnique id for inter-element referencing
....... extension0..*ExtensionAdditional content defined by implementations
....... system1..1uriIdentity of the terminology system
Fixed Value: http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type
....... version0..1stringVersion of the system - if relevant
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: order-medication
....... display0..1stringRepresentation defined by the system
....... userSelected0..1booleanIf this coding was chosen directly by the user
...... text0..1stringPlain text representation of the concept
..... value[x] S1..1Reference(CPGMedicationRequest)Content to use in performing the task
... output S0..*(Slice Definition)Information produced as part of task
Slice: Unordered, Open by value:type
.... output:All Slices Content/Rules for all slices
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... type 1..1CodeableConceptLabel for output
Binding: (unbound) (example): Codes to identify types of input parameters. These will typically be specific to a particular workflow. E.g. "Identified issues", "Preliminary results", "Filler order", "Final results", etc.

..... value[x] 1..1Result of output
...... valueBase64Binarybase64Binary
...... valueBooleanboolean
...... valueCanonicalcanonical(Any)
...... valueCodecode
...... valueDatedate
...... valueDateTimedateTime
...... valueDecimaldecimal
...... valueIdid
...... valueInstantinstant
...... valueIntegerinteger
...... valueMarkdownmarkdown
...... valueOidoid
...... valuePositiveIntpositiveInt
...... valueStringstring
...... valueTimetime
...... valueUnsignedIntunsignedInt
...... valueUriuri
...... valueUrlurl
...... valueUuiduuid
...... valueAddressAddress
...... valueAgeAge
...... valueAnnotationAnnotation
...... valueAttachmentAttachment
...... valueCodeableConceptCodeableConcept
...... valueCodingCoding
...... valueContactPointContactPoint
...... valueCountCount
...... valueDistanceDistance
...... valueDurationDuration
...... valueHumanNameHumanName
...... valueIdentifierIdentifier
...... valueMoneyMoney
...... valuePeriodPeriod
...... valueQuantityQuantity
...... valueRangeRange
...... valueRatioRatio
...... valueReferenceReference(Any)
...... valueSampledDataSampledData
...... valueSignatureSignature
...... valueTimingTiming
...... valueContactDetailContactDetail
...... valueContributorContributor
...... valueDataRequirementDataRequirement
...... valueExpressionExpression
...... valueParameterDefinitionParameterDefinition
...... valueRelatedArtifactRelatedArtifact
...... valueTriggerDefinitionTriggerDefinition
...... valueUsageContextUsageContext
...... valueDosageDosage
...... valueMetaMeta
.... output:medicationStatement S0..1BackboneElementMedication that was documented
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... type S1..1CodeableConceptLabel for output
Binding: (unbound) (example): Codes to identify types of input parameters. These will typically be specific to a particular workflow. E.g. "Identified issues", "Preliminary results", "Filler order", "Final results", etc.


Required Pattern: At least the following
...... id0..1stringUnique id for inter-element referencing
...... extension0..*ExtensionAdditional content defined by implementations
...... coding1..*CodingCode defined by a terminology system
Fixed Value: (complex)
....... id0..1stringUnique id for inter-element referencing
....... extension0..*ExtensionAdditional content defined by implementations
....... system1..1uriIdentity of the terminology system
Fixed Value: http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type
....... version0..1stringVersion of the system - if relevant
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: document-medication
....... display0..1stringRepresentation defined by the system
....... userSelected0..1booleanIf this coding was chosen directly by the user
...... text0..1stringPlain text representation of the concept
..... value[x] S1..1Reference(CPGMedicationStatement)Result of output

doco Documentation for this format

 

D.4.1.2 Terminology Bindings

Terminology Bindings

PathConformanceValueSet / Code
Task.languagepreferredCommonLanguages
Max Binding: AllLanguages
Task.statusrequiredTaskStatus
Task.statusReasonexample
Task.businessStatusexample
Task.intentrequiredTaskIntent
Task.priorityrequiredRequestPriority
Task.codeextensiblePattern: document-medication
Task.performerTypepreferredProcedurePerformerRoleCodes
Task.reasonCodeexample
Task.input.typeexample
Task.input:medicationRequest.typeexamplePattern: order-medication
Task.output.typeexample
Task.output:medicationStatement.typeexamplePattern: document-medication

D.4.1.3 Constraints

Constraints

IdPathDetailsRequirements
dom-2TaskIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3TaskIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4TaskIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5TaskIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6TaskA resource should have narrative for robust management
: text.`div`.exists()
inv-1TaskLast modified date must be greater than or equal to authored-on date.
: lastModified.exists().not() or authoredOn.exists().not() or lastModified >= authoredOn
ele-1Task.metaAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.implicitRulesAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.languageAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.textAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Task.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Task.extension:rationaleAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Task.extension:rationaleMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Task.extension:pertinentAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Task.extension:pertinentMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Task.extension:doNotPerformAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Task.extension:doNotPerformMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Task.modifierExtensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Task.modifierExtensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Task.identifierAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.instantiatesCanonicalAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.instantiatesUriAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.basedOnAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.groupIdentifierAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.partOfAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.statusAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.statusReasonAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.businessStatusAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.intentAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.priorityAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.codeAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.descriptionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.focusAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.forAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.encounterAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.executionPeriodAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.authoredOnAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.lastModifiedAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.requesterAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.performerTypeAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.ownerAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.locationAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.reasonCodeAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.reasonReferenceAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.insuranceAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.noteAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.relevantHistoryAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.restrictionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.restriction.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Task.restriction.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Task.restriction.modifierExtensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Task.restriction.modifierExtensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Task.restriction.repetitionsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.restriction.periodAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.restriction.recipientAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.inputAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.input.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Task.input.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Task.input.modifierExtensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Task.input.modifierExtensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Task.input.typeAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.input.value[x]All FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.input:medicationRequestAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.input:medicationRequest.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Task.input:medicationRequest.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Task.input:medicationRequest.modifierExtensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Task.input:medicationRequest.modifierExtensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Task.input:medicationRequest.typeAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.input:medicationRequest.value[x]All FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.outputAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.output.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Task.output.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Task.output.modifierExtensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Task.output.modifierExtensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Task.output.typeAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.output.value[x]All FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.output:medicationStatementAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.output:medicationStatement.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Task.output:medicationStatement.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Task.output:medicationStatement.modifierExtensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Task.output:medicationStatement.modifierExtensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Task.output:medicationStatement.typeAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Task.output:medicationStatement.value[x]All FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())