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 conversational-state logical model.
Guidance on how to interpret the contents of this table can be foundhere
| 0. conversational-state | |
| Definition | The sidecar's stateless projection of conversational state, computed from FHIR resources on each inbound message. The sidecar has NO private database — every state view is a pure function of FHIR queries. Five projection helpers live in lib/projection/: isDuplicateInbound, compute24hWindow, currentQuestion, conversationState, lastActivityForCR. Any new sidecar state view must add a new projection here, never a cache. |
| Short | Conversational State (Stateless Projection) |
| Control | 0..* |
| Is Modifier | false |
| Logical Model | Instances of this logical model are not marked to be the target of a Reference |
| 2. conversational-state.duplicateCheck | |
| Definition | Is this inbound message a duplicate (Communication?identifier=wamid)? |
| Short | Is this inbound message a duplicate (Communication?identifier=wamid)? |
| Control | 0..1 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 4. conversational-state.window24h | |
| Definition | Most recent inbound Communication timestamp within the 24h window (Communication?recipient=...&status=in-progress,completed&_sort=-sent&_count=1) |
| Short | Most recent inbound Communication timestamp within the 24h window (Communication?recipient=...&status=in-progress,completed&_sort=-sent&_count=1) |
| Control | 0..1 |
| Type | dateTime |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 6. conversational-state.currentQuestion | |
| Definition | The linkId of the next question to ask (derived from QR.item structure + Questionnaire navigation) |
| Short | The linkId of the next question to ask (derived from QR.item structure + Questionnaire navigation) |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 8. conversational-state.conversationState | |
| Definition | in-progress | completed (derived from QR.status) |
| Short | in-progress | completed (derived from QR.status) |
| Control | 0..1 |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 10. conversational-state.lastActivity | |
| Definition | Last activity timestamp for the CR (derived from Communications + extensions) |
| Short | Last activity timestamp for the CR (derived from Communications + extensions) |
| Control | 0..1 |
| Type | dateTime |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 12. conversational-state.activeCR | |
| Definition | The active CR this message should attach to (CommunicationRequest?recipient=...&status=active) |
| Short | The active CR this message should attach to (CommunicationRequest?recipient=...&status=active) |
| Control | 0..1 |
| Type | Reference(CommunicationRequest) |
Guidance on how to interpret the contents of this table can be foundhere
| 0. conversational-state | |
| Definition | The sidecar's stateless projection of conversational state, computed from FHIR resources on each inbound message. The sidecar has NO private database — every state view is a pure function of FHIR queries. Five projection helpers live in lib/projection/: isDuplicateInbound, compute24hWindow, currentQuestion, conversationState, lastActivityForCR. Any new sidecar state view must add a new projection here, never a cache. |
| Short | Conversational State (Stateless Projection) |
| Logical Model | Instances of this logical model are not marked to be the target of a Reference |
| 2. conversational-state.duplicateCheck | |
| Definition | Is this inbound message a duplicate (Communication?identifier=wamid)? |
| Short | Is this inbound message a duplicate (Communication?identifier=wamid)? |
| Control | 0..1 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 4. conversational-state.window24h | |
| Definition | Most recent inbound Communication timestamp within the 24h window (Communication?recipient=...&status=in-progress,completed&_sort=-sent&_count=1) |
| Short | Most recent inbound Communication timestamp within the 24h window (Communication?recipient=...&status=in-progress,completed&_sort=-sent&_count=1) |
| Control | 0..1 |
| Type | dateTime |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 6. conversational-state.currentQuestion | |
| Definition | The linkId of the next question to ask (derived from QR.item structure + Questionnaire navigation) |
| Short | The linkId of the next question to ask (derived from QR.item structure + Questionnaire navigation) |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 8. conversational-state.conversationState | |
| Definition | in-progress | completed (derived from QR.status) |
| Short | in-progress | completed (derived from QR.status) |
| Control | 0..1 |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 10. conversational-state.lastActivity | |
| Definition | Last activity timestamp for the CR (derived from Communications + extensions) |
| Short | Last activity timestamp for the CR (derived from Communications + extensions) |
| Control | 0..1 |
| Type | dateTime |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 12. conversational-state.activeCR | |
| Definition | The active CR this message should attach to (CommunicationRequest?recipient=...&status=active) |
| Short | The active CR this message should attach to (CommunicationRequest?recipient=...&status=active) |
| Control | 0..1 |
| Type | Reference(CommunicationRequest) |
Guidance on how to interpret the contents of this table can be foundhere
| 0. conversational-state | |
| Definition | The sidecar's stateless projection of conversational state, computed from FHIR resources on each inbound message. The sidecar has NO private database — every state view is a pure function of FHIR queries. Five projection helpers live in lib/projection/: isDuplicateInbound, compute24hWindow, currentQuestion, conversationState, lastActivityForCR. Any new sidecar state view must add a new projection here, never a cache. |
| Short | Conversational State (Stateless Projection) |
| Control | 0..* |
| Is Modifier | false |
| Logical Model | Instances of this logical model are not marked to be the target of a Reference |
| 2. conversational-state.duplicateCheck | |
| Definition | Is this inbound message a duplicate (Communication?identifier=wamid)? |
| Short | Is this inbound message a duplicate (Communication?identifier=wamid)? |
| Control | 0..1 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 4. conversational-state.window24h | |
| Definition | Most recent inbound Communication timestamp within the 24h window (Communication?recipient=...&status=in-progress,completed&_sort=-sent&_count=1) |
| Short | Most recent inbound Communication timestamp within the 24h window (Communication?recipient=...&status=in-progress,completed&_sort=-sent&_count=1) |
| Control | 0..1 |
| Type | dateTime |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 6. conversational-state.currentQuestion | |
| Definition | The linkId of the next question to ask (derived from QR.item structure + Questionnaire navigation) |
| Short | The linkId of the next question to ask (derived from QR.item structure + Questionnaire navigation) |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 8. conversational-state.conversationState | |
| Definition | in-progress | completed (derived from QR.status) |
| Short | in-progress | completed (derived from QR.status) |
| Control | 0..1 |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 10. conversational-state.lastActivity | |
| Definition | Last activity timestamp for the CR (derived from Communications + extensions) |
| Short | Last activity timestamp for the CR (derived from Communications + extensions) |
| Control | 0..1 |
| Type | dateTime |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 12. conversational-state.activeCR | |
| Definition | The active CR this message should attach to (CommunicationRequest?recipient=...&status=active) |
| Short | The active CR this message should attach to (CommunicationRequest?recipient=...&status=active) |
| Control | 0..1 |
| Type | Reference(CommunicationRequest) |