Care Entry Workflow
A caregiver finishes a patient visit and dictates a short voice note describing what they did. Your nursing information system turns it into a structured care entry with identified interventions, administered medications and consumables, ready for billing and patient records.
Technically this recipe is identical to the Field Service Voice Intake recipe: same endpoints, same call sequence, same catalogue-reduction pattern. Only the domain wording, the catalogues and the template names differ. If you have read Field Service, this one is quick.
The workflow at a glance
┌──────────────┐ ┌────────────┐ ┌──────────┐
│ Caregiver │ │ Your CIS │ │ xander │
└──────┬───────┘ └─────┬──────┘ └─────┬────┘
│ voice note │ │
│─────────────────>│ │
│ │ 1. transcribe │
│ │────────────────>│
│ │ 2. care report │
│ │ + classify │
│ │────────────────>│
│ │ 3. SELECT FROM │
│ │ catalog WHERE│
│ │ cat IN (...) │
│ │ (your DB) │
│ │ 4a. interventions
│ │ 4b. medications │
│ │ 4c. consumables │
│ │ (parallel) │
│ │────────────────>│
│ │ 3 results │
│ │<────────────────│
│ │ persist care │
│ │ entry │
Healthcare catalogues (interventions, medications, consumables) are large and ambiguous: many similarly named medications, many overlapping intervention codes. Sending the entire pharmacopoeia to xander as context drives up cost and produces poor matches. Always pre-filter by ward, patient profile, prescribed medication list or intervention category before step 4.
Step 1: Transcribe the voice note
Same call as Field Service step 1: POST /prompt/audioTranscription for short notes
(under about 20 minutes).
curl -X POST "$XANDER_BASE_URL/prompt/audioTranscription" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"audioInput": {
"audioFile": {
"base64AudioFile": "<base64-encoded audio bytes>",
"fileName": "visit-0930.m4a",
"audioType": "audio/mp4"
}
},
"options": {
"promptIdentification": {
"projectId": "<your project>",
"promptname": "care-entry/audio_transcription"
},
"sessionMetadata": {
"useCaseName": "care-entry-workflow",
"useCaseSessionId": "<visit id from your CIS>"
}
}
}'
Tip: domain vocabulary
Drug names and clinical terms transcribe better when the prompt template knows them. We maintain that term list in the template of your project; hand it to your xander contact during setup. It does not belong in every single call.
Step 2: Generate a care report and identify coarse categories
Use POST /prompt/informationextraction to generate a Markdown care report and a list
of category hints (e.g. "vital signs", "medication administration", "wound care") from the
transcript. You use these in step 3 to filter your catalogues.
curl -X POST "$XANDER_BASE_URL/prompt/informationextraction" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"userQuery": {
"userQueryText": "<the transcript from step 1>"
},
"options": {
"promptIdentification": {
"projectId": "<your project>",
"promptname": "care-entry/care_report_summary"
},
"sessionMetadata": {
"useCaseName": "care-entry-workflow",
"useCaseSessionId": "<same visit id>"
}
}
}'
Step 3: Reduce your catalogues (in your CIS)
Filter your intervention, medication and consumables catalogues by the care plan, the categories from step 2 and your business rules. Aim for a few dozen candidates per category.
SELECT articleNumber, name, unit
FROM intervention_catalog
WHERE category IN (...) AND wardCode = $patient.ward;
SELECT id, name, dose, unit
FROM medication_catalog
WHERE id IN (SELECT medicationId FROM patient_prescriptions WHERE patientId = $patient.id);
SELECT articleNumber, name
FROM consumable_catalog
WHERE category IN (...);
Step 4: Identify interventions, medications and consumables (in parallel)
Three parallel POST /prompt/informationextraction-structured calls. Each gets the
transcript, the relevant reduced catalogue and a JSON schema for the response.
Step 4a: Identify interventions
curl -X POST "$XANDER_BASE_URL/prompt/informationextraction-structured" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"userQuery": { "userQueryText": "<the transcript from step 1>" },
"queryParameter": [
{ "name": "Massnahmenkatalog", "value": "<reduced interventions catalogue>" }
],
"options": {
"promptIdentification": {
"projectId": "<your project>",
"promptname": "care-entry/identify_interventions"
},
"sessionMetadata": {
"useCaseName": "care-entry-workflow",
"useCaseSessionId": "<same visit id>"
}
},
"outputStructure": {
"jsonSchemaDefinition": "{\"type\":\"object\",\"properties\":{\"interventions\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/Intervention\"}}},\"required\":[\"interventions\"],\"additionalProperties\":false,\"$defs\":{\"Intervention\":{\"type\":\"object\",\"properties\":{\"articleNumber\":{\"type\":\"string\"},\"name\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"confidence\":{\"type\":\"number\",\"description\":\"1=low, 5=medium, 10=high\"},\"quantity\":{\"type\":\"number\"}},\"required\":[\"articleNumber\",\"name\",\"reason\",\"confidence\",\"quantity\"],\"additionalProperties\":false}}}"
}
}'
Step 4b: Identify medications
Same shape, with the medication catalogue. Medication identification is the most safety-critical of the three. Filter aggressively by confidence in your UI and never auto-bill medications below a high threshold without human review.
"queryParameter": [
{ "name": "Medikamentenkatalog", "value": "<reduced medications catalogue>" }
]
Step 4c: Identify consumables
"queryParameter": [
{ "name": "Materialkatalog", "value": "<reduced consumables catalogue>" }
]
Gotchas and tips
-
No personal data in correlation IDs. Use opaque IDs (your CIS visit ID), not
patient names or social insurance numbers, in
useCaseSessionId. The ID lands in our logs and we do not need personal data there. - Pre-filter medications by prescription list. The single biggest accuracy gain in this workflow is constraining the medication catalogue to what the patient is actually prescribed. Eight prescribed medications produce much better results than the whole ward pharmacy.
- Confidence thresholds for billing. A confidence of 9 to 10 is typically safe to auto-bill; 6 to 8 should go to a human reviewer; below 6 is a strong signal that the intervention or medication did not happen or that your catalogue is missing the right entry.
-
Template setup. The
promptnamevalues shown (care-entry/identify_interventionsand so on) are examples. Your xander contact agrees the actual names with you when setting up the templates for your project.
Next
For document-based workflows (delivery notes, prescriptions, lab reports, scanned forms) see Document Extraction. For long handover or shift-change recordings see Meeting Helper and the async transcription pattern.