condition
A coded clinical condition or diagnosis attached to a patient — and optionally to a specific encounter — sourced from the provider's clinical record.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
identifiers | Identifier[] | no (defaults []) | Business identifiers for this condition record. |
patientRef | SourceRef | yes | The patient this condition is attached to. |
encounterRef | SourceRef | no | The encounter this condition was recorded during, if any. |
code | CodeableConcept | yes | The coded diagnosis, e.g. an ICD-10 code. |
clinicalStatus | string enum | no | One of active, recurrence, relapse, inactive, remission, resolved, unknown. |
recordedAt | IsoDatetime | no | When the condition was recorded. |
Example payload
{
"identifiers": [{ "system": "urn:michels:condition", "value": "COND-3001" }],
"patientRef": {
"sourceSystem": "michels",
"resourceType": "patient",
"sourceId": "pat-1"
},
"encounterRef": {
"sourceSystem": "michels",
"resourceType": "encounter",
"sourceId": "enc-1"
},
"code": {
"system": "http://hl7.org/fhir/sid/icd-10",
"code": "I63.9",
"display": "Cerebral infarction, unspecified"
},
"clinicalStatus": "active",
"recordedAt": "2026-07-10T09:15:00.000Z"
}
As a change-feed event
{
"sequence": 71,
"resourceType": "condition",
"canonicalId": "4a7c1e9b-2d5f-4b8a-9e1c-6f3a8d2b5c7e",
"operation": "create",
"version": 1,
"occurredAt": "2026-07-10T09:15:05.000Z",
"orgSlug": "default",
"record": {
"identifiers": [{ "system": "urn:michels:condition", "value": "COND-3001" }],
"patientRef": {
"sourceSystem": "michels",
"resourceType": "patient",
"sourceId": "pat-1"
},
"encounterRef": {
"sourceSystem": "michels",
"resourceType": "encounter",
"sourceId": "enc-1"
},
"code": {
"system": "http://hl7.org/fhir/sid/icd-10",
"code": "I63.9",
"display": "Cerebral infarction, unspecified"
},
"clinicalStatus": "active",
"recordedAt": "2026-07-10T09:15:00.000Z"
}
}
From the Records API
curl -H "Authorization: Bearer $ROSETTA_SYNC_TOKEN" \
"https://sync.example.com/api/v1/records/condition/4a7c1e9b-2d5f-4b8a-9e1c-6f3a8d2b5c7e"
{
"id": "4a7c1e9b-2d5f-4b8a-9e1c-6f3a8d2b5c7e",
"resourceType": "condition",
"version": 1,
"payload": {
"identifiers": [{ "system": "urn:michels:condition", "value": "COND-3001" }],
"patientRef": {
"sourceSystem": "michels",
"resourceType": "patient",
"sourceId": "pat-1"
},
"encounterRef": {
"sourceSystem": "michels",
"resourceType": "encounter",
"sourceId": "enc-1"
},
"code": {
"system": "http://hl7.org/fhir/sid/icd-10",
"code": "I63.9",
"display": "Cerebral infarction, unspecified"
},
"clinicalStatus": "active",
"recordedAt": "2026-07-10T09:15:00.000Z"
},
"updatedAt": "2026-07-10T09:15:05.000Z",
"orgSlug": "default",
"identifiers": [{ "system": "urn:michels:condition", "value": "COND-3001" }]
}
Consumption notes
- Match on
code.system+code.code(see Coded concepts); treatcode.displayas convenience text only, not a matching key. encounterRefmay be absent — not every condition is tied to a specific visit.clinicalStatusis optional; its absence does not meanunknown— it means the source system didn't report a clinical status for this record. Treat any value your integration doesn't recognize (includingunknown) defensively.- The resolution-family values
inactive,remission, andresolvedall indicate the condition is no longer active, with different clinical nuance between them — surface the raw value to your users rather than collapsing them to a single "inactive" state. patientRef/encounterRefare source references; correlate them to the canonicalpatientandencounterrecords whoseidentifierscontain the matching business identifier.