Projo FHIR Documentation
0.1.0 - ci-build
Projo FHIR Documentation - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
| Draft as of 2024-01-01 |
Definitions for the projo-communication-request resource profile.
Guidance on how to interpret the contents of this table can be foundhere
| 0. CommunicationRequest | |
| Definition | A request to convey information; e.g. the CDS system proposes that an alert be sent to a responsible provider, the CDS system proposes that the public health agency be notified about a reportable condition. |
| Short | Orchestrator<->sidecar / orchestrator<->web contractA request for information to be sent to a receiver |
| Control | 0..* |
| Is Modifier | false |
| Summary | false |
| Invariants | dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources (contained.contained.empty()) 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 (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: 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: If a resource is contained in another resource, it SHALL NOT have a security label (contained.meta.security.empty()) dom-6: A resource should have narrative for robust management (text.`div`.exists()) |
| 2. CommunicationRequest.implicitRules | |
| Definition | A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc. |
| Short | A set of rules under which this content was created |
| Comments | Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc. |
| Control | 0..1 |
| Type | uri |
| Is Modifier | true because This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Summary | true |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 4. CommunicationRequest.extension | |
| Definition | An Extension May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. |
| Short | ExtensionAdditional content defined by implementations |
| Comments | There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists()) |
| Slicing | This element introduces a set of slices on CommunicationRequest.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 6. CommunicationRequest.extension:webAnswerToken | |
| Slice Name | webAnswerToken |
| Definition | Present on web CRs (medium=web). Set by the orchestrator at dispatch time. Read by web-functions to validate the bearer token on the POST that submits the QR. |
| Short | SHA-256 bearer token hash (web channel, ADR 0011) |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | Extension(Web Answer Token) (Extension Type: string) |
| Is Modifier | false |
| Summary | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists())ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists()) |
| 8. CommunicationRequest.extension:nextReminderTimestamp | |
| Slice Name | nextReminderTimestamp |
| Definition | Present on outbound CRs. Set by handleTaskDue at dispatch: deliveryTime + REMINDER_THRESHOLD_MINUTES (default 60). Updated by the sweeper in three scenarios: (1) bootstrap if absent (CR.meta.lastUpdated + threshold); (2) reset when the patient is active (last-inbound-message-timestamp + threshold); (3) advanced after a successful reminder send (last reminder completion + REMINDER_INTERVAL_MINUTES default 24h). Read only by the orchestrator sweeper; the sidecar never reads or writes this extension. |
| Short | Orchestrator-owned reminder schedule |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | Extension(Next Reminder Timestamp) (Extension Type: dateTime) |
| Is Modifier | false |
| Summary | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists())ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists()) |
| 10. CommunicationRequest.extension:lastInboundMessageTimestamp | |
| Slice Name | lastInboundMessageTimestamp |
| Definition | Present on outbound CRs after the first inbound reply. Set by the sidecar's stampLastActivity on every patient interaction (answer, constraint re-prompt, resume signal). Read by the orchestrator sweeper to reset the reminder schedule when the patient is active. Best-effort: a missed stamp means a reminder might fire one cycle early, which is self-correcting on the next interaction. |
| Short | Sidecar-owned transport stamp |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | Extension(Last Inbound Message Timestamp) (Extension Type: dateTime) |
| Is Modifier | false |
| Summary | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists())ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists()) |
| 12. CommunicationRequest.extension:webAnswerLink | |
| Slice Name | webAnswerLink |
| Definition | Present on web CRs. Set by the orchestrator at dispatch time. Read by the sidecar to embed in the WhatsApp invitation template payload so the patient can click through to the browser. |
| Short | Web answer hosting URL |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | Extension(Web Answer Link) (Extension Type: url) |
| Is Modifier | false |
| Summary | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists())ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists()) |
| 14. CommunicationRequest.extension:inboundSenderBsuid | |
| Slice Name | inboundSenderBsuid |
| Definition | Present on reverse CRs. Set by the sidecar from the Meta webhook's from_user_id. Read by the orchestrator to resolve identity (scanSenderIdentities by BSUID). BSUID persists across phone-number changes. |
| Short | Reverse CR: sender BSUID |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | Extension(Inbound Sender BSUID) (Extension Type: string) |
| Is Modifier | false |
| Summary | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists())ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists()) |
| 16. CommunicationRequest.extension:inboundSenderProfileName | |
| Slice Name | inboundSenderProfileName |
| Definition | Present on reverse CRs. Set by the sidecar from the Meta webhook's contacts.profile.name. Read by the orchestrator as a hint for identity resolution and as input to Patient.name when creating a new Patient. |
| Short | Reverse CR: sender profile name |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | Extension(Inbound Sender Profile Name) (Extension Type: string) |
| Is Modifier | false |
| Summary | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists())ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists()) |
| 18. CommunicationRequest.extension:inboundBusinessPhone | |
| Slice Name | inboundBusinessPhone |
| Definition | Present on reverse CRs. Set by the sidecar from the Meta webhook's metadata.phone_number_id. Read by the orchestrator to upsert a stub Organization on the unresolved-receiver path. |
| Short | Reverse CR: receiving business phone (E.164) |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | Extension(Inbound Business Phone) (Extension Type: string) |
| Is Modifier | false |
| Summary | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists())ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists()) |
| 20. CommunicationRequest.extension:inboundBusinessPhoneId | |
| Slice Name | inboundBusinessPhoneId |
| Definition | Present on reverse CRs. Set by the sidecar. Read by the orchestrator to cache wa-phone-number-id onto the upserted stub Organization. |
| Short | Reverse CR: receiving phone number ID |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | Extension(Inbound Business Phone ID) (Extension Type: string) |
| Is Modifier | false |
| Summary | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists())ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists()) |
| 22. CommunicationRequest.extension:inboundMessageTimestamp | |
| Slice Name | inboundMessageTimestamp |
| Definition | Present on reverse CRs. Set by the sidecar from the Meta webhook timestamp. Preserves the original event time across identity-resolution latency. |
| Short | Reverse CR: original event timestamp |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | Extension(Inbound Message Timestamp) (Extension Type: dateTime) |
| Is Modifier | false |
| Summary | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists())ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists()) |
| 24. CommunicationRequest.extension:identityResolutionReason | |
| Slice Name | identityResolutionReason |
| Definition | Present on reverse CRs. Set by the sidecar. Codes: no-match, multiple-matches, non-conversational-only, no-active-cr, unresolved-receiver. Read by the orchestrator to decide its response (create identity, refuse, walk Person.link, reattach, upsert stub Organization). |
| Short | Reverse CR: reason code |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | Extension(Identity Resolution Reason) (Extension Type: code) |
| Is Modifier | false |
| Summary | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists())ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists()) |
| 26. CommunicationRequest.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself). |
| Short | Extensions that cannot be ignored |
| Comments | There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them |
| Summary | false |
| Requirements | Modifier extensions allow for extensions that cannot be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the definition of modifier extensions. |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists()) |
| 28. CommunicationRequest.identifier | |
| Definition | Present on reverse CRs for dedup. Set by the sidecar from the inbound sender's phone and/or BSUID. Used with If-None-Exist conditional create to prevent duplicate reverse CRs for the same sender. Business identifiers assigned to this communication request by the performer or other systems which remain constant as the resource is updated and propagates from server to server. |
| Short | inbound-sender-phone and/or whatsapp-bsuid (reverse CR dedup)Unique identifier |
| Comments | This is a business identifier, not a resource identifier (see discussion). It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types. For example, multiple Patient and a Person resource instance might share the same social insurance number. |
| Note | This is a business identifier, not a resource identifier (see discussion) |
| Control | 0..* |
| Type | Identifier |
| Is Modifier | false |
| Summary | true |
| Requirements | Allows identification of the communication request as it is known by various participating systems and in a way that remains consistent across servers. |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 30. CommunicationRequest.status | |
| Definition | Outbound CRs: set to 'active' by handleTaskDue at dispatch; promoted to 'completed' by the sidecar when the QR finishes; revoked by the orchestrator sweeper when the deadline or reminder cap is reached. Reverse CRs: set to 'active' by the sidecar; promoted to 'completed' by the orchestrator on successful resolution; set to 'entered-in-error' on multiple-matches. Reminder CRs: set to 'active' by the sweeper; promoted to 'completed' by the sidecar after sending the template. Web CRs: set to 'active' by the orchestrator; promoted to 'completed' by web-functions on browser POST; revoked by the session sweeper on TTL expiry. The status of the proposal or order. |
| Short | active | completed | revoked | entered-in-errordraft | active | on-hold | revoked | completed | entered-in-error | unknown |
| Control | 1..1 |
| Binding | The codes SHALL be taken from RequestStatushttp://hl7.org/fhir/ValueSet/request-status|4.0.1 (required to http://hl7.org/fhir/ValueSet/request-status|4.0.1)The status of the communication request. |
| Type | code |
| Is Modifier | true because This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid. |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Summary | true |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 32. CommunicationRequest.category | |
| Definition | Only set on reverse CRs (category=identity-resolution-required, written by the sidecar) and reminder CRs (category=reminder, written by the orchestrator sweeper). Absent on standard outbound CRs. Read by the Subscription criteria to route CRs to the correct queue. The type of message to be sent such as alert, notification, reminder, instruction, etc. |
| Short | identity-resolution-required (reverse CR) | reminder (reminder CR)Message category |
| Comments | There may be multiple axes of categorization and one communication request may serve multiple purposes. |
| Control | 0..1* |
| Binding | For example codes, see CommunicationCategoryhttp://hl7.org/fhir/ValueSet/communication-category|4.0.1 (example to http://hl7.org/fhir/ValueSet/communication-category|4.0.1)Codes for general categories of communications such as alerts, instruction, etc. |
| Type | CodeableConcept |
| Is Modifier | false |
| Summary | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 34. CommunicationRequest.doNotPerform | |
| Definition | If true indicates that the CommunicationRequest is asking for the specified action to not occur. |
| Short | True if request is prohibiting action |
| Comments | The attributes provided with the request qualify what is not to be done. |
| Control | 0..1 |
| Type | boolean |
| Is Modifier | true because If true this element negates the specified action. For Example, instead of a request for a communication, it is a request for the communication to not occur. |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Summary | true |
| Alternate Names | prohibited |
| Meaning if Missing | If do not perform is not specified, the request is a positive request e.g. "do perform" |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 36. CommunicationRequest.medium | |
| Definition | Always present. Set by handleTaskDue from COMMUNICATION_MEDIUM_CODE (default 'whatsapp'). The sidecar's cr-events Subscription filters on medium=whatsapp; web CRs are delivered via a separate path. Configurable via COMMUNICATION_MEDIUM_SYSTEM and COMMUNICATION_MEDIUM_CODE. A channel that was used for this communication (e.g. email, fax). |
| Short | whatsapp | web (communication-medium code system)A channel of communication |
| Control | 10..* |
| Binding | For example codes, see ParticipationModehttp://terminology.hl7.org/ValueSet/v3-ParticipationMode (example to http://terminology.hl7.org/ValueSet/v3-ParticipationMode)Codes for communication mediums such as phone, fax, email, in person, etc. |
| Type | CodeableConcept |
| Is Modifier | false |
| Summary | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 38. CommunicationRequest.medium.coding | |
| Definition | A reference to a code defined by a terminology system. |
| Short | Code defined by a terminology system |
| Comments | Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true. |
| Control | 10..* |
| Type | Coding |
| Is Modifier | false |
| Summary | true |
| Requirements | Allows for alternative encodings within a code system, and translations to other code systems. |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 40. CommunicationRequest.medium.coding.system | |
| Definition | The identification of the code system that defines the meaning of the symbol in the code. |
| Short | Identity of the terminology system |
| Comments | The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously. |
| Control | 10..1 |
| Type | uri |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Summary | true |
| Requirements | Need to be unambiguous about the source of the definition of the symbol. |
| Fixed Value | https://firearrow.io/fhir/CodeSystem/communication-medium |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 42. CommunicationRequest.medium.coding.code | |
| Definition | A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination). |
| Short | Symbol in syntax defined by the system |
| Control | 10..1 |
| Binding | The codes SHALL be taken from For codes, see Fire Arrow Communication Medium Value Set (required to https://projo.evoleen.com/fhir/ValueSet/communication-medium-vs) |
| Type | code |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Summary | true |
| Requirements | Need to refer to a particular code in the system. |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 44. CommunicationRequest.subject | |
| Definition | Present on outbound CRs: set by handleTaskDue to Task.for. May be absent on reverse CRs where the identity is unresolved. The patient or group that is the focus of this communication request. |
| Short | Same as Task.for (outbound CRs)Focus of message |
| Control | 0..1 |
| Type | Reference(Patient, Group) |
| Is Modifier | false |
| Summary | false |
| Alternate Names | patient |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 46. CommunicationRequest.about | |
| Definition | Outbound CRs: set by handleTaskDue to the originating Task reference. Reverse CRs: set by the sidecar to sender hint resources. Not indexed by HAPI (HAPI-0524); the Task↔CR link is carried on Task.output instead. Other resources that pertain to this communication request and to which this communication request should be associated. |
| Short | Task reference (outbound CR) or sender hints (reverse CR)Resources that pertain to this communication request |
| Comments | Don't use CommunicationRequest.about element when a more specific element exists, such as basedOn, reasonReference, or replaces. |
| Control | 0..* |
| Type | Reference(Resource) |
| Is Modifier | false |
| Summary | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 48. CommunicationRequest.payload | |
| Definition | Outbound CRs: initial payload set by handleTaskDue to the Questionnaire reference (contentReference). The sidecar appends the QuestionnaireResponse reference once the QR is created (ensureCRPayloadCarriesQRRef). Reverse CRs: payload set by the sidecar to the inbound message text (contentString). The CR↔QR link lives here because QuestionnaireResponse.basedOn is NOT used (HAPI rejects non-CarePlan/ServiceRequest basedOn with HAPI-0931). Text, attachment(s), or resource(s) to be communicated to the recipient. |
| Short | Questionnaire ref (initial), QuestionnaireResponse ref (appended by sidecar), or text (reverse CR)Message payload |
| Control | 10..* |
| Type | BackboneElement |
| Is Modifier | false |
| Summary | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 50. CommunicationRequest.payload.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | Modifier extensions allow for extensions that cannot be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the definition of modifier extensions. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists()) |
| 52. CommunicationRequest.payload.content[x] | |
| Definition | The communicated content (or for multi-part communications, one portion of the communication). |
| Short | Message part content |
| Control | 1..1 |
| Type | Choice of: string, Attachment, Reference(Resource) |
| [x] Note | SeeChoice of Data Typesfor further information about how to use [x] |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Summary | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on CommunicationRequest.payload.content[x]. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 54. CommunicationRequest.payload.content[x]:contentReference | |
| Slice Name | contentReference |
| Definition | The communicated content (or for multi-part communications, one portion of the communication). |
| Short | Message part content |
| Comments | CRUCIAL: QuestionnaireResponse.basedOn is NOT used (HAPI rejects non-CarePlan/ServiceRequest basedOn with HAPI-0931). The CR<->QR link lives on cr.payload[].contentReference. |
| Control | 01..1 |
| Type | Reference(Resource, Resource), string, Attachment |
| [x] Note | SeeChoice of Data Typesfor further information about how to use [x] |
| Is Modifier | false |
| Summary | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 56. CommunicationRequest.occurrence[x] | |
| Definition | The time when this communication is to occur. |
| Short | When scheduled |
| Control | 0..1 |
| Type | Choice of: dateTime, Period |
| [x] Note | SeeChoice of Data Typesfor further information about how to use [x] |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Summary | true |
| Alternate Names | timing |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on CommunicationRequest.occurrence[x]. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 58. CommunicationRequest.occurrence[x]:occurrencePeriod | |
| Slice Name | occurrencePeriod |
| Definition | Present on outbound CRs. Computed by buildDeliveryAnchoredPeriod: start = deliveryTime (when the CR was actually dispatched, not the scheduled time); end = deliveryTime + intended window length (restriction.period.end - restriction.period.start, or TASK_DEFAULT_RESPONSE_WINDOW_MINUTES default 24h). Absent on reminder CRs and reverse CRs. Read by the deadline sweeper to auto-revoke CRs past their response window. The time when this communication is to occur. |
| Short | Delivery-anchored response windowWhen scheduled |
| Comments | occurrencePeriod.end = deliveryTime + intended-window-length (issue #157). Under queue backpressure, delivery time diverges from scheduled time; anchoring to delivery ensures every reached patient gets the full intended response window. |
| Control | 0..1 |
| Type | Period, dateTime |
| [x] Note | SeeChoice of Data Typesfor further information about how to use [x] |
| Is Modifier | false |
| Summary | true |
| Alternate Names | timing |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 60. CommunicationRequest.recipient | |
| Definition | Outbound CRs: set by handleTaskDue to Task.for (resolved Reference). Reverse CRs: set by the sidecar to a resolved Reference when identity is known, or an identifier-only Reference (phone or BSUID system) when identity is unresolved. Read by the sidecar to address outbound WhatsApp messages. The entity (e.g. person, organization, clinical information system, device, group, or care team) which is the intended target of the communication. |
| Short | Patient/Practitioner/RelatedPerson (outbound) or identifier-only Reference (reverse)Message recipient |
| Control | 10..* |
| Type | Reference(Device, Organization, Patient, Practitioner, PractitionerRole, RelatedPerson, Group, CareTeam, HealthcareService) |
| Is Modifier | false |
| Summary | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
Guidance on how to interpret the contents of this table can be foundhere
| 0. CommunicationRequest | |
| Short | Orchestrator<->sidecar / orchestrator<->web contract |
| 2. CommunicationRequest.extension | |
| Slicing | This element introduces a set of slices on CommunicationRequest.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 4. CommunicationRequest.extension:webAnswerToken | |
| Slice Name | webAnswerToken |
| Definition | Present on web CRs (medium=web). Set by the orchestrator at dispatch time. Read by web-functions to validate the bearer token on the POST that submits the QR. |
| Short | SHA-256 bearer token hash (web channel, ADR 0011) |
| Control | 0..1 |
| Type | Extension(Web Answer Token) (Extension Type: string) |
| 6. CommunicationRequest.extension:nextReminderTimestamp | |
| Slice Name | nextReminderTimestamp |
| Definition | Present on outbound CRs. Set by handleTaskDue at dispatch: deliveryTime + REMINDER_THRESHOLD_MINUTES (default 60). Updated by the sweeper in three scenarios: (1) bootstrap if absent (CR.meta.lastUpdated + threshold); (2) reset when the patient is active (last-inbound-message-timestamp + threshold); (3) advanced after a successful reminder send (last reminder completion + REMINDER_INTERVAL_MINUTES default 24h). Read only by the orchestrator sweeper; the sidecar never reads or writes this extension. |
| Short | Orchestrator-owned reminder schedule |
| Control | 0..1 |
| Type | Extension(Next Reminder Timestamp) (Extension Type: dateTime) |
| 8. CommunicationRequest.extension:lastInboundMessageTimestamp | |
| Slice Name | lastInboundMessageTimestamp |
| Definition | Present on outbound CRs after the first inbound reply. Set by the sidecar's stampLastActivity on every patient interaction (answer, constraint re-prompt, resume signal). Read by the orchestrator sweeper to reset the reminder schedule when the patient is active. Best-effort: a missed stamp means a reminder might fire one cycle early, which is self-correcting on the next interaction. |
| Short | Sidecar-owned transport stamp |
| Control | 0..1 |
| Type | Extension(Last Inbound Message Timestamp) (Extension Type: dateTime) |
| 10. CommunicationRequest.extension:webAnswerLink | |
| Slice Name | webAnswerLink |
| Definition | Present on web CRs. Set by the orchestrator at dispatch time. Read by the sidecar to embed in the WhatsApp invitation template payload so the patient can click through to the browser. |
| Short | Web answer hosting URL |
| Control | 0..1 |
| Type | Extension(Web Answer Link) (Extension Type: url) |
| 12. CommunicationRequest.extension:inboundSenderBsuid | |
| Slice Name | inboundSenderBsuid |
| Definition | Present on reverse CRs. Set by the sidecar from the Meta webhook's from_user_id. Read by the orchestrator to resolve identity (scanSenderIdentities by BSUID). BSUID persists across phone-number changes. |
| Short | Reverse CR: sender BSUID |
| Control | 0..1 |
| Type | Extension(Inbound Sender BSUID) (Extension Type: string) |
| 14. CommunicationRequest.extension:inboundSenderProfileName | |
| Slice Name | inboundSenderProfileName |
| Definition | Present on reverse CRs. Set by the sidecar from the Meta webhook's contacts.profile.name. Read by the orchestrator as a hint for identity resolution and as input to Patient.name when creating a new Patient. |
| Short | Reverse CR: sender profile name |
| Control | 0..1 |
| Type | Extension(Inbound Sender Profile Name) (Extension Type: string) |
| 16. CommunicationRequest.extension:inboundBusinessPhone | |
| Slice Name | inboundBusinessPhone |
| Definition | Present on reverse CRs. Set by the sidecar from the Meta webhook's metadata.phone_number_id. Read by the orchestrator to upsert a stub Organization on the unresolved-receiver path. |
| Short | Reverse CR: receiving business phone (E.164) |
| Control | 0..1 |
| Type | Extension(Inbound Business Phone) (Extension Type: string) |
| 18. CommunicationRequest.extension:inboundBusinessPhoneId | |
| Slice Name | inboundBusinessPhoneId |
| Definition | Present on reverse CRs. Set by the sidecar. Read by the orchestrator to cache wa-phone-number-id onto the upserted stub Organization. |
| Short | Reverse CR: receiving phone number ID |
| Control | 0..1 |
| Type | Extension(Inbound Business Phone ID) (Extension Type: string) |
| 20. CommunicationRequest.extension:inboundMessageTimestamp | |
| Slice Name | inboundMessageTimestamp |
| Definition | Present on reverse CRs. Set by the sidecar from the Meta webhook timestamp. Preserves the original event time across identity-resolution latency. |
| Short | Reverse CR: original event timestamp |
| Control | 0..1 |
| Type | Extension(Inbound Message Timestamp) (Extension Type: dateTime) |
| 22. CommunicationRequest.extension:identityResolutionReason | |
| Slice Name | identityResolutionReason |
| Definition | Present on reverse CRs. Set by the sidecar. Codes: no-match, multiple-matches, non-conversational-only, no-active-cr, unresolved-receiver. Read by the orchestrator to decide its response (create identity, refuse, walk Person.link, reattach, upsert stub Organization). |
| Short | Reverse CR: reason code |
| Control | 0..1 |
| Type | Extension(Identity Resolution Reason) (Extension Type: code) |
| 24. CommunicationRequest.identifier | |
| Definition | Present on reverse CRs for dedup. Set by the sidecar from the inbound sender's phone and/or BSUID. Used with If-None-Exist conditional create to prevent duplicate reverse CRs for the same sender. |
| Short | inbound-sender-phone and/or whatsapp-bsuid (reverse CR dedup) |
| Note | This is a business identifier, not a resource identifier (see discussion) |
| 26. CommunicationRequest.status | |
| Definition | Outbound CRs: set to 'active' by handleTaskDue at dispatch; promoted to 'completed' by the sidecar when the QR finishes; revoked by the orchestrator sweeper when the deadline or reminder cap is reached. Reverse CRs: set to 'active' by the sidecar; promoted to 'completed' by the orchestrator on successful resolution; set to 'entered-in-error' on multiple-matches. Reminder CRs: set to 'active' by the sweeper; promoted to 'completed' by the sidecar after sending the template. Web CRs: set to 'active' by the orchestrator; promoted to 'completed' by web-functions on browser POST; revoked by the session sweeper on TTL expiry. |
| Short | active | completed | revoked | entered-in-error |
| 28. CommunicationRequest.category | |
| Definition | Only set on reverse CRs (category=identity-resolution-required, written by the sidecar) and reminder CRs (category=reminder, written by the orchestrator sweeper). Absent on standard outbound CRs. Read by the Subscription criteria to route CRs to the correct queue. |
| Short | identity-resolution-required (reverse CR) | reminder (reminder CR) |
| Control | 0..1 |
| 30. CommunicationRequest.medium | |
| Definition | Always present. Set by handleTaskDue from COMMUNICATION_MEDIUM_CODE (default 'whatsapp'). The sidecar's cr-events Subscription filters on medium=whatsapp; web CRs are delivered via a separate path. Configurable via COMMUNICATION_MEDIUM_SYSTEM and COMMUNICATION_MEDIUM_CODE. |
| Short | whatsapp | web (communication-medium code system) |
| Control | 1..? |
| 32. CommunicationRequest.medium.coding | |
| Control | 1..? |
| 34. CommunicationRequest.medium.coding.system | |
| Control | 1..? |
| Fixed Value | https://firearrow.io/fhir/CodeSystem/communication-medium |
| 36. CommunicationRequest.medium.coding.code | |
| Control | 1..? |
| Binding | The codes SHALL be taken from Fire Arrow Communication Medium Value Set (required to https://projo.evoleen.com/fhir/ValueSet/communication-medium-vs) |
| 38. CommunicationRequest.subject | |
| Definition | Present on outbound CRs: set by handleTaskDue to Task.for. May be absent on reverse CRs where the identity is unresolved. |
| Short | Same as Task.for (outbound CRs) |
| 40. CommunicationRequest.about | |
| Definition | Outbound CRs: set by handleTaskDue to the originating Task reference. Reverse CRs: set by the sidecar to sender hint resources. Not indexed by HAPI (HAPI-0524); the Task↔CR link is carried on Task.output instead. |
| Short | Task reference (outbound CR) or sender hints (reverse CR) |
| 42. CommunicationRequest.payload | |
| Definition | Outbound CRs: initial payload set by handleTaskDue to the Questionnaire reference (contentReference). The sidecar appends the QuestionnaireResponse reference once the QR is created (ensureCRPayloadCarriesQRRef). Reverse CRs: payload set by the sidecar to the inbound message text (contentString). The CR↔QR link lives here because QuestionnaireResponse.basedOn is NOT used (HAPI rejects non-CarePlan/ServiceRequest basedOn with HAPI-0931). |
| Short | Questionnaire ref (initial), QuestionnaireResponse ref (appended by sidecar), or text (reverse CR) |
| Control | 1..? |
| 44. CommunicationRequest.payload.content[x] | |
| [x] Note | SeeChoice of Data Typesfor further information about how to use [x] |
| Slicing | This element introduces a set of slices on CommunicationRequest.payload.content[x]. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 46. CommunicationRequest.payload.content[x]:contentReference | |
| Slice Name | contentReference |
| Comments | CRUCIAL: QuestionnaireResponse.basedOn is NOT used (HAPI rejects non-CarePlan/ServiceRequest basedOn with HAPI-0931). The CR<->QR link lives on cr.payload[].contentReference. |
| Control | 0..1 |
| Type | Reference(Resource) |
| [x] Note | SeeChoice of Data Typesfor further information about how to use [x] |
| 48. CommunicationRequest.occurrence[x] | |
| [x] Note | SeeChoice of Data Typesfor further information about how to use [x] |
| Slicing | This element introduces a set of slices on CommunicationRequest.occurrence[x]. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 50. CommunicationRequest.occurrence[x]:occurrencePeriod | |
| Slice Name | occurrencePeriod |
| Definition | Present on outbound CRs. Computed by buildDeliveryAnchoredPeriod: start = deliveryTime (when the CR was actually dispatched, not the scheduled time); end = deliveryTime + intended window length (restriction.period.end - restriction.period.start, or TASK_DEFAULT_RESPONSE_WINDOW_MINUTES default 24h). Absent on reminder CRs and reverse CRs. Read by the deadline sweeper to auto-revoke CRs past their response window. |
| Short | Delivery-anchored response window |
| Comments | occurrencePeriod.end = deliveryTime + intended-window-length (issue #157). Under queue backpressure, delivery time diverges from scheduled time; anchoring to delivery ensures every reached patient gets the full intended response window. |
| Control | 0..1 |
| Type | Period |
| [x] Note | SeeChoice of Data Typesfor further information about how to use [x] |
| 52. CommunicationRequest.recipient | |
| Definition | Outbound CRs: set by handleTaskDue to Task.for (resolved Reference). Reverse CRs: set by the sidecar to a resolved Reference when identity is known, or an identifier-only Reference (phone or BSUID system) when identity is unresolved. Read by the sidecar to address outbound WhatsApp messages. |
| Short | Patient/Practitioner/RelatedPerson (outbound) or identifier-only Reference (reverse) |
| Control | 1..? |
Guidance on how to interpret the contents of this table can be foundhere
| 0. CommunicationRequest | |||||
| Definition | A request to convey information; e.g. the CDS system proposes that an alert be sent to a responsible provider, the CDS system proposes that the public health agency be notified about a reportable condition. | ||||
| Short | Orchestrator<->sidecar / orchestrator<->web contract | ||||
| Control | 0..* | ||||
| Is Modifier | false | ||||
| Summary | false | ||||
| Invariants | dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources (contained.contained.empty())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 ( 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: 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: If a resource is contained in another resource, it SHALL NOT have a security label ( contained.meta.security.empty())dom-6: A resource should have narrative for robust management ( text.`div`.exists()) | ||||
| 2. CommunicationRequest.id | |||||
| Definition | The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes. | ||||
| Short | Logical id of this artifact | ||||
| Comments | The only time that a resource does not have an id is when it is being submitted to the server using a create operation. | ||||
| Control | 0..1 | ||||
| Type | id | ||||
| Is Modifier | false | ||||
| Summary | true | ||||
| 4. CommunicationRequest.meta | |||||
| Definition | The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource. | ||||
| Short | Metadata about the resource | ||||
| Control | 0..1 | ||||
| Type | Meta | ||||
| Is Modifier | false | ||||
| Summary | true | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 6. CommunicationRequest.implicitRules | |||||
| Definition | A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc. | ||||
| Short | A set of rules under which this content was created | ||||
| Comments | Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc. | ||||
| Control | 0..1 | ||||
| Type | uri | ||||
| Is Modifier | true because This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation | ||||
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension | ||||
| Summary | true | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 8. CommunicationRequest.language | |||||
| Definition | The base language in which the resource is written. | ||||
| Short | Language of the resource content | ||||
| Comments | Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute). | ||||
| Control | 0..1 | ||||
| Binding | The codes SHOULD be taken from CommonLanguages (preferred to http://hl7.org/fhir/ValueSet/languages|4.0.1)A human language.
| ||||
| Type | code | ||||
| Is Modifier | false | ||||
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension | ||||
| Summary | false | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 10. CommunicationRequest.text | |||||
| Definition | A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety. | ||||
| Short | Text summary of the resource, for human interpretation | ||||
| Comments | Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a "text blob" or where text is additionally entered raw or narrated and encoded information is added later. | ||||
| Control | 0..1 | ||||
| Type | Narrative | ||||
| Is Modifier | false | ||||
| Summary | false | ||||
| Alternate Names | narrative, html, xhtml, display | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 12. CommunicationRequest.contained | |||||
| Definition | These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope. | ||||
| Short | Contained, inline Resources | ||||
| Comments | This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels. | ||||
| Control | 0..* | ||||
| Type | Resource | ||||
| Is Modifier | false | ||||
| Summary | false | ||||
| Alternate Names | inline resources, anonymous resources, contained resources | ||||
| 14. CommunicationRequest.extension | |||||
| Definition | An Extension | ||||
| Short | Extension | ||||
| Control | 0..* | ||||
| Type | Extension | ||||
| Is Modifier | false | ||||
| Summary | false | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists()) | ||||
| Slicing | This element introduces a set of slices on CommunicationRequest.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: | ||||
| 16. CommunicationRequest.extension:webAnswerToken | |||||
| Slice Name | webAnswerToken | ||||
| Definition | Present on web CRs (medium=web). Set by the orchestrator at dispatch time. Read by web-functions to validate the bearer token on the POST that submits the QR. | ||||
| Short | SHA-256 bearer token hash (web channel, ADR 0011) | ||||
| Control | 0..1 This element is affected by the following invariants: ele-1 | ||||
| Type | Extension(Web Answer Token) (Extension Type: string) | ||||
| Is Modifier | false | ||||
| Summary | false | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists()) | ||||
| 18. CommunicationRequest.extension:nextReminderTimestamp | |||||
| Slice Name | nextReminderTimestamp | ||||
| Definition | Present on outbound CRs. Set by handleTaskDue at dispatch: deliveryTime + REMINDER_THRESHOLD_MINUTES (default 60). Updated by the sweeper in three scenarios: (1) bootstrap if absent (CR.meta.lastUpdated + threshold); (2) reset when the patient is active (last-inbound-message-timestamp + threshold); (3) advanced after a successful reminder send (last reminder completion + REMINDER_INTERVAL_MINUTES default 24h). Read only by the orchestrator sweeper; the sidecar never reads or writes this extension. | ||||
| Short | Orchestrator-owned reminder schedule | ||||
| Control | 0..1 This element is affected by the following invariants: ele-1 | ||||
| Type | Extension(Next Reminder Timestamp) (Extension Type: dateTime) | ||||
| Is Modifier | false | ||||
| Summary | false | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists()) | ||||
| 20. CommunicationRequest.extension:lastInboundMessageTimestamp | |||||
| Slice Name | lastInboundMessageTimestamp | ||||
| Definition | Present on outbound CRs after the first inbound reply. Set by the sidecar's stampLastActivity on every patient interaction (answer, constraint re-prompt, resume signal). Read by the orchestrator sweeper to reset the reminder schedule when the patient is active. Best-effort: a missed stamp means a reminder might fire one cycle early, which is self-correcting on the next interaction. | ||||
| Short | Sidecar-owned transport stamp | ||||
| Control | 0..1 This element is affected by the following invariants: ele-1 | ||||
| Type | Extension(Last Inbound Message Timestamp) (Extension Type: dateTime) | ||||
| Is Modifier | false | ||||
| Summary | false | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists()) | ||||
| 22. CommunicationRequest.extension:webAnswerLink | |||||
| Slice Name | webAnswerLink | ||||
| Definition | Present on web CRs. Set by the orchestrator at dispatch time. Read by the sidecar to embed in the WhatsApp invitation template payload so the patient can click through to the browser. | ||||
| Short | Web answer hosting URL | ||||
| Control | 0..1 This element is affected by the following invariants: ele-1 | ||||
| Type | Extension(Web Answer Link) (Extension Type: url) | ||||
| Is Modifier | false | ||||
| Summary | false | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists()) | ||||
| 24. CommunicationRequest.extension:inboundSenderBsuid | |||||
| Slice Name | inboundSenderBsuid | ||||
| Definition | Present on reverse CRs. Set by the sidecar from the Meta webhook's from_user_id. Read by the orchestrator to resolve identity (scanSenderIdentities by BSUID). BSUID persists across phone-number changes. | ||||
| Short | Reverse CR: sender BSUID | ||||
| Control | 0..1 This element is affected by the following invariants: ele-1 | ||||
| Type | Extension(Inbound Sender BSUID) (Extension Type: string) | ||||
| Is Modifier | false | ||||
| Summary | false | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists()) | ||||
| 26. CommunicationRequest.extension:inboundSenderProfileName | |||||
| Slice Name | inboundSenderProfileName | ||||
| Definition | Present on reverse CRs. Set by the sidecar from the Meta webhook's contacts.profile.name. Read by the orchestrator as a hint for identity resolution and as input to Patient.name when creating a new Patient. | ||||
| Short | Reverse CR: sender profile name | ||||
| Control | 0..1 This element is affected by the following invariants: ele-1 | ||||
| Type | Extension(Inbound Sender Profile Name) (Extension Type: string) | ||||
| Is Modifier | false | ||||
| Summary | false | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists()) | ||||
| 28. CommunicationRequest.extension:inboundBusinessPhone | |||||
| Slice Name | inboundBusinessPhone | ||||
| Definition | Present on reverse CRs. Set by the sidecar from the Meta webhook's metadata.phone_number_id. Read by the orchestrator to upsert a stub Organization on the unresolved-receiver path. | ||||
| Short | Reverse CR: receiving business phone (E.164) | ||||
| Control | 0..1 This element is affected by the following invariants: ele-1 | ||||
| Type | Extension(Inbound Business Phone) (Extension Type: string) | ||||
| Is Modifier | false | ||||
| Summary | false | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists()) | ||||
| 30. CommunicationRequest.extension:inboundBusinessPhoneId | |||||
| Slice Name | inboundBusinessPhoneId | ||||
| Definition | Present on reverse CRs. Set by the sidecar. Read by the orchestrator to cache wa-phone-number-id onto the upserted stub Organization. | ||||
| Short | Reverse CR: receiving phone number ID | ||||
| Control | 0..1 This element is affected by the following invariants: ele-1 | ||||
| Type | Extension(Inbound Business Phone ID) (Extension Type: string) | ||||
| Is Modifier | false | ||||
| Summary | false | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists()) | ||||
| 32. CommunicationRequest.extension:inboundMessageTimestamp | |||||
| Slice Name | inboundMessageTimestamp | ||||
| Definition | Present on reverse CRs. Set by the sidecar from the Meta webhook timestamp. Preserves the original event time across identity-resolution latency. | ||||
| Short | Reverse CR: original event timestamp | ||||
| Control | 0..1 This element is affected by the following invariants: ele-1 | ||||
| Type | Extension(Inbound Message Timestamp) (Extension Type: dateTime) | ||||
| Is Modifier | false | ||||
| Summary | false | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists()) | ||||
| 34. CommunicationRequest.extension:identityResolutionReason | |||||
| Slice Name | identityResolutionReason | ||||
| Definition | Present on reverse CRs. Set by the sidecar. Codes: no-match, multiple-matches, non-conversational-only, no-active-cr, unresolved-receiver. Read by the orchestrator to decide its response (create identity, refuse, walk Person.link, reattach, upsert stub Organization). | ||||
| Short | Reverse CR: reason code | ||||
| Control | 0..1 This element is affected by the following invariants: ele-1 | ||||
| Type | Extension(Identity Resolution Reason) (Extension Type: code) | ||||
| Is Modifier | false | ||||
| Summary | false | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists()) | ||||
| 36. CommunicationRequest.modifierExtension | |||||
| Definition | May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself). | ||||
| Short | Extensions that cannot be ignored | ||||
| Comments | There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone. | ||||
| Control | 0..* | ||||
| Type | Extension | ||||
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them | ||||
| Summary | false | ||||
| Requirements | Modifier extensions allow for extensions that cannot be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the definition of modifier extensions. | ||||
| Alternate Names | extensions, user content | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists()) | ||||
| 38. CommunicationRequest.identifier | |||||
| Definition | Present on reverse CRs for dedup. Set by the sidecar from the inbound sender's phone and/or BSUID. Used with If-None-Exist conditional create to prevent duplicate reverse CRs for the same sender. | ||||
| Short | inbound-sender-phone and/or whatsapp-bsuid (reverse CR dedup) | ||||
| Comments | This is a business identifier, not a resource identifier (see discussion). It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types. For example, multiple Patient and a Person resource instance might share the same social insurance number. | ||||
| Note | This is a business identifier, not a resource identifier (see discussion) | ||||
| Control | 0..* | ||||
| Type | Identifier | ||||
| Is Modifier | false | ||||
| Summary | true | ||||
| Requirements | Allows identification of the communication request as it is known by various participating systems and in a way that remains consistent across servers. | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 40. CommunicationRequest.basedOn | |||||
| Definition | A plan or proposal that is fulfilled in whole or in part by this request. | ||||
| Short | Fulfills plan or proposal | ||||
| Control | 0..* | ||||
| Type | Reference(Resource) | ||||
| Is Modifier | false | ||||
| Summary | true | ||||
| Requirements | Allows tracing of authorization for the request and tracking whether proposals/recommendations were acted upon. | ||||
| Alternate Names | fulfills | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 42. CommunicationRequest.replaces | |||||
| Definition | Completed or terminated request(s) whose function is taken by this new request. | ||||
| Short | Request(s) replaced by this request | ||||
| Comments | The replacement could be because the initial request was immediately rejected (due to an issue) or because the previous request was completed, but the need for the action described by the request remains ongoing. | ||||
| Control | 0..* | ||||
| Type | Reference(CommunicationRequest) | ||||
| Is Modifier | false | ||||
| Summary | true | ||||
| Requirements | Allows tracing the continuation of a therapy or administrative process instantiated through multiple requests. | ||||
| Alternate Names | supersedes, prior | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 44. CommunicationRequest.groupIdentifier | |||||
| Definition | A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition, prescription or similar form. | ||||
| Short | Composite request this is part of | ||||
| Comments | Requests are linked either by a "basedOn" relationship (i.e. one request is fulfilling another) or by having a common requisition. Requests that are part of the same requisition are generally treated independently from the perspective of changing their state or maintaining them after initial creation. | ||||
| Control | 0..1 | ||||
| Type | Identifier | ||||
| Is Modifier | false | ||||
| Summary | true | ||||
| Alternate Names | grouperId | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 46. CommunicationRequest.status | |||||
| Definition | Outbound CRs: set to 'active' by handleTaskDue at dispatch; promoted to 'completed' by the sidecar when the QR finishes; revoked by the orchestrator sweeper when the deadline or reminder cap is reached. Reverse CRs: set to 'active' by the sidecar; promoted to 'completed' by the orchestrator on successful resolution; set to 'entered-in-error' on multiple-matches. Reminder CRs: set to 'active' by the sweeper; promoted to 'completed' by the sidecar after sending the template. Web CRs: set to 'active' by the orchestrator; promoted to 'completed' by web-functions on browser POST; revoked by the session sweeper on TTL expiry. | ||||
| Short | active | completed | revoked | entered-in-error | ||||
| Control | 1..1 | ||||
| Binding | The codes SHALL be taken from RequestStatus (required to http://hl7.org/fhir/ValueSet/request-status|4.0.1)The status of the communication request. | ||||
| Type | code | ||||
| Is Modifier | true because This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid. | ||||
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension | ||||
| Summary | true | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 48. CommunicationRequest.statusReason | |||||
| Definition | Captures the reason for the current state of the CommunicationRequest. | ||||
| Short | Reason for current status | ||||
| Comments | This is generally only used for "exception" statuses such as "suspended" or "cancelled". The reason why the CommunicationRequest was created at all is captured in reasonCode, not here. [distinct reason codes for different statuses can be enforced using invariants if they are universal bindings]. | ||||
| Control | 0..1 | ||||
| Binding | Codes identifying the reason for the current state of a request. | ||||
| Type | CodeableConcept | ||||
| Is Modifier | false | ||||
| Summary | false | ||||
| Alternate Names | Suspended Reason, Cancelled Reason | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 50. CommunicationRequest.category | |||||
| Definition | Only set on reverse CRs (category=identity-resolution-required, written by the sidecar) and reminder CRs (category=reminder, written by the orchestrator sweeper). Absent on standard outbound CRs. Read by the Subscription criteria to route CRs to the correct queue. | ||||
| Short | identity-resolution-required (reverse CR) | reminder (reminder CR) | ||||
| Comments | There may be multiple axes of categorization and one communication request may serve multiple purposes. | ||||
| Control | 0..1 | ||||
| Binding | For example codes, see CommunicationCategory (example to http://hl7.org/fhir/ValueSet/communication-category|4.0.1)Codes for general categories of communications such as alerts, instruction, etc. | ||||
| Type | CodeableConcept | ||||
| Is Modifier | false | ||||
| Summary | false | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 52. CommunicationRequest.priority | |||||
| Definition | Characterizes how quickly the proposed act must be initiated. Includes concepts such as stat, urgent, routine. | ||||
| Short | routine | urgent | asap | stat | ||||
| Control | 0..1 | ||||
| Binding | The codes SHALL be taken from RequestPriority (required to http://hl7.org/fhir/ValueSet/request-priority|4.0.1)Codes indicating the relative importance of a communication request. | ||||
| Type | code | ||||
| Is Modifier | false | ||||
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension | ||||
| Summary | true | ||||
| Meaning if Missing | If missing, this task should be performed with normal priority | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 54. CommunicationRequest.doNotPerform | |||||
| Definition | If true indicates that the CommunicationRequest is asking for the specified action to not occur. | ||||
| Short | True if request is prohibiting action | ||||
| Comments | The attributes provided with the request qualify what is not to be done. | ||||
| Control | 0..1 | ||||
| Type | boolean | ||||
| Is Modifier | true because If true this element negates the specified action. For Example, instead of a request for a communication, it is a request for the communication to not occur. | ||||
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension | ||||
| Summary | true | ||||
| Alternate Names | prohibited | ||||
| Meaning if Missing | If do not perform is not specified, the request is a positive request e.g. "do perform" | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 56. CommunicationRequest.medium | |||||
| Definition | Always present. Set by handleTaskDue from COMMUNICATION_MEDIUM_CODE (default 'whatsapp'). The sidecar's cr-events Subscription filters on medium=whatsapp; web CRs are delivered via a separate path. Configurable via COMMUNICATION_MEDIUM_SYSTEM and COMMUNICATION_MEDIUM_CODE. | ||||
| Short | whatsapp | web (communication-medium code system) | ||||
| Control | 1..* | ||||
| Binding | For example codes, see ParticipationMode (example to http://terminology.hl7.org/ValueSet/v3-ParticipationMode)Codes for communication mediums such as phone, fax, email, in person, etc. | ||||
| Type | CodeableConcept | ||||
| Is Modifier | false | ||||
| Summary | false | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 58. CommunicationRequest.medium.id | |||||
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. | ||||
| Short | Unique id for inter-element referencing | ||||
| Control | 0..1 | ||||
| Type | string | ||||
| Is Modifier | false | ||||
| XML Format | In the XML format, this property is represented as an attribute. | ||||
| Summary | false | ||||
| 60. CommunicationRequest.medium.extension | |||||
| Definition | May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. | ||||
| Short | Additional content defined by implementations | ||||
| Comments | There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone. | ||||
| Control | 0..* | ||||
| Type | Extension | ||||
| Is Modifier | false | ||||
| Summary | false | ||||
| Alternate Names | extensions, user content | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists()) | ||||
| Slicing | This element introduces a set of slices on CommunicationRequest.medium.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: | ||||
| 62. CommunicationRequest.medium.coding | |||||
| Definition | A reference to a code defined by a terminology system. | ||||
| Short | Code defined by a terminology system | ||||
| Comments | Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true. | ||||
| Control | 1..* | ||||
| Type | Coding | ||||
| Is Modifier | false | ||||
| Summary | true | ||||
| Requirements | Allows for alternative encodings within a code system, and translations to other code systems. | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 64. CommunicationRequest.medium.coding.id | |||||
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. | ||||
| Short | Unique id for inter-element referencing | ||||
| Control | 0..1 | ||||
| Type | string | ||||
| Is Modifier | false | ||||
| XML Format | In the XML format, this property is represented as an attribute. | ||||
| Summary | false | ||||
| 66. CommunicationRequest.medium.coding.extension | |||||
| Definition | May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. | ||||
| Short | Additional content defined by implementations | ||||
| Comments | There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone. | ||||
| Control | 0..* | ||||
| Type | Extension | ||||
| Is Modifier | false | ||||
| Summary | false | ||||
| Alternate Names | extensions, user content | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists()) | ||||
| Slicing | This element introduces a set of slices on CommunicationRequest.medium.coding.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: | ||||
| 68. CommunicationRequest.medium.coding.system | |||||
| Definition | The identification of the code system that defines the meaning of the symbol in the code. | ||||
| Short | Identity of the terminology system | ||||
| Comments | The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously. | ||||
| Control | 1..1 | ||||
| Type | uri | ||||
| Is Modifier | false | ||||
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension | ||||
| Summary | true | ||||
| Requirements | Need to be unambiguous about the source of the definition of the symbol. | ||||
| Fixed Value | https://firearrow.io/fhir/CodeSystem/communication-medium | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 70. CommunicationRequest.medium.coding.version | |||||
| Definition | The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged. | ||||
| Short | Version of the system - if relevant | ||||
| Comments | Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date. | ||||
| Note | This is a business version Id, not a resource version Id (see discussion) | ||||
| Control | 0..1 | ||||
| Type | string | ||||
| Is Modifier | false | ||||
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension | ||||
| Summary | true | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 72. CommunicationRequest.medium.coding.code | |||||
| Definition | A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination). | ||||
| Short | Symbol in syntax defined by the system | ||||
| Control | 1..1 | ||||
| Binding | The codes SHALL be taken from Fire Arrow Communication Medium Value Set (required to https://projo.evoleen.com/fhir/ValueSet/communication-medium-vs) | ||||
| Type | code | ||||
| Is Modifier | false | ||||
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension | ||||
| Summary | true | ||||
| Requirements | Need to refer to a particular code in the system. | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 74. CommunicationRequest.medium.coding.display | |||||
| Definition | A representation of the meaning of the code in the system, following the rules of the system. | ||||
| Short | Representation defined by the system | ||||
| Control | 0..1 | ||||
| Type | string | ||||
| Is Modifier | false | ||||
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension | ||||
| Summary | true | ||||
| Requirements | Need to be able to carry a human-readable meaning of the code for readers that do not know the system. | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 76. CommunicationRequest.medium.coding.userSelected | |||||
| Definition | Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays). | ||||
| Short | If this coding was chosen directly by the user | ||||
| Comments | Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely. | ||||
| Control | 0..1 | ||||
| Type | boolean | ||||
| Is Modifier | false | ||||
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension | ||||
| Summary | true | ||||
| Requirements | This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing. | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 78. CommunicationRequest.medium.text | |||||
| Definition | A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user. | ||||
| Short | Plain text representation of the concept | ||||
| Comments | Very often the text is the same as a displayName of one of the codings. | ||||
| Control | 0..1 | ||||
| Type | string | ||||
| Is Modifier | false | ||||
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension | ||||
| Summary | true | ||||
| Requirements | The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source. | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 80. CommunicationRequest.subject | |||||
| Definition | Present on outbound CRs: set by handleTaskDue to Task.for. May be absent on reverse CRs where the identity is unresolved. | ||||
| Short | Same as Task.for (outbound CRs) | ||||
| Control | 0..1 | ||||
| Type | Reference(Patient, Group) | ||||
| Is Modifier | false | ||||
| Summary | false | ||||
| Alternate Names | patient | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 82. CommunicationRequest.about | |||||
| Definition | Outbound CRs: set by handleTaskDue to the originating Task reference. Reverse CRs: set by the sidecar to sender hint resources. Not indexed by HAPI (HAPI-0524); the Task↔CR link is carried on Task.output instead. | ||||
| Short | Task reference (outbound CR) or sender hints (reverse CR) | ||||
| Comments | Don't use CommunicationRequest.about element when a more specific element exists, such as basedOn, reasonReference, or replaces. | ||||
| Control | 0..* | ||||
| Type | Reference(Resource) | ||||
| Is Modifier | false | ||||
| Summary | false | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 84. CommunicationRequest.encounter | |||||
| Definition | The Encounter during which this CommunicationRequest was created or to which the creation of this record is tightly associated. | ||||
| Short | Encounter created as part of | ||||
| Comments | This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter. | ||||
| Control | 0..1 | ||||
| Type | Reference(Encounter) | ||||
| Is Modifier | false | ||||
| Summary | true | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 86. CommunicationRequest.payload | |||||
| Definition | Outbound CRs: initial payload set by handleTaskDue to the Questionnaire reference (contentReference). The sidecar appends the QuestionnaireResponse reference once the QR is created (ensureCRPayloadCarriesQRRef). Reverse CRs: payload set by the sidecar to the inbound message text (contentString). The CR↔QR link lives here because QuestionnaireResponse.basedOn is NOT used (HAPI rejects non-CarePlan/ServiceRequest basedOn with HAPI-0931). | ||||
| Short | Questionnaire ref (initial), QuestionnaireResponse ref (appended by sidecar), or text (reverse CR) | ||||
| Control | 1..* | ||||
| Type | BackboneElement | ||||
| Is Modifier | false | ||||
| Summary | false | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 88. CommunicationRequest.payload.id | |||||
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. | ||||
| Short | Unique id for inter-element referencing | ||||
| Control | 0..1 | ||||
| Type | string | ||||
| Is Modifier | false | ||||
| XML Format | In the XML format, this property is represented as an attribute. | ||||
| Summary | false | ||||
| 90. CommunicationRequest.payload.extension | |||||
| Definition | May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. | ||||
| Short | Additional content defined by implementations | ||||
| Comments | There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone. | ||||
| Control | 0..* | ||||
| Type | Extension | ||||
| Is Modifier | false | ||||
| Summary | false | ||||
| Alternate Names | extensions, user content | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists()) | ||||
| 92. CommunicationRequest.payload.modifierExtension | |||||
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself). | ||||
| Short | Extensions that cannot be ignored even if unrecognized | ||||
| Comments | There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone. | ||||
| Control | 0..* | ||||
| Type | Extension | ||||
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them | ||||
| Summary | true | ||||
| Requirements | Modifier extensions allow for extensions that cannot be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the definition of modifier extensions. | ||||
| Alternate Names | extensions, user content, modifiers | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists()) | ||||
| 94. CommunicationRequest.payload.content[x] | |||||
| Definition | The communicated content (or for multi-part communications, one portion of the communication). | ||||
| Short | Message part content | ||||
| Control | 1..1 | ||||
| Type | Choice of: string, Attachment, Reference(Resource) | ||||
| [x] Note | SeeChoice of Data Typesfor further information about how to use [x] | ||||
| Is Modifier | false | ||||
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension | ||||
| Summary | false | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| Slicing | This element introduces a set of slices on CommunicationRequest.payload.content[x]. The slices areUnordered and Open, and can be differentiated using the following discriminators: | ||||
| 96. CommunicationRequest.payload.content[x]:contentReference | |||||
| Slice Name | contentReference | ||||
| Definition | The communicated content (or for multi-part communications, one portion of the communication). | ||||
| Short | Message part content | ||||
| Comments | CRUCIAL: QuestionnaireResponse.basedOn is NOT used (HAPI rejects non-CarePlan/ServiceRequest basedOn with HAPI-0931). The CR<->QR link lives on cr.payload[].contentReference. | ||||
| Control | 0..1 | ||||
| Type | Reference(Resource) | ||||
| [x] Note | SeeChoice of Data Typesfor further information about how to use [x] | ||||
| Is Modifier | false | ||||
| Summary | false | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 98. CommunicationRequest.occurrence[x] | |||||
| Definition | The time when this communication is to occur. | ||||
| Short | When scheduled | ||||
| Control | 0..1 | ||||
| Type | Choice of: dateTime, Period | ||||
| [x] Note | SeeChoice of Data Typesfor further information about how to use [x] | ||||
| Is Modifier | false | ||||
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension | ||||
| Summary | true | ||||
| Alternate Names | timing | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| Slicing | This element introduces a set of slices on CommunicationRequest.occurrence[x]. The slices areUnordered and Open, and can be differentiated using the following discriminators: | ||||
| 100. CommunicationRequest.occurrence[x]:occurrencePeriod | |||||
| Slice Name | occurrencePeriod | ||||
| Definition | Present on outbound CRs. Computed by buildDeliveryAnchoredPeriod: start = deliveryTime (when the CR was actually dispatched, not the scheduled time); end = deliveryTime + intended window length (restriction.period.end - restriction.period.start, or TASK_DEFAULT_RESPONSE_WINDOW_MINUTES default 24h). Absent on reminder CRs and reverse CRs. Read by the deadline sweeper to auto-revoke CRs past their response window. | ||||
| Short | Delivery-anchored response window | ||||
| Comments | occurrencePeriod.end = deliveryTime + intended-window-length (issue #157). Under queue backpressure, delivery time diverges from scheduled time; anchoring to delivery ensures every reached patient gets the full intended response window. | ||||
| Control | 0..1 | ||||
| Type | Period | ||||
| [x] Note | SeeChoice of Data Typesfor further information about how to use [x] | ||||
| Is Modifier | false | ||||
| Summary | true | ||||
| Alternate Names | timing | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 102. CommunicationRequest.authoredOn | |||||
| Definition | For draft requests, indicates the date of initial creation. For requests with other statuses, indicates the date of activation. | ||||
| Short | When request transitioned to being actionable | ||||
| Control | 0..1 | ||||
| Type | dateTime | ||||
| Is Modifier | false | ||||
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension | ||||
| Summary | true | ||||
| Alternate Names | createdOn | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 104. CommunicationRequest.requester | |||||
| Definition | The device, individual, or organization who initiated the request and has responsibility for its activation. | ||||
| Short | Who/what is requesting service | ||||
| Control | 0..1 | ||||
| Type | Reference(Practitioner, PractitionerRole, Organization, Patient, RelatedPerson, Device) | ||||
| Is Modifier | false | ||||
| Summary | true | ||||
| Alternate Names | author | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 106. CommunicationRequest.recipient | |||||
| Definition | Outbound CRs: set by handleTaskDue to Task.for (resolved Reference). Reverse CRs: set by the sidecar to a resolved Reference when identity is known, or an identifier-only Reference (phone or BSUID system) when identity is unresolved. Read by the sidecar to address outbound WhatsApp messages. | ||||
| Short | Patient/Practitioner/RelatedPerson (outbound) or identifier-only Reference (reverse) | ||||
| Control | 1..* | ||||
| Type | Reference(Device, Organization, Patient, Practitioner, PractitionerRole, RelatedPerson, Group, CareTeam, HealthcareService) | ||||
| Is Modifier | false | ||||
| Summary | false | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 108. CommunicationRequest.sender | |||||
| Definition | The entity (e.g. person, organization, clinical information system, or device) which is to be the source of the communication. | ||||
| Short | Message sender | ||||
| Control | 0..1 | ||||
| Type | Reference(Device, Organization, Patient, Practitioner, PractitionerRole, RelatedPerson, HealthcareService) | ||||
| Is Modifier | false | ||||
| Summary | true | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 110. CommunicationRequest.reasonCode | |||||
| Definition | Describes why the request is being made in coded or textual form. | ||||
| Short | Why is communication needed? | ||||
| Comments | Textual reasons can be captured using reasonCode.text. | ||||
| Control | 0..* | ||||
| Binding | For example codes, see v3 Code System ActReason (example to http://terminology.hl7.org/ValueSet/v3-ActReason)Codes for describing reasons for the occurrence of a communication. | ||||
| Type | CodeableConcept | ||||
| Is Modifier | false | ||||
| Summary | true | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 112. CommunicationRequest.reasonReference | |||||
| Definition | Indicates another resource whose existence justifies this request. | ||||
| Short | Why is communication needed? | ||||
| Control | 0..* | ||||
| Type | Reference(Condition, Observation, DiagnosticReport, DocumentReference) | ||||
| Is Modifier | false | ||||
| Summary | true | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||
| 114. CommunicationRequest.note | |||||
| Definition | Comments made about the request by the requester, sender, recipient, subject or other participants. | ||||
| Short | Comments made about communication request | ||||
| Control | 0..* | ||||
| Type | Annotation | ||||
| Is Modifier | false | ||||
| Summary | false | ||||
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) | ||||