Skip to main content

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​

FieldTypeRequiredDescription
identifiersIdentifier[]no (defaults [])Business identifiers for this condition record.
patientRefSourceRefyesThe patient this condition is attached to.
encounterRefSourceRefnoThe encounter this condition was recorded during, if any.
codeCodeableConceptyesThe coded diagnosis, e.g. an ICD-10 code.
clinicalStatusstring enumnoOne of active, recurrence, relapse, inactive, remission, resolved, unknown.
recordedAtIsoDatetimenoWhen 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); treat code.display as convenience text only, not a matching key.
  • encounterRef may be absent — not every condition is tied to a specific visit.
  • clinicalStatus is optional; its absence does not mean unknown — it means the source system didn't report a clinical status for this record. Treat any value your integration doesn't recognize (including unknown) defensively.
  • The resolution-family values inactive, remission, and resolved all 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/encounterRef are source references; correlate them to the canonical patient and encounter records whose identifiers contain the matching business identifier.