Open Health Hub FHIR Implementation Guide
0.1.0 - v0.1.0
Open Health Hub FHIR Implementation Guide - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
| Official URL: https://api.openhealthhub.com/OpenHealthhub/fhir/4/StructureDefinition/ohh-questionnaire-task | Version: 0.1.0 | |||
| Active as of 2026-10-27 | Computable Name: OhhQuestionnaireTask | |||
A participant task of a CarePlan to complete a Questionnaire.
A questionnaire task is a task of the patient or a caregiver to complete a questionnaire, form or information module of a
CarePlan. It follows the SDC sdc-task
profile, so the meta.profile of the Task contains both this profile and sdc-task.
Every questionnaire task is also an activity of its CarePlan. The id of the Task is the same as the activity.detail.id in the CarePlan
and the identifier of the QuestionnaireResponse that completes it, so a client can link the three.
Tasks only exist once the patient has joined the program; before that the CarePlan has no activities and there are no Tasks.
Usages:
You can also check for usages in the FHIR IG Statistics
Description of Profiles, Differentials, Snapshots and how the different presentations work.
This structure is derived from SDCTaskQuestionnaire
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() |
|---|---|---|---|---|
![]() |
0..* | SDCTaskQuestionnaire | A task to be performed | |
![]() ![]() |
||||
![]() ![]() ![]() |
0..1 | instant | When the task was completed, otherwise its start if that has passed, otherwise when it was created | |
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |
![]() ![]() ![]() |
0..1 | string | Task UUID URL: https://api.openhealthhub.com/OpenHealthhub/fhir/4/StructureDefinition/task-uuid | |
![]() ![]() |
1..1 | Reference(CarePlan) | The CarePlan the task is part of | |
![]() ![]() |
1..1 | code | draft | requested | received | accepted | + Binding: OHH Task Status Value Set (required) | |
![]() ![]() |
1..1 | code | unknown | proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option Fixed Value: order (no extensions allowed) | |
![]() ![]() |
1..1 | CodeableConcept | Task Type Required Pattern: | |
![]() ![]() |
0..1 | string | The name of the task | |
![]() ![]() |
0..0 | What task is acting on | ||
![]() ![]() |
1..1 | Reference(Patient) | The patient, as a contained Patient with only the patient's identifiers | |
![]() ![]() |
0..1 | Period | Start and end time of execution | |
![]() ![]() ![]() |
0..1 | dateTime | When the task starts | |
![]() ![]() ![]() |
0..1 | dateTime | When the task was finished, only once it is finished | |
![]() ![]() |
1..1 | dateTime | When the task was created | |
![]() ![]() |
1..1 | Reference(Practitioner | Organization) | The care provider that created the CarePlan, otherwise its organisation | |
![]() ![]() |
1..1 | Reference(Patient | Practitioner) | The patient or the caregiver that should complete the task | |
![]() ![]() |
0..1 | BackboneElement | Constraints on fulfillment tasks | |
![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() |
0..1 | dateTime | The due date of the task, also after the task is finished | |
![]() ![]() |
1..* | BackboneElement | Information used to perform task | |
![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() |
1..1 | BackboneElement | The Questionnaire to complete, as a versioned canonical | |
![]() ![]() ![]() ![]() |
1..1 | canonical(Ohh Questionnaire Profile) | url | |
![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() |
0..1 | BackboneElement | The QuestionnaireResponse addressed to your client, once the task is completed | |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| Task.status | Base | required | OHH Task Status Value Set | 📦0.1.0 | This IG |
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | SDCTaskQuestionnaire | A task to be performed Constraints: inv-1, sdc-t1 |
![]() ![]() |
0..1 | uri | A set of rules under which this content was created | |
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |
![]() ![]() ![]() |
0..1 | string | Task UUID URL: https://api.openhealthhub.com/OpenHealthhub/fhir/4/StructureDefinition/task-uuid | |
![]() ![]() |
0..* | Extension | Extensions that cannot be ignored | |
![]() ![]() |
1..1 | Reference(CarePlan) | The CarePlan the task is part of | |
![]() ![]() |
1..1 | code | draft | requested | received | accepted | + Binding: OHH Task Status Value Set (required) | |
![]() ![]() |
1..1 | code | unknown | 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. Fixed Value: order (no extensions allowed) | |
![]() ![]() |
1..1 | CodeableConcept | Task Type Binding: SDC Task Code (required) Required Pattern: | |
![]() ![]() |
0..1 | string | The name of the task | |
![]() ![]() |
1..1 | Reference(Patient) | The patient, as a contained Patient with only the patient's identifiers | |
![]() ![]() |
0..1 | Period | Start and end time of execution | |
![]() ![]() ![]() |
C | 0..1 | dateTime | When the task starts |
![]() ![]() ![]() |
C | 0..1 | dateTime | When the task was finished, only once it is finished |
![]() ![]() |
C | 1..1 | dateTime | When the task was created |
![]() ![]() |
1..1 | Reference(Practitioner | Organization) | The care provider that created the CarePlan, otherwise its organisation | |
![]() ![]() |
1..1 | Reference(Patient | Practitioner) | The patient or the caregiver that should complete the task | |
![]() ![]() |
0..1 | CodeableConcept | Why task is needed Binding Description: (example): Indicates why the task is needed. E.g. Suspended because patient admitted to hospital. | |
![]() ![]() |
0..1 | BackboneElement | Constraints on fulfillment tasks | |
![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() |
0..1 | Period | When fulfillment sought | |
![]() ![]() ![]() ![]() |
C | 0..1 | dateTime | The due date of the task, also after the task is finished |
![]() ![]() |
1..* | BackboneElement | Information used to perform task Slice: Unordered, Open by pattern:type Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |
![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Label for the input Binding Description: (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. | |
![]() ![]() ![]() ![]() |
1..1 | Content to use in performing the task | ||
![]() ![]() ![]() ![]() ![]() |
base64Binary | |||
![]() ![]() ![]() ![]() ![]() |
boolean | |||
![]() ![]() ![]() ![]() ![]() |
canonical(Any) | |||
![]() ![]() ![]() ![]() ![]() |
code | |||
![]() ![]() ![]() ![]() ![]() |
date | |||
![]() ![]() ![]() ![]() ![]() |
dateTime | |||
![]() ![]() ![]() ![]() ![]() |
decimal | |||
![]() ![]() ![]() ![]() ![]() |
id | |||
![]() ![]() ![]() ![]() ![]() |
instant | |||
![]() ![]() ![]() ![]() ![]() |
integer | |||
![]() ![]() ![]() ![]() ![]() |
markdown | |||
![]() ![]() ![]() ![]() ![]() |
oid | |||
![]() ![]() ![]() ![]() ![]() |
positiveInt | |||
![]() ![]() ![]() ![]() ![]() |
string | |||
![]() ![]() ![]() ![]() ![]() |
time | |||
![]() ![]() ![]() ![]() ![]() |
unsignedInt | |||
![]() ![]() ![]() ![]() ![]() |
uri | |||
![]() ![]() ![]() ![]() ![]() |
url | |||
![]() ![]() ![]() ![]() ![]() |
uuid | |||
![]() ![]() ![]() ![]() ![]() |
Address | |||
![]() ![]() ![]() ![]() ![]() |
Age | |||
![]() ![]() ![]() ![]() ![]() |
Annotation | |||
![]() ![]() ![]() ![]() ![]() |
Attachment | |||
![]() ![]() ![]() ![]() ![]() |
CodeableConcept | |||
![]() ![]() ![]() ![]() ![]() |
Coding | |||
![]() ![]() ![]() ![]() ![]() |
ContactPoint | |||
![]() ![]() ![]() ![]() ![]() |
Count | |||
![]() ![]() ![]() ![]() ![]() |
Distance | |||
![]() ![]() ![]() ![]() ![]() |
Duration | |||
![]() ![]() ![]() ![]() ![]() |
HumanName | |||
![]() ![]() ![]() ![]() ![]() |
Identifier | |||
![]() ![]() ![]() ![]() ![]() |
Money | |||
![]() ![]() ![]() ![]() ![]() |
Period | |||
![]() ![]() ![]() ![]() ![]() |
Quantity | |||
![]() ![]() ![]() ![]() ![]() |
Range | |||
![]() ![]() ![]() ![]() ![]() |
Ratio | |||
![]() ![]() ![]() ![]() ![]() |
Reference(Any) | |||
![]() ![]() ![]() ![]() ![]() |
SampledData | |||
![]() ![]() ![]() ![]() ![]() |
Signature | |||
![]() ![]() ![]() ![]() ![]() |
Timing | |||
![]() ![]() ![]() ![]() ![]() |
ContactDetail | |||
![]() ![]() ![]() ![]() ![]() |
Contributor | |||
![]() ![]() ![]() ![]() ![]() |
DataRequirement | |||
![]() ![]() ![]() ![]() ![]() |
Expression | |||
![]() ![]() ![]() ![]() ![]() |
ParameterDefinition | |||
![]() ![]() ![]() ![]() ![]() |
RelatedArtifact | |||
![]() ![]() ![]() ![]() ![]() |
TriggerDefinition | |||
![]() ![]() ![]() ![]() ![]() |
UsageContext | |||
![]() ![]() ![]() ![]() ![]() |
Dosage | |||
![]() ![]() ![]() ![]() ![]() |
Meta | |||
![]() ![]() ![]() |
C | 1..1 | BackboneElement | The Questionnaire to complete, as a versioned canonical |
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Label for the input Binding Description: (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: | |
![]() ![]() ![]() ![]() |
1..1 | canonical(Ohh Questionnaire Profile) | url | |
![]() ![]() ![]() |
0..* | BackboneElement | Information used to perform task | |
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Label for the input Binding Description: (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: | |
![]() ![]() ![]() ![]() |
1..1 | url | url | |
![]() ![]() |
0..* | BackboneElement | Information produced as part of task Slice: Unordered, Open by pattern:type Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |
![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Label for output Binding Description: (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. | |
![]() ![]() ![]() ![]() |
1..1 | Result of output | ||
![]() ![]() ![]() ![]() ![]() |
base64Binary | |||
![]() ![]() ![]() ![]() ![]() |
boolean | |||
![]() ![]() ![]() ![]() ![]() |
canonical(Any) | |||
![]() ![]() ![]() ![]() ![]() |
code | |||
![]() ![]() ![]() ![]() ![]() |
date | |||
![]() ![]() ![]() ![]() ![]() |
dateTime | |||
![]() ![]() ![]() ![]() ![]() |
decimal | |||
![]() ![]() ![]() ![]() ![]() |
id | |||
![]() ![]() ![]() ![]() ![]() |
instant | |||
![]() ![]() ![]() ![]() ![]() |
integer | |||
![]() ![]() ![]() ![]() ![]() |
markdown | |||
![]() ![]() ![]() ![]() ![]() |
oid | |||
![]() ![]() ![]() ![]() ![]() |
positiveInt | |||
![]() ![]() ![]() ![]() ![]() |
string | |||
![]() ![]() ![]() ![]() ![]() |
time | |||
![]() ![]() ![]() ![]() ![]() |
unsignedInt | |||
![]() ![]() ![]() ![]() ![]() |
uri | |||
![]() ![]() ![]() ![]() ![]() |
url | |||
![]() ![]() ![]() ![]() ![]() |
uuid | |||
![]() ![]() ![]() ![]() ![]() |
Address | |||
![]() ![]() ![]() ![]() ![]() |
Age | |||
![]() ![]() ![]() ![]() ![]() |
Annotation | |||
![]() ![]() ![]() ![]() ![]() |
Attachment | |||
![]() ![]() ![]() ![]() ![]() |
CodeableConcept | |||
![]() ![]() ![]() ![]() ![]() |
Coding | |||
![]() ![]() ![]() ![]() ![]() |
ContactPoint | |||
![]() ![]() ![]() ![]() ![]() |
Count | |||
![]() ![]() ![]() ![]() ![]() |
Distance | |||
![]() ![]() ![]() ![]() ![]() |
Duration | |||
![]() ![]() ![]() ![]() ![]() |
HumanName | |||
![]() ![]() ![]() ![]() ![]() |
Identifier | |||
![]() ![]() ![]() ![]() ![]() |
Money | |||
![]() ![]() ![]() ![]() ![]() |
Period | |||
![]() ![]() ![]() ![]() ![]() |
Quantity | |||
![]() ![]() ![]() ![]() ![]() |
Range | |||
![]() ![]() ![]() ![]() ![]() |
Ratio | |||
![]() ![]() ![]() ![]() ![]() |
Reference(Any) | |||
![]() ![]() ![]() ![]() ![]() |
SampledData | |||
![]() ![]() ![]() ![]() ![]() |
Signature | |||
![]() ![]() ![]() ![]() ![]() |
Timing | |||
![]() ![]() ![]() ![]() ![]() |
ContactDetail | |||
![]() ![]() ![]() ![]() ![]() |
Contributor | |||
![]() ![]() ![]() ![]() ![]() |
DataRequirement | |||
![]() ![]() ![]() ![]() ![]() |
Expression | |||
![]() ![]() ![]() ![]() ![]() |
ParameterDefinition | |||
![]() ![]() ![]() ![]() ![]() |
RelatedArtifact | |||
![]() ![]() ![]() ![]() ![]() |
TriggerDefinition | |||
![]() ![]() ![]() ![]() ![]() |
UsageContext | |||
![]() ![]() ![]() ![]() ![]() |
Dosage | |||
![]() ![]() ![]() ![]() ![]() |
Meta | |||
![]() ![]() ![]() |
0..1 | BackboneElement | The QuestionnaireResponse addressed to your client, once the task is completed | |
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Label for output Binding Description: (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: | |
![]() ![]() ![]() ![]() |
1..1 | Reference(QuestionnaireResponse) | url | |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| Task.status | Base | required | OHH Task Status Value Set | 📦0.1.0 | This IG |
| Task.intent | Base | required | TaskIntent | 📍4.0.1 | FHIR Std. |
| Task.code | Base | required | SDC Task Code | 📦3.0.0 | Structured Data Capture v3.0 |
| Task.reasonCode | Base | example | Not State | Unknown | |
| Task.input.type | Base | example | Not State | Unknown | |
| Task.input:questionnaire.type | Base | example | Not State | Unknown | |
| Task.input:responseEndpoint.type | Base | example | Not State | Unknown | |
| Task.output.type | Base | example | Not State | Unknown | |
| Task.output:response.type | Base | example | Not State | Unknown |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | Task | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Task | If 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-4 | error | Task | If 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-5 | error | Task | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Task | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| inv-1 | error | Task | Last modified date must be greater than or equal to authored-on date. |
lastModified.exists().not() or authoredOn.exists().not() or lastModified >= authoredOn
|
| sdc-t1 | error | Task | Either code is 'fulfill', focus is ServiceRequest and no 'questionnaire' input; or code is 'complete-questionnaire', focus is omitted and 'questionnaire' input is present |
(code.coding.where(code='fulfill' and system='http://hl7.org/fhir/CodeSystem/task-code').exists() and (focus.resolve() is ServiceRequest) and input.where(type.coding.where(system='http://hl7.org/fhir/uv/sdc/CodeSystem/temp' and code='questionnaire')).exists().not()) or (code.coding.where(code='complete-questionnaire' and system='http://hl7.org/fhir/uv/sdc/CodeSystem/temp').exists() and focus.exists().not() and input.where(type.coding.where(system='http://hl7.org/fhir/uv/sdc/CodeSystem/temp' and code='questionnaire')).exists())
|
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | SDCTaskQuestionnaire | A task to be performed Constraints: inv-1, sdc-t1 | ||||
![]() ![]() |
0..1 | id | Logical id of this artifact | |||||
![]() ![]() |
0..1 | Meta | Metadata about the resource | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
0..1 | id | Version specific identifier | |||||
![]() ![]() ![]() |
0..1 | instant | When the task was completed, otherwise its start if that has passed, otherwise when it was created | |||||
![]() ![]() ![]() |
0..1 | uri | Identifies where the resource comes from | |||||
![]() ![]() ![]() |
0..* | canonical(StructureDefinition) | Profiles this resource claims to conform to | |||||
![]() ![]() ![]() |
0..* | Coding | Security Labels applied to this resource Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System. | |||||
![]() ![]() ![]() |
0..* | Coding | Tags applied to this resource Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones". | |||||
![]() ![]() |
0..1 | uri | A set of rules under which this content was created | |||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| |||||
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |||||
![]() ![]() ![]() |
0..1 | string | Task UUID URL: https://api.openhealthhub.com/OpenHealthhub/fhir/4/StructureDefinition/task-uuid | |||||
![]() ![]() |
0..* | Extension | Extensions that cannot be ignored | |||||
![]() ![]() |
0..* | Identifier | Task Instance Identifier | |||||
![]() ![]() |
0..1 | canonical(ActivityDefinition) | Formal definition of task | |||||
![]() ![]() |
0..1 | uri | Formal definition of task | |||||
![]() ![]() |
1..1 | Reference(CarePlan) | The CarePlan the task is part of | |||||
![]() ![]() |
0..1 | Identifier | Requisition or grouper id | |||||
![]() ![]() |
0..* | Reference(Task) | Composite task | |||||
![]() ![]() |
1..1 | code | draft | requested | received | accepted | + Binding: OHH Task Status Value Set (required) | |||||
![]() ![]() |
0..1 | CodeableConcept | Reason for current status Binding Description: (example): Codes to identify the reason for current status. These will typically be specific to a particular workflow. | |||||
![]() ![]() |
0..1 | CodeableConcept | E.g. "Specimen collected", "IV prepped" Binding Description: (example): The domain-specific business-contextual sub-state of the task. For example: "Blood drawn", "IV inserted", "Awaiting physician signature", etc. | |||||
![]() ![]() |
1..1 | code | unknown | 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. Fixed Value: order (no extensions allowed) | |||||
![]() ![]() |
0..1 | code | routine | urgent | asap | stat Binding: RequestPriority (required): The task's priority. | |||||
![]() ![]() |
1..1 | CodeableConcept | Task Type Binding: SDC Task Code (required) Required Pattern: | |||||
![]() ![]() |
0..1 | string | The name of the task | |||||
![]() ![]() |
1..1 | Reference(Patient) | The patient, as a contained Patient with only the patient's identifiers | |||||
![]() ![]() |
0..1 | Reference(Encounter) | Healthcare event during which this task originated | |||||
![]() ![]() |
0..1 | Period | Start and end time of execution | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
C | 0..1 | dateTime | When the task starts | ||||
![]() ![]() ![]() |
C | 0..1 | dateTime | When the task was finished, only once it is finished | ||||
![]() ![]() |
C | 1..1 | dateTime | When the task was created | ||||
![]() ![]() |
C | 0..1 | dateTime | Task Last Modified Date | ||||
![]() ![]() |
1..1 | Reference(Practitioner | Organization) | The care provider that created the CarePlan, otherwise its organisation | |||||
![]() ![]() |
0..* | CodeableConcept | Requested performer Binding: ProcedurePerformerRoleCodes (preferred): The type(s) of task performers allowed. | |||||
![]() ![]() |
1..1 | Reference(Patient | Practitioner) | The patient or the caregiver that should complete the task | |||||
![]() ![]() |
0..1 | Reference(Location) | Where task occurs | |||||
![]() ![]() |
0..1 | CodeableConcept | Why task is needed Binding Description: (example): Indicates why the task is needed. E.g. Suspended because patient admitted to hospital. | |||||
![]() ![]() |
0..1 | Reference(Resource) | Why task is needed | |||||
![]() ![]() |
0..* | Reference(Coverage | ClaimResponse) | Associated insurance coverage | |||||
![]() ![]() |
0..* | Annotation | Comments made about the task | |||||
![]() ![]() |
0..* | Reference(Provenance) | Key events in history of the Task | |||||
![]() ![]() |
0..1 | BackboneElement | Constraints on fulfillment tasks | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() |
0..1 | positiveInt | How many times to repeat | |||||
![]() ![]() ![]() |
0..1 | Period | When fulfillment sought | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
C | 0..1 | dateTime | Starting time with inclusive boundary | ||||
![]() ![]() ![]() ![]() |
C | 0..1 | dateTime | The due date of the task, also after the task is finished | ||||
![]() ![]() ![]() |
0..* | Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Group | Organization) | For whom is fulfillment sought? | |||||
![]() ![]() |
1..* | BackboneElement | Information used to perform task Slice: Unordered, Open by pattern:type Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |||||
![]() ![]() ![]() |
Content/Rules for all slices | |||||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Label for the input Binding Description: (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. | |||||
![]() ![]() ![]() ![]() |
1..1 | Content to use in performing the task | ||||||
![]() ![]() ![]() ![]() ![]() |
base64Binary | |||||||
![]() ![]() ![]() ![]() ![]() |
boolean | |||||||
![]() ![]() ![]() ![]() ![]() |
canonical(Any) | |||||||
![]() ![]() ![]() ![]() ![]() |
code | |||||||
![]() ![]() ![]() ![]() ![]() |
date | |||||||
![]() ![]() ![]() ![]() ![]() |
dateTime | |||||||
![]() ![]() ![]() ![]() ![]() |
decimal | |||||||
![]() ![]() ![]() ![]() ![]() |
id | |||||||
![]() ![]() ![]() ![]() ![]() |
instant | |||||||
![]() ![]() ![]() ![]() ![]() |
integer | |||||||
![]() ![]() ![]() ![]() ![]() |
markdown | |||||||
![]() ![]() ![]() ![]() ![]() |
oid | |||||||
![]() ![]() ![]() ![]() ![]() |
positiveInt | |||||||
![]() ![]() ![]() ![]() ![]() |
string | |||||||
![]() ![]() ![]() ![]() ![]() |
time | |||||||
![]() ![]() ![]() ![]() ![]() |
unsignedInt | |||||||
![]() ![]() ![]() ![]() ![]() |
uri | |||||||
![]() ![]() ![]() ![]() ![]() |
url | |||||||
![]() ![]() ![]() ![]() ![]() |
uuid | |||||||
![]() ![]() ![]() ![]() ![]() |
Address | |||||||
![]() ![]() ![]() ![]() ![]() |
Age | |||||||
![]() ![]() ![]() ![]() ![]() |
Annotation | |||||||
![]() ![]() ![]() ![]() ![]() |
Attachment | |||||||
![]() ![]() ![]() ![]() ![]() |
CodeableConcept | |||||||
![]() ![]() ![]() ![]() ![]() |
Coding | |||||||
![]() ![]() ![]() ![]() ![]() |
ContactPoint | |||||||
![]() ![]() ![]() ![]() ![]() |
Count | |||||||
![]() ![]() ![]() ![]() ![]() |
Distance | |||||||
![]() ![]() ![]() ![]() ![]() |
Duration | |||||||
![]() ![]() ![]() ![]() ![]() |
HumanName | |||||||
![]() ![]() ![]() ![]() ![]() |
Identifier | |||||||
![]() ![]() ![]() ![]() ![]() |
Money | |||||||
![]() ![]() ![]() ![]() ![]() |
Period | |||||||
![]() ![]() ![]() ![]() ![]() |
Quantity | |||||||
![]() ![]() ![]() ![]() ![]() |
Range | |||||||
![]() ![]() ![]() ![]() ![]() |
Ratio | |||||||
![]() ![]() ![]() ![]() ![]() |
Reference(Any) | |||||||
![]() ![]() ![]() ![]() ![]() |
SampledData | |||||||
![]() ![]() ![]() ![]() ![]() |
Signature | |||||||
![]() ![]() ![]() ![]() ![]() |
Timing | |||||||
![]() ![]() ![]() ![]() ![]() |
ContactDetail | |||||||
![]() ![]() ![]() ![]() ![]() |
Contributor | |||||||
![]() ![]() ![]() ![]() ![]() |
DataRequirement | |||||||
![]() ![]() ![]() ![]() ![]() |
Expression | |||||||
![]() ![]() ![]() ![]() ![]() |
ParameterDefinition | |||||||
![]() ![]() ![]() ![]() ![]() |
RelatedArtifact | |||||||
![]() ![]() ![]() ![]() ![]() |
TriggerDefinition | |||||||
![]() ![]() ![]() ![]() ![]() |
UsageContext | |||||||
![]() ![]() ![]() ![]() ![]() |
Dosage | |||||||
![]() ![]() ![]() ![]() ![]() |
Meta | |||||||
![]() ![]() ![]() |
C | 1..1 | BackboneElement | The Questionnaire to complete, as a versioned canonical | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Label for the input Binding Description: (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: | |||||
![]() ![]() ![]() ![]() |
1..1 | canonical(Ohh Questionnaire Profile) | url | |||||
![]() ![]() ![]() |
0..* | BackboneElement | Information used to perform task | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Label for the input Binding Description: (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: | |||||
![]() ![]() ![]() ![]() |
1..1 | url | url | |||||
![]() ![]() |
0..* | BackboneElement | Information produced as part of task Slice: Unordered, Open by pattern:type Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |||||
![]() ![]() ![]() |
Content/Rules for all slices | |||||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Label for output Binding Description: (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. | |||||
![]() ![]() ![]() ![]() |
1..1 | Result of output | ||||||
![]() ![]() ![]() ![]() ![]() |
base64Binary | |||||||
![]() ![]() ![]() ![]() ![]() |
boolean | |||||||
![]() ![]() ![]() ![]() ![]() |
canonical(Any) | |||||||
![]() ![]() ![]() ![]() ![]() |
code | |||||||
![]() ![]() ![]() ![]() ![]() |
date | |||||||
![]() ![]() ![]() ![]() ![]() |
dateTime | |||||||
![]() ![]() ![]() ![]() ![]() |
decimal | |||||||
![]() ![]() ![]() ![]() ![]() |
id | |||||||
![]() ![]() ![]() ![]() ![]() |
instant | |||||||
![]() ![]() ![]() ![]() ![]() |
integer | |||||||
![]() ![]() ![]() ![]() ![]() |
markdown | |||||||
![]() ![]() ![]() ![]() ![]() |
oid | |||||||
![]() ![]() ![]() ![]() ![]() |
positiveInt | |||||||
![]() ![]() ![]() ![]() ![]() |
string | |||||||
![]() ![]() ![]() ![]() ![]() |
time | |||||||
![]() ![]() ![]() ![]() ![]() |
unsignedInt | |||||||
![]() ![]() ![]() ![]() ![]() |
uri | |||||||
![]() ![]() ![]() ![]() ![]() |
url | |||||||
![]() ![]() ![]() ![]() ![]() |
uuid | |||||||
![]() ![]() ![]() ![]() ![]() |
Address | |||||||
![]() ![]() ![]() ![]() ![]() |
Age | |||||||
![]() ![]() ![]() ![]() ![]() |
Annotation | |||||||
![]() ![]() ![]() ![]() ![]() |
Attachment | |||||||
![]() ![]() ![]() ![]() ![]() |
CodeableConcept | |||||||
![]() ![]() ![]() ![]() ![]() |
Coding | |||||||
![]() ![]() ![]() ![]() ![]() |
ContactPoint | |||||||
![]() ![]() ![]() ![]() ![]() |
Count | |||||||
![]() ![]() ![]() ![]() ![]() |
Distance | |||||||
![]() ![]() ![]() ![]() ![]() |
Duration | |||||||
![]() ![]() ![]() ![]() ![]() |
HumanName | |||||||
![]() ![]() ![]() ![]() ![]() |
Identifier | |||||||
![]() ![]() ![]() ![]() ![]() |
Money | |||||||
![]() ![]() ![]() ![]() ![]() |
Period | |||||||
![]() ![]() ![]() ![]() ![]() |
Quantity | |||||||
![]() ![]() ![]() ![]() ![]() |
Range | |||||||
![]() ![]() ![]() ![]() ![]() |
Ratio | |||||||
![]() ![]() ![]() ![]() ![]() |
Reference(Any) | |||||||
![]() ![]() ![]() ![]() ![]() |
SampledData | |||||||
![]() ![]() ![]() ![]() ![]() |
Signature | |||||||
![]() ![]() ![]() ![]() ![]() |
Timing | |||||||
![]() ![]() ![]() ![]() ![]() |
ContactDetail | |||||||
![]() ![]() ![]() ![]() ![]() |
Contributor | |||||||
![]() ![]() ![]() ![]() ![]() |
DataRequirement | |||||||
![]() ![]() ![]() ![]() ![]() |
Expression | |||||||
![]() ![]() ![]() ![]() ![]() |
ParameterDefinition | |||||||
![]() ![]() ![]() ![]() ![]() |
RelatedArtifact | |||||||
![]() ![]() ![]() ![]() ![]() |
TriggerDefinition | |||||||
![]() ![]() ![]() ![]() ![]() |
UsageContext | |||||||
![]() ![]() ![]() ![]() ![]() |
Dosage | |||||||
![]() ![]() ![]() ![]() ![]() |
Meta | |||||||
![]() ![]() ![]() |
0..1 | BackboneElement | The QuestionnaireResponse addressed to your client, once the task is completed | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Label for output Binding Description: (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: | |||||
![]() ![]() ![]() ![]() |
1..1 | Reference(QuestionnaireResponse) | url | |||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| Task.meta.security | Base | extensible | SecurityLabels | 📍4.0.1 | FHIR Std. |
| Task.meta.tag | Base | example | Common Tags | 📍4.0.1 | FHIR Std. |
| Task.language | Base | preferred | Common Languages | 📦4.0.1 | FHIR Std. |
| Task.status | Base | required | OHH Task Status Value Set | 📦0.1.0 | This IG |
| Task.statusReason | Base | example | Not State | Unknown | |
| Task.businessStatus | Base | example | Not State | Unknown | |
| Task.intent | Base | required | TaskIntent | 📍4.0.1 | FHIR Std. |
| Task.priority | Base | required | Request priority | 📍4.0.1 | FHIR Std. |
| Task.code | Base | required | SDC Task Code | 📦3.0.0 | Structured Data Capture v3.0 |
| Task.performerType | Base | preferred | Procedure Performer Role Codes | 📦4.0.1 | FHIR Std. |
| Task.reasonCode | Base | example | Not State | Unknown | |
| Task.input.type | Base | example | Not State | Unknown | |
| Task.input:questionnaire.type | Base | example | Not State | Unknown | |
| Task.input:responseEndpoint.type | Base | example | Not State | Unknown | |
| Task.output.type | Base | example | Not State | Unknown | |
| Task.output:response.type | Base | example | Not State | Unknown |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | Task | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Task | If 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-4 | error | Task | If 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-5 | error | Task | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Task | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| inv-1 | error | Task | Last modified date must be greater than or equal to authored-on date. |
lastModified.exists().not() or authoredOn.exists().not() or lastModified >= authoredOn
|
| sdc-t1 | error | Task | Either code is 'fulfill', focus is ServiceRequest and no 'questionnaire' input; or code is 'complete-questionnaire', focus is omitted and 'questionnaire' input is present |
(code.coding.where(code='fulfill' and system='http://hl7.org/fhir/CodeSystem/task-code').exists() and (focus.resolve() is ServiceRequest) and input.where(type.coding.where(system='http://hl7.org/fhir/uv/sdc/CodeSystem/temp' and code='questionnaire')).exists().not()) or (code.coding.where(code='complete-questionnaire' and system='http://hl7.org/fhir/uv/sdc/CodeSystem/temp').exists() and focus.exists().not() and input.where(type.coding.where(system='http://hl7.org/fhir/uv/sdc/CodeSystem/temp' and code='questionnaire')).exists())
|
This structure is derived from SDCTaskQuestionnaire
Differential View
This structure is derived from SDCTaskQuestionnaire
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() |
|---|---|---|---|---|
![]() |
0..* | SDCTaskQuestionnaire | A task to be performed | |
![]() ![]() |
||||
![]() ![]() ![]() |
0..1 | instant | When the task was completed, otherwise its start if that has passed, otherwise when it was created | |
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |
![]() ![]() ![]() |
0..1 | string | Task UUID URL: https://api.openhealthhub.com/OpenHealthhub/fhir/4/StructureDefinition/task-uuid | |
![]() ![]() |
1..1 | Reference(CarePlan) | The CarePlan the task is part of | |
![]() ![]() |
1..1 | code | draft | requested | received | accepted | + Binding: OHH Task Status Value Set (required) | |
![]() ![]() |
1..1 | code | unknown | proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option Fixed Value: order (no extensions allowed) | |
![]() ![]() |
1..1 | CodeableConcept | Task Type Required Pattern: | |
![]() ![]() |
0..1 | string | The name of the task | |
![]() ![]() |
0..0 | What task is acting on | ||
![]() ![]() |
1..1 | Reference(Patient) | The patient, as a contained Patient with only the patient's identifiers | |
![]() ![]() |
0..1 | Period | Start and end time of execution | |
![]() ![]() ![]() |
0..1 | dateTime | When the task starts | |
![]() ![]() ![]() |
0..1 | dateTime | When the task was finished, only once it is finished | |
![]() ![]() |
1..1 | dateTime | When the task was created | |
![]() ![]() |
1..1 | Reference(Practitioner | Organization) | The care provider that created the CarePlan, otherwise its organisation | |
![]() ![]() |
1..1 | Reference(Patient | Practitioner) | The patient or the caregiver that should complete the task | |
![]() ![]() |
0..1 | BackboneElement | Constraints on fulfillment tasks | |
![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() |
0..1 | dateTime | The due date of the task, also after the task is finished | |
![]() ![]() |
1..* | BackboneElement | Information used to perform task | |
![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() |
1..1 | BackboneElement | The Questionnaire to complete, as a versioned canonical | |
![]() ![]() ![]() ![]() |
1..1 | canonical(Ohh Questionnaire Profile) | url | |
![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() |
0..1 | BackboneElement | The QuestionnaireResponse addressed to your client, once the task is completed | |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| Task.status | Base | required | OHH Task Status Value Set | 📦0.1.0 | This IG |
Key Elements View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | SDCTaskQuestionnaire | A task to be performed Constraints: inv-1, sdc-t1 |
![]() ![]() |
0..1 | uri | A set of rules under which this content was created | |
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |
![]() ![]() ![]() |
0..1 | string | Task UUID URL: https://api.openhealthhub.com/OpenHealthhub/fhir/4/StructureDefinition/task-uuid | |
![]() ![]() |
0..* | Extension | Extensions that cannot be ignored | |
![]() ![]() |
1..1 | Reference(CarePlan) | The CarePlan the task is part of | |
![]() ![]() |
1..1 | code | draft | requested | received | accepted | + Binding: OHH Task Status Value Set (required) | |
![]() ![]() |
1..1 | code | unknown | 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. Fixed Value: order (no extensions allowed) | |
![]() ![]() |
1..1 | CodeableConcept | Task Type Binding: SDC Task Code (required) Required Pattern: | |
![]() ![]() |
0..1 | string | The name of the task | |
![]() ![]() |
1..1 | Reference(Patient) | The patient, as a contained Patient with only the patient's identifiers | |
![]() ![]() |
0..1 | Period | Start and end time of execution | |
![]() ![]() ![]() |
C | 0..1 | dateTime | When the task starts |
![]() ![]() ![]() |
C | 0..1 | dateTime | When the task was finished, only once it is finished |
![]() ![]() |
C | 1..1 | dateTime | When the task was created |
![]() ![]() |
1..1 | Reference(Practitioner | Organization) | The care provider that created the CarePlan, otherwise its organisation | |
![]() ![]() |
1..1 | Reference(Patient | Practitioner) | The patient or the caregiver that should complete the task | |
![]() ![]() |
0..1 | CodeableConcept | Why task is needed Binding Description: (example): Indicates why the task is needed. E.g. Suspended because patient admitted to hospital. | |
![]() ![]() |
0..1 | BackboneElement | Constraints on fulfillment tasks | |
![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() |
0..1 | Period | When fulfillment sought | |
![]() ![]() ![]() ![]() |
C | 0..1 | dateTime | The due date of the task, also after the task is finished |
![]() ![]() |
1..* | BackboneElement | Information used to perform task Slice: Unordered, Open by pattern:type Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |
![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Label for the input Binding Description: (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. | |
![]() ![]() ![]() ![]() |
1..1 | Content to use in performing the task | ||
![]() ![]() ![]() ![]() ![]() |
base64Binary | |||
![]() ![]() ![]() ![]() ![]() |
boolean | |||
![]() ![]() ![]() ![]() ![]() |
canonical(Any) | |||
![]() ![]() ![]() ![]() ![]() |
code | |||
![]() ![]() ![]() ![]() ![]() |
date | |||
![]() ![]() ![]() ![]() ![]() |
dateTime | |||
![]() ![]() ![]() ![]() ![]() |
decimal | |||
![]() ![]() ![]() ![]() ![]() |
id | |||
![]() ![]() ![]() ![]() ![]() |
instant | |||
![]() ![]() ![]() ![]() ![]() |
integer | |||
![]() ![]() ![]() ![]() ![]() |
markdown | |||
![]() ![]() ![]() ![]() ![]() |
oid | |||
![]() ![]() ![]() ![]() ![]() |
positiveInt | |||
![]() ![]() ![]() ![]() ![]() |
string | |||
![]() ![]() ![]() ![]() ![]() |
time | |||
![]() ![]() ![]() ![]() ![]() |
unsignedInt | |||
![]() ![]() ![]() ![]() ![]() |
uri | |||
![]() ![]() ![]() ![]() ![]() |
url | |||
![]() ![]() ![]() ![]() ![]() |
uuid | |||
![]() ![]() ![]() ![]() ![]() |
Address | |||
![]() ![]() ![]() ![]() ![]() |
Age | |||
![]() ![]() ![]() ![]() ![]() |
Annotation | |||
![]() ![]() ![]() ![]() ![]() |
Attachment | |||
![]() ![]() ![]() ![]() ![]() |
CodeableConcept | |||
![]() ![]() ![]() ![]() ![]() |
Coding | |||
![]() ![]() ![]() ![]() ![]() |
ContactPoint | |||
![]() ![]() ![]() ![]() ![]() |
Count | |||
![]() ![]() ![]() ![]() ![]() |
Distance | |||
![]() ![]() ![]() ![]() ![]() |
Duration | |||
![]() ![]() ![]() ![]() ![]() |
HumanName | |||
![]() ![]() ![]() ![]() ![]() |
Identifier | |||
![]() ![]() ![]() ![]() ![]() |
Money | |||
![]() ![]() ![]() ![]() ![]() |
Period | |||
![]() ![]() ![]() ![]() ![]() |
Quantity | |||
![]() ![]() ![]() ![]() ![]() |
Range | |||
![]() ![]() ![]() ![]() ![]() |
Ratio | |||
![]() ![]() ![]() ![]() ![]() |
Reference(Any) | |||
![]() ![]() ![]() ![]() ![]() |
SampledData | |||
![]() ![]() ![]() ![]() ![]() |
Signature | |||
![]() ![]() ![]() ![]() ![]() |
Timing | |||
![]() ![]() ![]() ![]() ![]() |
ContactDetail | |||
![]() ![]() ![]() ![]() ![]() |
Contributor | |||
![]() ![]() ![]() ![]() ![]() |
DataRequirement | |||
![]() ![]() ![]() ![]() ![]() |
Expression | |||
![]() ![]() ![]() ![]() ![]() |
ParameterDefinition | |||
![]() ![]() ![]() ![]() ![]() |
RelatedArtifact | |||
![]() ![]() ![]() ![]() ![]() |
TriggerDefinition | |||
![]() ![]() ![]() ![]() ![]() |
UsageContext | |||
![]() ![]() ![]() ![]() ![]() |
Dosage | |||
![]() ![]() ![]() ![]() ![]() |
Meta | |||
![]() ![]() ![]() |
C | 1..1 | BackboneElement | The Questionnaire to complete, as a versioned canonical |
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Label for the input Binding Description: (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: | |
![]() ![]() ![]() ![]() |
1..1 | canonical(Ohh Questionnaire Profile) | url | |
![]() ![]() ![]() |
0..* | BackboneElement | Information used to perform task | |
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Label for the input Binding Description: (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: | |
![]() ![]() ![]() ![]() |
1..1 | url | url | |
![]() ![]() |
0..* | BackboneElement | Information produced as part of task Slice: Unordered, Open by pattern:type Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |
![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Label for output Binding Description: (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. | |
![]() ![]() ![]() ![]() |
1..1 | Result of output | ||
![]() ![]() ![]() ![]() ![]() |
base64Binary | |||
![]() ![]() ![]() ![]() ![]() |
boolean | |||
![]() ![]() ![]() ![]() ![]() |
canonical(Any) | |||
![]() ![]() ![]() ![]() ![]() |
code | |||
![]() ![]() ![]() ![]() ![]() |
date | |||
![]() ![]() ![]() ![]() ![]() |
dateTime | |||
![]() ![]() ![]() ![]() ![]() |
decimal | |||
![]() ![]() ![]() ![]() ![]() |
id | |||
![]() ![]() ![]() ![]() ![]() |
instant | |||
![]() ![]() ![]() ![]() ![]() |
integer | |||
![]() ![]() ![]() ![]() ![]() |
markdown | |||
![]() ![]() ![]() ![]() ![]() |
oid | |||
![]() ![]() ![]() ![]() ![]() |
positiveInt | |||
![]() ![]() ![]() ![]() ![]() |
string | |||
![]() ![]() ![]() ![]() ![]() |
time | |||
![]() ![]() ![]() ![]() ![]() |
unsignedInt | |||
![]() ![]() ![]() ![]() ![]() |
uri | |||
![]() ![]() ![]() ![]() ![]() |
url | |||
![]() ![]() ![]() ![]() ![]() |
uuid | |||
![]() ![]() ![]() ![]() ![]() |
Address | |||
![]() ![]() ![]() ![]() ![]() |
Age | |||
![]() ![]() ![]() ![]() ![]() |
Annotation | |||
![]() ![]() ![]() ![]() ![]() |
Attachment | |||
![]() ![]() ![]() ![]() ![]() |
CodeableConcept | |||
![]() ![]() ![]() ![]() ![]() |
Coding | |||
![]() ![]() ![]() ![]() ![]() |
ContactPoint | |||
![]() ![]() ![]() ![]() ![]() |
Count | |||
![]() ![]() ![]() ![]() ![]() |
Distance | |||
![]() ![]() ![]() ![]() ![]() |
Duration | |||
![]() ![]() ![]() ![]() ![]() |
HumanName | |||
![]() ![]() ![]() ![]() ![]() |
Identifier | |||
![]() ![]() ![]() ![]() ![]() |
Money | |||
![]() ![]() ![]() ![]() ![]() |
Period | |||
![]() ![]() ![]() ![]() ![]() |
Quantity | |||
![]() ![]() ![]() ![]() ![]() |
Range | |||
![]() ![]() ![]() ![]() ![]() |
Ratio | |||
![]() ![]() ![]() ![]() ![]() |
Reference(Any) | |||
![]() ![]() ![]() ![]() ![]() |
SampledData | |||
![]() ![]() ![]() ![]() ![]() |
Signature | |||
![]() ![]() ![]() ![]() ![]() |
Timing | |||
![]() ![]() ![]() ![]() ![]() |
ContactDetail | |||
![]() ![]() ![]() ![]() ![]() |
Contributor | |||
![]() ![]() ![]() ![]() ![]() |
DataRequirement | |||
![]() ![]() ![]() ![]() ![]() |
Expression | |||
![]() ![]() ![]() ![]() ![]() |
ParameterDefinition | |||
![]() ![]() ![]() ![]() ![]() |
RelatedArtifact | |||
![]() ![]() ![]() ![]() ![]() |
TriggerDefinition | |||
![]() ![]() ![]() ![]() ![]() |
UsageContext | |||
![]() ![]() ![]() ![]() ![]() |
Dosage | |||
![]() ![]() ![]() ![]() ![]() |
Meta | |||
![]() ![]() ![]() |
0..1 | BackboneElement | The QuestionnaireResponse addressed to your client, once the task is completed | |
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Label for output Binding Description: (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: | |
![]() ![]() ![]() ![]() |
1..1 | Reference(QuestionnaireResponse) | url | |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| Task.status | Base | required | OHH Task Status Value Set | 📦0.1.0 | This IG |
| Task.intent | Base | required | TaskIntent | 📍4.0.1 | FHIR Std. |
| Task.code | Base | required | SDC Task Code | 📦3.0.0 | Structured Data Capture v3.0 |
| Task.reasonCode | Base | example | Not State | Unknown | |
| Task.input.type | Base | example | Not State | Unknown | |
| Task.input:questionnaire.type | Base | example | Not State | Unknown | |
| Task.input:responseEndpoint.type | Base | example | Not State | Unknown | |
| Task.output.type | Base | example | Not State | Unknown | |
| Task.output:response.type | Base | example | Not State | Unknown |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | Task | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Task | If 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-4 | error | Task | If 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-5 | error | Task | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Task | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| inv-1 | error | Task | Last modified date must be greater than or equal to authored-on date. |
lastModified.exists().not() or authoredOn.exists().not() or lastModified >= authoredOn
|
| sdc-t1 | error | Task | Either code is 'fulfill', focus is ServiceRequest and no 'questionnaire' input; or code is 'complete-questionnaire', focus is omitted and 'questionnaire' input is present |
(code.coding.where(code='fulfill' and system='http://hl7.org/fhir/CodeSystem/task-code').exists() and (focus.resolve() is ServiceRequest) and input.where(type.coding.where(system='http://hl7.org/fhir/uv/sdc/CodeSystem/temp' and code='questionnaire')).exists().not()) or (code.coding.where(code='complete-questionnaire' and system='http://hl7.org/fhir/uv/sdc/CodeSystem/temp').exists() and focus.exists().not() and input.where(type.coding.where(system='http://hl7.org/fhir/uv/sdc/CodeSystem/temp' and code='questionnaire')).exists())
|
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | SDCTaskQuestionnaire | A task to be performed Constraints: inv-1, sdc-t1 | ||||
![]() ![]() |
0..1 | id | Logical id of this artifact | |||||
![]() ![]() |
0..1 | Meta | Metadata about the resource | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
0..1 | id | Version specific identifier | |||||
![]() ![]() ![]() |
0..1 | instant | When the task was completed, otherwise its start if that has passed, otherwise when it was created | |||||
![]() ![]() ![]() |
0..1 | uri | Identifies where the resource comes from | |||||
![]() ![]() ![]() |
0..* | canonical(StructureDefinition) | Profiles this resource claims to conform to | |||||
![]() ![]() ![]() |
0..* | Coding | Security Labels applied to this resource Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System. | |||||
![]() ![]() ![]() |
0..* | Coding | Tags applied to this resource Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones". | |||||
![]() ![]() |
0..1 | uri | A set of rules under which this content was created | |||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| |||||
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |||||
![]() ![]() ![]() |
0..1 | string | Task UUID URL: https://api.openhealthhub.com/OpenHealthhub/fhir/4/StructureDefinition/task-uuid | |||||
![]() ![]() |
0..* | Extension | Extensions that cannot be ignored | |||||
![]() ![]() |
0..* | Identifier | Task Instance Identifier | |||||
![]() ![]() |
0..1 | canonical(ActivityDefinition) | Formal definition of task | |||||
![]() ![]() |
0..1 | uri | Formal definition of task | |||||
![]() ![]() |
1..1 | Reference(CarePlan) | The CarePlan the task is part of | |||||
![]() ![]() |
0..1 | Identifier | Requisition or grouper id | |||||
![]() ![]() |
0..* | Reference(Task) | Composite task | |||||
![]() ![]() |
1..1 | code | draft | requested | received | accepted | + Binding: OHH Task Status Value Set (required) | |||||
![]() ![]() |
0..1 | CodeableConcept | Reason for current status Binding Description: (example): Codes to identify the reason for current status. These will typically be specific to a particular workflow. | |||||
![]() ![]() |
0..1 | CodeableConcept | E.g. "Specimen collected", "IV prepped" Binding Description: (example): The domain-specific business-contextual sub-state of the task. For example: "Blood drawn", "IV inserted", "Awaiting physician signature", etc. | |||||
![]() ![]() |
1..1 | code | unknown | 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. Fixed Value: order (no extensions allowed) | |||||
![]() ![]() |
0..1 | code | routine | urgent | asap | stat Binding: RequestPriority (required): The task's priority. | |||||
![]() ![]() |
1..1 | CodeableConcept | Task Type Binding: SDC Task Code (required) Required Pattern: | |||||
![]() ![]() |
0..1 | string | The name of the task | |||||
![]() ![]() |
1..1 | Reference(Patient) | The patient, as a contained Patient with only the patient's identifiers | |||||
![]() ![]() |
0..1 | Reference(Encounter) | Healthcare event during which this task originated | |||||
![]() ![]() |
0..1 | Period | Start and end time of execution | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
C | 0..1 | dateTime | When the task starts | ||||
![]() ![]() ![]() |
C | 0..1 | dateTime | When the task was finished, only once it is finished | ||||
![]() ![]() |
C | 1..1 | dateTime | When the task was created | ||||
![]() ![]() |
C | 0..1 | dateTime | Task Last Modified Date | ||||
![]() ![]() |
1..1 | Reference(Practitioner | Organization) | The care provider that created the CarePlan, otherwise its organisation | |||||
![]() ![]() |
0..* | CodeableConcept | Requested performer Binding: ProcedurePerformerRoleCodes (preferred): The type(s) of task performers allowed. | |||||
![]() ![]() |
1..1 | Reference(Patient | Practitioner) | The patient or the caregiver that should complete the task | |||||
![]() ![]() |
0..1 | Reference(Location) | Where task occurs | |||||
![]() ![]() |
0..1 | CodeableConcept | Why task is needed Binding Description: (example): Indicates why the task is needed. E.g. Suspended because patient admitted to hospital. | |||||
![]() ![]() |
0..1 | Reference(Resource) | Why task is needed | |||||
![]() ![]() |
0..* | Reference(Coverage | ClaimResponse) | Associated insurance coverage | |||||
![]() ![]() |
0..* | Annotation | Comments made about the task | |||||
![]() ![]() |
0..* | Reference(Provenance) | Key events in history of the Task | |||||
![]() ![]() |
0..1 | BackboneElement | Constraints on fulfillment tasks | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() |
0..1 | positiveInt | How many times to repeat | |||||
![]() ![]() ![]() |
0..1 | Period | When fulfillment sought | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
C | 0..1 | dateTime | Starting time with inclusive boundary | ||||
![]() ![]() ![]() ![]() |
C | 0..1 | dateTime | The due date of the task, also after the task is finished | ||||
![]() ![]() ![]() |
0..* | Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Group | Organization) | For whom is fulfillment sought? | |||||
![]() ![]() |
1..* | BackboneElement | Information used to perform task Slice: Unordered, Open by pattern:type Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |||||
![]() ![]() ![]() |
Content/Rules for all slices | |||||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Label for the input Binding Description: (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. | |||||
![]() ![]() ![]() ![]() |
1..1 | Content to use in performing the task | ||||||
![]() ![]() ![]() ![]() ![]() |
base64Binary | |||||||
![]() ![]() ![]() ![]() ![]() |
boolean | |||||||
![]() ![]() ![]() ![]() ![]() |
canonical(Any) | |||||||
![]() ![]() ![]() ![]() ![]() |
code | |||||||
![]() ![]() ![]() ![]() ![]() |
date | |||||||
![]() ![]() ![]() ![]() ![]() |
dateTime | |||||||
![]() ![]() ![]() ![]() ![]() |
decimal | |||||||
![]() ![]() ![]() ![]() ![]() |
id | |||||||
![]() ![]() ![]() ![]() ![]() |
instant | |||||||
![]() ![]() ![]() ![]() ![]() |
integer | |||||||
![]() ![]() ![]() ![]() ![]() |
markdown | |||||||
![]() ![]() ![]() ![]() ![]() |
oid | |||||||
![]() ![]() ![]() ![]() ![]() |
positiveInt | |||||||
![]() ![]() ![]() ![]() ![]() |
string | |||||||
![]() ![]() ![]() ![]() ![]() |
time | |||||||
![]() ![]() ![]() ![]() ![]() |
unsignedInt | |||||||
![]() ![]() ![]() ![]() ![]() |
uri | |||||||
![]() ![]() ![]() ![]() ![]() |
url | |||||||
![]() ![]() ![]() ![]() ![]() |
uuid | |||||||
![]() ![]() ![]() ![]() ![]() |
Address | |||||||
![]() ![]() ![]() ![]() ![]() |
Age | |||||||
![]() ![]() ![]() ![]() ![]() |
Annotation | |||||||
![]() ![]() ![]() ![]() ![]() |
Attachment | |||||||
![]() ![]() ![]() ![]() ![]() |
CodeableConcept | |||||||
![]() ![]() ![]() ![]() ![]() |
Coding | |||||||
![]() ![]() ![]() ![]() ![]() |
ContactPoint | |||||||
![]() ![]() ![]() ![]() ![]() |
Count | |||||||
![]() ![]() ![]() ![]() ![]() |
Distance | |||||||
![]() ![]() ![]() ![]() ![]() |
Duration | |||||||
![]() ![]() ![]() ![]() ![]() |
HumanName | |||||||
![]() ![]() ![]() ![]() ![]() |
Identifier | |||||||
![]() ![]() ![]() ![]() ![]() |
Money | |||||||
![]() ![]() ![]() ![]() ![]() |
Period | |||||||
![]() ![]() ![]() ![]() ![]() |
Quantity | |||||||
![]() ![]() ![]() ![]() ![]() |
Range | |||||||
![]() ![]() ![]() ![]() ![]() |
Ratio | |||||||
![]() ![]() ![]() ![]() ![]() |
Reference(Any) | |||||||
![]() ![]() ![]() ![]() ![]() |
SampledData | |||||||
![]() ![]() ![]() ![]() ![]() |
Signature | |||||||
![]() ![]() ![]() ![]() ![]() |
Timing | |||||||
![]() ![]() ![]() ![]() ![]() |
ContactDetail | |||||||
![]() ![]() ![]() ![]() ![]() |
Contributor | |||||||
![]() ![]() ![]() ![]() ![]() |
DataRequirement | |||||||
![]() ![]() ![]() ![]() ![]() |
Expression | |||||||
![]() ![]() ![]() ![]() ![]() |
ParameterDefinition | |||||||
![]() ![]() ![]() ![]() ![]() |
RelatedArtifact | |||||||
![]() ![]() ![]() ![]() ![]() |
TriggerDefinition | |||||||
![]() ![]() ![]() ![]() ![]() |
UsageContext | |||||||
![]() ![]() ![]() ![]() ![]() |
Dosage | |||||||
![]() ![]() ![]() ![]() ![]() |
Meta | |||||||
![]() ![]() ![]() |
C | 1..1 | BackboneElement | The Questionnaire to complete, as a versioned canonical | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Label for the input Binding Description: (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: | |||||
![]() ![]() ![]() ![]() |
1..1 | canonical(Ohh Questionnaire Profile) | url | |||||
![]() ![]() ![]() |
0..* | BackboneElement | Information used to perform task | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Label for the input Binding Description: (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: | |||||
![]() ![]() ![]() ![]() |
1..1 | url | url | |||||
![]() ![]() |
0..* | BackboneElement | Information produced as part of task Slice: Unordered, Open by pattern:type Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |||||
![]() ![]() ![]() |
Content/Rules for all slices | |||||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Label for output Binding Description: (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. | |||||
![]() ![]() ![]() ![]() |
1..1 | Result of output | ||||||
![]() ![]() ![]() ![]() ![]() |
base64Binary | |||||||
![]() ![]() ![]() ![]() ![]() |
boolean | |||||||
![]() ![]() ![]() ![]() ![]() |
canonical(Any) | |||||||
![]() ![]() ![]() ![]() ![]() |
code | |||||||
![]() ![]() ![]() ![]() ![]() |
date | |||||||
![]() ![]() ![]() ![]() ![]() |
dateTime | |||||||
![]() ![]() ![]() ![]() ![]() |
decimal | |||||||
![]() ![]() ![]() ![]() ![]() |
id | |||||||
![]() ![]() ![]() ![]() ![]() |
instant | |||||||
![]() ![]() ![]() ![]() ![]() |
integer | |||||||
![]() ![]() ![]() ![]() ![]() |
markdown | |||||||
![]() ![]() ![]() ![]() ![]() |
oid | |||||||
![]() ![]() ![]() ![]() ![]() |
positiveInt | |||||||
![]() ![]() ![]() ![]() ![]() |
string | |||||||
![]() ![]() ![]() ![]() ![]() |
time | |||||||
![]() ![]() ![]() ![]() ![]() |
unsignedInt | |||||||
![]() ![]() ![]() ![]() ![]() |
uri | |||||||
![]() ![]() ![]() ![]() ![]() |
url | |||||||
![]() ![]() ![]() ![]() ![]() |
uuid | |||||||
![]() ![]() ![]() ![]() ![]() |
Address | |||||||
![]() ![]() ![]() ![]() ![]() |
Age | |||||||
![]() ![]() ![]() ![]() ![]() |
Annotation | |||||||
![]() ![]() ![]() ![]() ![]() |
Attachment | |||||||
![]() ![]() ![]() ![]() ![]() |
CodeableConcept | |||||||
![]() ![]() ![]() ![]() ![]() |
Coding | |||||||
![]() ![]() ![]() ![]() ![]() |
ContactPoint | |||||||
![]() ![]() ![]() ![]() ![]() |
Count | |||||||
![]() ![]() ![]() ![]() ![]() |
Distance | |||||||
![]() ![]() ![]() ![]() ![]() |
Duration | |||||||
![]() ![]() ![]() ![]() ![]() |
HumanName | |||||||
![]() ![]() ![]() ![]() ![]() |
Identifier | |||||||
![]() ![]() ![]() ![]() ![]() |
Money | |||||||
![]() ![]() ![]() ![]() ![]() |
Period | |||||||
![]() ![]() ![]() ![]() ![]() |
Quantity | |||||||
![]() ![]() ![]() ![]() ![]() |
Range | |||||||
![]() ![]() ![]() ![]() ![]() |
Ratio | |||||||
![]() ![]() ![]() ![]() ![]() |
Reference(Any) | |||||||
![]() ![]() ![]() ![]() ![]() |
SampledData | |||||||
![]() ![]() ![]() ![]() ![]() |
Signature | |||||||
![]() ![]() ![]() ![]() ![]() |
Timing | |||||||
![]() ![]() ![]() ![]() ![]() |
ContactDetail | |||||||
![]() ![]() ![]() ![]() ![]() |
Contributor | |||||||
![]() ![]() ![]() ![]() ![]() |
DataRequirement | |||||||
![]() ![]() ![]() ![]() ![]() |
Expression | |||||||
![]() ![]() ![]() ![]() ![]() |
ParameterDefinition | |||||||
![]() ![]() ![]() ![]() ![]() |
RelatedArtifact | |||||||
![]() ![]() ![]() ![]() ![]() |
TriggerDefinition | |||||||
![]() ![]() ![]() ![]() ![]() |
UsageContext | |||||||
![]() ![]() ![]() ![]() ![]() |
Dosage | |||||||
![]() ![]() ![]() ![]() ![]() |
Meta | |||||||
![]() ![]() ![]() |
0..1 | BackboneElement | The QuestionnaireResponse addressed to your client, once the task is completed | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Label for output Binding Description: (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: | |||||
![]() ![]() ![]() ![]() |
1..1 | Reference(QuestionnaireResponse) | url | |||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| Task.meta.security | Base | extensible | SecurityLabels | 📍4.0.1 | FHIR Std. |
| Task.meta.tag | Base | example | Common Tags | 📍4.0.1 | FHIR Std. |
| Task.language | Base | preferred | Common Languages | 📦4.0.1 | FHIR Std. |
| Task.status | Base | required | OHH Task Status Value Set | 📦0.1.0 | This IG |
| Task.statusReason | Base | example | Not State | Unknown | |
| Task.businessStatus | Base | example | Not State | Unknown | |
| Task.intent | Base | required | TaskIntent | 📍4.0.1 | FHIR Std. |
| Task.priority | Base | required | Request priority | 📍4.0.1 | FHIR Std. |
| Task.code | Base | required | SDC Task Code | 📦3.0.0 | Structured Data Capture v3.0 |
| Task.performerType | Base | preferred | Procedure Performer Role Codes | 📦4.0.1 | FHIR Std. |
| Task.reasonCode | Base | example | Not State | Unknown | |
| Task.input.type | Base | example | Not State | Unknown | |
| Task.input:questionnaire.type | Base | example | Not State | Unknown | |
| Task.input:responseEndpoint.type | Base | example | Not State | Unknown | |
| Task.output.type | Base | example | Not State | Unknown | |
| Task.output:response.type | Base | example | Not State | Unknown |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | Task | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Task | If 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-4 | error | Task | If 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-5 | error | Task | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Task | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| inv-1 | error | Task | Last modified date must be greater than or equal to authored-on date. |
lastModified.exists().not() or authoredOn.exists().not() or lastModified >= authoredOn
|
| sdc-t1 | error | Task | Either code is 'fulfill', focus is ServiceRequest and no 'questionnaire' input; or code is 'complete-questionnaire', focus is omitted and 'questionnaire' input is present |
(code.coding.where(code='fulfill' and system='http://hl7.org/fhir/CodeSystem/task-code').exists() and (focus.resolve() is ServiceRequest) and input.where(type.coding.where(system='http://hl7.org/fhir/uv/sdc/CodeSystem/temp' and code='questionnaire')).exists().not()) or (code.coding.where(code='complete-questionnaire' and system='http://hl7.org/fhir/uv/sdc/CodeSystem/temp').exists() and focus.exists().not() and input.where(type.coding.where(system='http://hl7.org/fhir/uv/sdc/CodeSystem/temp' and code='questionnaire')).exists())
|
This structure is derived from SDCTaskQuestionnaire
Other representations of profile: CSV, Excel, Schematron
A Task can be retrieved by its id: GET Task/<id>. A Task of a deleted CarePlan returns 410 Gone, an unknown Task returns
404 Not Found and a Task of a CarePlan your client has no access to returns 403 Forbidden.
Multiple Tasks can be retrieved by searching for them using a GET request on the search parameters of the
CapabilityStatement, which can be combined. This returns a Bundle with links to the
current, previous and next pages (if any). Searching on a CarePlan your client has no access to returns 403 Forbidden; an unknown status
or code returns 400 Bad Request. Results are sorted newest first, _sort=authored-on sorts them oldest first. Pages contain 25 Tasks by
default and at most 50.
The status of a questionnaire task cannot be updated: it is completed by
submitting a QuestionnaireResponse and fails automatically when the due date
passes. An update returns 422 Unprocessable Entity. Only the status of a notification task
can be updated.
Instead of polling for changes, you can create a Subscription on Task to be notified when a Task is created or its status changes.