Condition
The Condition resource represents diagnoses and clinical conditions registered for a patient in Open Aidn.
Open Aidn currently exposes selected fields from the base HL7 FHIR R4 Condition resource. A formal Aidn profile may be published later.
Standards and profiles
- HL7 FHIR R4: Condition
- HL7 FHIR R4 search: FHIR search
Endpoints
| Method | Path | Required scope | Description |
|---|---|---|---|
POST |
/Condition/_search |
condition.search |
Search using application/x-www-form-urlencoded body parameters. |
Search responses are returned as FHIR Bundle resources with type set to searchset.
Search parameters
| Parameter | Type | Description |
|---|---|---|
patient.Identifier |
identifier | Patient identifier used to filter conditions for one patient. |
_include |
token, repeatable | Adds supported referenced resources to the response bundle. |
patient.Identifier is required for search.
Supported includes
_include value |
Included resource | Description |
|---|---|---|
Condition:recorder |
Practitioner |
Adds referenced recorder resources. |
Condition:subject |
Patient |
Adds referenced patient resources. |
Response fields
Open Aidn may expand the response over time, but integrations should currently expect data in these fields:
| Field | Description |
|---|---|
id |
Condition identifier. |
meta.lastUpdated |
Last update timestamp when available. |
code |
Diagnosis or condition coding. |
clinicalStatus |
Clinical status, such as active, inactive, resolved, or unknown. |
subject.reference |
Reference to the patient. |
recorder.reference |
Reference to the practitioner who recorded the condition when available. |
note |
Free-text note when available. |
onset[x] |
Onset date or age when available. |
abatement[x] |
Resolution time when available. |
Example search
POST /Condition/_search HTTP/1.1
Host: <OPEN_AIDN_FHIR_HOST>
Accept: application/fhir+json
Content-Type: application/x-www-form-urlencoded
Authorization: Bearer <ACCESS_TOKEN>
patient.Identifier=<PATIENT_IDENTIFIER>&_include=Condition:recorder
The response is a FHIR search bundle with matching Condition resources and any requested includes.