## Union of http://hl7.org/fhir/us/davinci-cdex/StructureDefinition/cdex-task-attachment-request and http://hl7.org/fhir/us/davinci-cdex/StructureDefinition/cdex-task-attachment-request

This is the set of resources that conform to either of the profiles CDex Task Attachment Request Profile (http://hl7.org/fhir/us/davinci-cdex/StructureDefinition/cdex-task-attachment-request) and CDex Task Attachment Request Profile (http://hl7.org/fhir/us/davinci-cdex/StructureDefinition/cdex-task-attachment-request). E.g. what you have to deal with if you get resources conforming to one of them

### Structure

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Task | C | 0..* |  | A task to be performed dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources dom-3: 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 dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated dom-5: If a resource is contained in another resource, it SHALL NOT have a security label dom-6: A resource should have narrative for robust management inv-1: Last modified date must be greater than or equal to authored-on date. cdex-1: The "service-date" input SHALL be present if the attachment is for a claim. cdex-4: If code = "attachment-request-code", must have one or more "code" inputs. cdex-5: If code = "attachment-request-questionnaire", must have one "questionnaire" input. cdex-6: Must only have "code" inputs or one "questionnaire" input not both. cdex-10: If code = "attachment-request-questionnaire" and status = "completed", should have one "questionnaire-response" output referencing the QuestionnaireResponse. tdr-2: Task statusReason SHALL be populated if status is 'rejected' or 'failed'
meta | Σ | 0..1 | Meta | Metadata about the resource ele-1: All FHIR elements must have a @value or children
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created ele-1: All FHIR elements must have a @value or children
language |  | 0..1 | code | Language of the resource content Binding: ?? (preferred): A human language. ele-1: All FHIR elements must have a @value or children
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation ele-1: All FHIR elements must have a @value or children
contained | S | 1..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
identifier | S | 1..* | Identifier | Task Instance Identifier ele-1: All FHIR elements must have a @value or children
instantiatesCanonical | Σ | 0..1 | canonical(ActivityDefinition) | Formal definition of task ele-1: All FHIR elements must have a @value or children
instantiatesUri | Σ | 0..1 | uri | Formal definition of task ele-1: All FHIR elements must have a @value or children
basedOn | Σ | 0..* | Reference(Resource) | Request fulfilled by this task ele-1: All FHIR elements must have a @value or children
groupIdentifier | Σ | 0..1 | Identifier | Requisition or grouper id ele-1: All FHIR elements must have a @value or children
partOf | Σ | 0..* | Reference(Task) | Composite task ele-1: All FHIR elements must have a @value or children
status | ?!S Σ | 1..1 | code | draft | requested | received | accepted | + Binding: ?? (required) ele-1: All FHIR elements must have a @value or children
statusReason | S Σ | 0..1 | CodeableConcept | Reason for current status Binding Description (No ValueSet): (example): Codes to identify the reason for current status. These will typically be specific to a particular workflow. ele-1: All FHIR elements must have a @value or children
extension |  | 0..* | Extension | Additional content defined by implementations ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
coding | Σ | 0..* | Coding | Code defined by a terminology system ele-1: All FHIR elements must have a @value or children
text | S Σ | 1..1 | string | Plain text representation of the concept ele-1: All FHIR elements must have a @value or children
businessStatus | Σ | 0..1 | CodeableConcept | E.g. "Specimen collected", "IV prepped" Binding Description (No ValueSet): (example): The domain-specific business-contextual sub-state of the task. For example: "Blood drawn", "IV inserted", "Awaiting physician signature", etc. ele-1: All FHIR elements must have a @value or children
intent | S Σ | 1..1 | code | unknown | proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option Binding: ?? (required): Distinguishes whether the task is a proposal, plan or full order. ele-1: All FHIR elements must have a @value or children
priority |  | 0..1 | code | routine | urgent | asap | stat Binding: ?? (required): The task's priority. ele-1: All FHIR elements must have a @value or children
code | S Σ | 1..1 | CodeableConcept | attachment-request-code | attachment-request-questionnaire Binding: ?? (required) ele-1: All FHIR elements must have a @value or children
extension |  | 0..* | Extension | Additional content defined by implementations ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
coding | S Σ | 1..* | Coding | Code defined by a terminology system ele-1: All FHIR elements must have a @value or children
extension |  | 0..* | Extension | Additional content defined by implementations ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
system | S Σ | 0..1 | uri | Identity of the terminology system ele-1: All FHIR elements must have a @value or children
version | Σ | 0..1 | string | Version of the system - if relevant ele-1: All FHIR elements must have a @value or children
code | S Σ | 1..1 | code | Symbol in syntax defined by the system ele-1: All FHIR elements must have a @value or children
display | Σ | 0..1 | string | Representation defined by the system ele-1: All FHIR elements must have a @value or children
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user ele-1: All FHIR elements must have a @value or children
text | Σ | 0..1 | string | Plain text representation of the concept ele-1: All FHIR elements must have a @value or children
description | Σ | 0..1 | string | Human-readable explanation of task ele-1: All FHIR elements must have a @value or children
focus | Σ | 0..1 | Reference(Resource) | What task is acting on ele-1: All FHIR elements must have a @value or children
for | S Σ | 1..1 | Reference(CDex Patient Demographics Profile | #sd-cdex-patient-demographics-cdex-patient-demographics) {c} | Contained Patient. ele-1: All FHIR elements must have a @value or children
extension |  | 0..* | Extension | Additional content defined by implementations ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
reference | S Σ | 1..1 | string | Contained resource reference ele-1: All FHIR elements must have a @value or children
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ?? (extensible): Aa resource (or, for logical models, the URI of the logical model). ele-1: All FHIR elements must have a @value or children
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known ele-1: All FHIR elements must have a @value or children
display | Σ | 0..1 | string | Text alternative for the resource ele-1: All FHIR elements must have a @value or children
encounter | Σ | 0..1 | Reference(Encounter) | Healthcare event during which this task originated ele-1: All FHIR elements must have a @value or children
executionPeriod | Σ | 0..1 | Period | Start and end time of execution ele-1: All FHIR elements must have a @value or children
authoredOn |  | 0..1 | dateTime | Task Creation Date ele-1: All FHIR elements must have a @value or children
lastModified | Σ | 0..1 | dateTime | Task Last Modified Date ele-1: All FHIR elements must have a @value or children
requester | S Σ | 1..1 | Reference(US Core Organization Profile) | Payer asking for attachments ele-1: All FHIR elements must have a @value or children
extension |  | 0..* | Extension | Additional content defined by implementations ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
reference | Σ | 0..1 | string | Literal reference, Relative, internal or absolute URL ele-1: All FHIR elements must have a @value or children
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ?? (extensible): Aa resource (or, for logical models, the URI of the logical model). ele-1: All FHIR elements must have a @value or children
identifier | S Σ | 1..1 | Identifier | Payer ID ele-1: All FHIR elements must have a @value or children
display | Σ | 0..1 | string | Text alternative for the resource ele-1: All FHIR elements must have a @value or children
performerType |  | 0..* | CodeableConcept | Requested performer Binding: ?? (preferred): The type(s) of task performers allowed. ele-1: All FHIR elements must have a @value or children
owner | S Σ | 1..1 | Reference(CDex PractitionerRole Profile | #sd-cdex-practitionerrole-cdex-practitionerrole) {c} | Provider who submitted claim or preauthorization ele-1: All FHIR elements must have a @value or children
extension |  | 0..* | Extension | Additional content defined by implementations ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
reference | S Σ | 1..1 | string | Contained resource reference ele-1: All FHIR elements must have a @value or children
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ?? (extensible): Aa resource (or, for logical models, the URI of the logical model). ele-1: All FHIR elements must have a @value or children
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known ele-1: All FHIR elements must have a @value or children
display | Σ | 0..1 | string | Text alternative for the resource ele-1: All FHIR elements must have a @value or children
location | Σ | 0..1 | Reference(Location) | Where task occurs ele-1: All FHIR elements must have a @value or children
reasonCode | S | 1..1 | CodeableConcept | Why task is needed Binding Description (No ValueSet): (example): Indicates why the task is needed. E.g. Suspended because patient admitted to hospital. ele-1: All FHIR elements must have a @value or children
extension |  | 0..* | Extension | Additional content defined by implementations ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
coding | S Σ | 1..* | Coding | Code defined by a terminology system ele-1: All FHIR elements must have a @value or children
text | S Σ | 0..1 | string | claim | preauthorization Binding: ?? (required) ele-1: All FHIR elements must have a @value or children
reasonReference | S | 1..1 | Reference(Resource) | Why task is needed ele-1: All FHIR elements must have a @value or children
extension |  | 0..* | Extension | Additional content defined by implementations ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
reference | Σ | 0..1 | string | Literal reference, Relative, internal or absolute URL ele-1: All FHIR elements must have a @value or children
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ?? (extensible): Aa resource (or, for logical models, the URI of the logical model). ele-1: All FHIR elements must have a @value or children
identifier | S Σ | 1..1 | Identifier | Claim or Prior Authorization ID ele-1: All FHIR elements must have a @value or children
display | Σ | 0..1 | string | Text alternative for the resource ele-1: All FHIR elements must have a @value or children
insurance |  | 0..* | Reference(Coverage | ClaimResponse) | Associated insurance coverage ele-1: All FHIR elements must have a @value or children
note |  | 0..* | Annotation | Comments made about the task ele-1: All FHIR elements must have a @value or children
relevantHistory |  | 0..* | Reference(Provenance) | Key events in history of the Task ele-1: All FHIR elements must have a @value or children
restriction | S | 0..1 | BackboneElement | Constraints on fulfillment tasks ele-1: All FHIR elements must have a @value or children
extension |  | 0..* | Extension | Additional content defined by implementations ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
repetitions |  | 0..1 | positiveInt | How many times to repeat ele-1: All FHIR elements must have a @value or children
period | S | 0..1 | Period | Attachments due date ele-1: All FHIR elements must have a @value or children
recipient |  | 0..* | Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Group | Organization) | For whom is fulfillment sought? ele-1: All FHIR elements must have a @value or children
input | S | 2..* | BackboneElement | Information used to perform task ele-1: All FHIR elements must have a @value or children
extension |  | 0..* | Extension | Additional content defined by implementations ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
type |  | 1..1 | CodeableConcept | Label for the input Binding Description (No ValueSet): (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. ele-1: All FHIR elements must have a @value or children
value[x] |  | 1..1 |  | Content to use in performing the task ele-1: All FHIR elements must have a @value or children
valueBase64Binary |  |  | base64Binary |
valueBoolean |  |  | boolean |
valueCanonical |  |  | canonical(Any) |
valueCode |  |  | code |
valueDate |  |  | date |
valueDateTime |  |  | dateTime |
valueDecimal |  |  | decimal |
valueId |  |  | id |
valueInstant |  |  | instant |
valueInteger |  |  | integer |
valueMarkdown |  |  | markdown |
valueOid |  |  | oid |
valuePositiveInt |  |  | positiveInt |
valueString |  |  | string |
valueTime |  |  | time |
valueUnsignedInt |  |  | unsignedInt |
valueUri |  |  | uri |
valueUrl |  |  | url |
valueUuid |  |  | uuid |
valueAddress |  |  | Address |
valueAge |  |  | Age |
valueAnnotation |  |  | Annotation |
valueAttachment |  |  | Attachment |
valueCodeableConcept |  |  | CodeableConcept |
valueCoding |  |  | Coding |
valueContactPoint |  |  | ContactPoint |
valueCount |  |  | Count |
valueDistance |  |  | Distance |
valueDuration |  |  | Duration |
valueHumanName |  |  | HumanName |
valueIdentifier |  |  | Identifier |
valueMoney |  |  | Money |
valuePeriod |  |  | Period |
valueQuantity |  |  | Quantity |
valueRange |  |  | Range |
valueRatio |  |  | Ratio |
valueReference |  |  | Reference(Any) |
valueSampledData |  |  | SampledData |
valueSignature |  |  | Signature |
valueTiming |  |  | Timing |
valueContactDetail |  |  | ContactDetail |
valueContributor |  |  | Contributor |
valueDataRequirement |  |  | DataRequirement |
valueExpression |  |  | Expression |
valueParameterDefinition |  |  | ParameterDefinition |
valueRelatedArtifact |  |  | RelatedArtifact |
valueTriggerDefinition |  |  | TriggerDefinition |
valueUsageContext |  |  | UsageContext |
valueDosage |  |  | Dosage |
valueMeta |  |  | Meta |
output |  | 0..* | BackboneElement | Information produced as part of task ele-1: All FHIR elements must have a @value or children
extension |  | 0..* | Extension | Additional content defined by implementations ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
type |  | 1..1 | CodeableConcept | Label for output Binding Description (No ValueSet): (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. ele-1: All FHIR elements must have a @value or children
value[x] |  | 1..1 |  | Result of output ele-1: All FHIR elements must have a @value or children
valueBase64Binary |  |  | base64Binary |
valueBoolean |  |  | boolean |
valueCanonical |  |  | canonical(Any) |
valueCode |  |  | code |
valueDate |  |  | date |
valueDateTime |  |  | dateTime |
valueDecimal |  |  | decimal |
valueId |  |  | id |
valueInstant |  |  | instant |
valueInteger |  |  | integer |
valueMarkdown |  |  | markdown |
valueOid |  |  | oid |
valuePositiveInt |  |  | positiveInt |
valueString |  |  | string |
valueTime |  |  | time |
valueUnsignedInt |  |  | unsignedInt |
valueUri |  |  | uri |
valueUrl |  |  | url |
valueUuid |  |  | uuid |
valueAddress |  |  | Address |
valueAge |  |  | Age |
valueAnnotation |  |  | Annotation |
valueAttachment |  |  | Attachment |
valueCodeableConcept |  |  | CodeableConcept |
valueCoding |  |  | Coding |
valueContactPoint |  |  | ContactPoint |
valueCount |  |  | Count |
valueDistance |  |  | Distance |
valueDuration |  |  | Duration |
valueHumanName |  |  | HumanName |
valueIdentifier |  |  | Identifier |
valueMoney |  |  | Money |
valuePeriod |  |  | Period |
valueQuantity |  |  | Quantity |
valueRange |  |  | Range |
valueRatio |  |  | Ratio |
valueReference |  |  | Reference(Any) |
valueSampledData |  |  | SampledData |
valueSignature |  |  | Signature |
valueTiming |  |  | Timing |
valueContactDetail |  |  | ContactDetail |
valueContributor |  |  | Contributor |
valueDataRequirement |  |  | DataRequirement |
valueExpression |  |  | Expression |
valueParameterDefinition |  |  | ParameterDefinition |
valueRelatedArtifact |  |  | RelatedArtifact |
valueTriggerDefinition |  |  | TriggerDefinition |
valueUsageContext |  |  | UsageContext |
valueDosage |  |  | Dosage |
valueMeta |  |  | Meta |
Documentation for this format