Download OpenAPI specification:Download
The DIBBs Trigger Code Reference (TCR) service offers a REST API devoted to querying and enriching SNOMED condition code analysis. This service stores condition codes and their associated value sets, which users can query and insert into supplied FHIR bundles as tagged extensions for future path parsing.
You can run the TCR using Docker. another OCI container runtime (e.g., Podman), or directly from the Python source code.
To run the trigger code reference with Docker, follow these steps.
❯ docker -v
Docker version 20.10.21, build baeda1f
docker pull ghcr.io/cdcgov/dibbs-ecr-viewer/trigger-code-reference:latest
. docker run -p 8080:8080 trigger-code-reference:latest
.Congratulations, the TCR should now be running on localhost:8080
!
We recommend running the TCR from a container, but if that isn't feasible for a given use case, you can also run the service directly from Python using the steps below.
git clone https://github.com/CDCgov/dibbs-ecr-viewer
./dibbs-ecr-viewer/containers/trigger-code-reference/
.python -m venv .venv
.source .venv/bin/activate
(MacOS and Linux), venv\Scripts\activate
(Windows Command Prompt), or .venv\Scripts\Activate.ps1
(Windows Power Shell).pip install -r requirements.txt
into your virtual environment.localhost:8080
with python -m uvicorn app.main:app --host 0.0.0.0 --port 8080
.To build the Docker image for the trigger code reference from source instead of downloading it from the PHDI repository follow these steps.
git clone https://github.com/CDCgov/dibbs-ecr-viewer
./dibbs-ecr-viewer/containers/trigger-code-reference/
.docker buildx build --platform linux/amd64 -t trigger-code-reference .
.When viewing these docs from the /redoc
endpoint on a running instance of the TCR or the DIBBs website, detailed documentation on the API will be available below.
flowchart LR
subgraph requests["Requests"]
direction TB
subgraph GET["fas:fa-download <code>GET</code>"]
hc["<code>/</code>\n(Health Check)"]
getValueSets["<code>/get-value-sets</code>\n(Get Value Sets for Condition)"]
end
subgraph POST["fas:fa-upload <code>POST</code>"]
stampConditionExtensions["<code>/stamp-condition-extensions</code>\n(Stamp Condition Extensions)"]
end
end
subgraph service[REST API Service]
direction TB
subgraph container["fab:fa-docker container"]
tcr["fab:fa-python <code>trigger-code-reference<br>HTTP:8080/</code>"]
db["fas:fa-database SQLite DB"]
end
end
subgraph response["Responses"]
subgraph JSON["fa:fa-file-alt <code>JSON</code>"]
rsp-hc["fa:fa-file-code <code>OK</code> fa:fa-thumbs-up"]
rsp-getValueSets["fa:fa-file-code Value Sets"]
rsp-stampConditionExtensions["fa:fa-file-code Stamped Bundle"]
end
end
hc -.-> tcr -.-> rsp-hc
getValueSets -.-> tcr -.-> rsp-getValueSets
stampConditionExtensions ==> tcr ==> rsp-stampConditionExtensions
tcr --> db
Extends the resources of a supplied FHIR bundle with extension tags related to one or more supplied conditions. For each condition found in the bundle, each resource in the bundle is appended with an extension structure indicating which SNOMED condition code the resource is linked to.
:param input: A request formatted as an InsertConditionInput, containing a FHIR bundle whose resources to extend. :return: HTTP Response containing the bundle with resources extended by any linked conditions.
bundle required | object (Bundle) The FHIR bundle to modify. Each resource in the bundle related to one or more of the conditions found in the bundle will have an extension added to the resource noting the SNOMED code relating to the associated condition(s). |
{- "bundle": { }
}
{- "extended_bundle": {
- "resourceType": "Bundle",
- "type": "batch",
- "entry": [
- {
- "fullUrl": "urn:uuid:10c13861-86a8-4a9a-aec6-b615921178df",
- "resource": {
- "resourceType": "Composition",
- "id": "10c13861-86a8-4a9a-aec6-b615921178df",
- "meta": {
- "source": "ecr"
}, - "identifier": [
- {
- "use": "official",
- "type": {
}, - "value": "8d86218e-0fea-11eb-8216-a80388425cfb"
}
], - "extension": [
- {
- "valueString": "1"
}, - {
- "valueString": "2016-12-01"
}
], - "status": "final",
- "type": {
}, - "date": "2025-02-05T08:43:39Z",
- "title": "Initial Public Health Case Report",
- "confidentiality": "R",
- "section": [
- {
- "id": "a392ac71-f6ec-4811-b299-432ae6b316e2",
- "title": "Encounters",
- "text": {
- "status": "generated",
- "div": "<table xmlns=\"urn:hl7-org:v3\"><thead><tr><th>Encounter</th><th>Date(s)</th><th>Location</th></tr></thead><tbody><tr ID=\"id_fd7ee2ec-4d8e-4169-aeb6-836731cc7201_ref\"><td>Office outpatient visit 15 minutes</td><td>02/05/2025</td><td>Grand Republic Medical Facility Clinic</td></tr></tbody></table>"
}, - "code": {
}, - "mode": "snapshot"
}, - {
- "id": "b47c4891-d48f-42c3-9f92-54c3c7d66d42",
- "title": "History of Present Illness",
- "text": {
- "status": "generated",
- "div": "Patient presents with concerns about potential viral exposure."
}, - "code": {
- "coding": [
]
}, - "mode": "snapshot"
}, - {
- "id": "c5638e31-8485-4cef-b860-7275b8267a93",
- "title": "Medications Administered",
- "text": {
- "status": "generated",
- "div": "No medications administered during this encounter."
}, - "code": {
}, - "mode": "snapshot"
}, - {
- "id": "d89f2c46-1824-4ff7-9f55-8498c3b7aa54",
- "title": "Problems",
- "text": {
- "status": "generated",
- "div": "<paragraph xmlns=\"urn:hl7-org:v3\">Potential exposure to SARS-CoV-2 with confirmed infectious disease encounter</paragraph>"
}, - "mode": "snapshot",
- "entry": [
- {
- "display": "Problem - Disease caused by severe acute respiratory syndrome coronavirus 2 (disorder)",
- "reference": "Condition/d42c4a1f-f700-61bf-62a0-c034257d6a79"
}
]
}, - {
- "id": "e1f39764-3c92-4b8e-a5d6-7890f456b123",
- "title": "Reason for Visit",
- "text": {
- "status": "generated",
- "div": "<paragraph xmlns=\"urn:hl7-org:v3\">COVID-19 screening due to potential exposure</paragraph>"
}, - "code": {
}, - "mode": "snapshot",
- "extension": [
- {
- "valueString": "COVID-19 screening due to potential exposure"
}
]
}, - {
- "id": "f2d48b52-5a31-4bf7-9cd8-912e3f678d45",
- "title": "Results",
- "text": {
- "status": "generated",
- "div": "<table xmlns=\"urn:hl7-org:v3\"><thead><tr><th>Test</th><th>Result</th><th>Date</th></tr></thead><tbody><tr ID=\"id_9890e2c3-019a-4168-8403-a0a069994440_ref\"><td>SARS-like Coronavirus N gene [Presence] in Unspecified specimen by NAA with probe detection</td><td>Detected</td><td>02/05/2025</td></tr></tbody></table>"
}, - "code": {
- "coding": [
- {
- "code": "30954-2",
- "display": "Relevant diagnostic tests and/or laboratory data"
}
]
}, - "mode": "snapshot",
- "entry": [
- {
- "reference": "Observation/ef84511f-a88a-0a84-2353-d44f641673b0"
}
]
}, - {
- "id": "g3e59c63-6b40-4d28-ae79-023f4789e567",
- "title": "Social History",
- "text": {
- "status": "generated",
- "div": "<table xmlns=\"urn:hl7-org:v3\"><thead><tr><th>Social History Element</th><th>Description</th><th>Date</th></tr></thead><tbody><tr><td>Occupation</td><td>Senator</td><td>20250206</td></tr><tr><td>Pregnancy Status</td><td>No</td><td>20250206</td></tr></tbody></table>"
}, - "mode": "snapshot",
- "entry": [
- {
- "reference": "Observation/e1fe955d-a39b-14da-901e-a21a1b9c0ec0"
}, - {
- "reference": "Observation/6dc07146-a186-9f88-5cc8-af0aef7d7cd2"
}
]
}, - {
- "id": "h4f60d74-7c51-5e39-bf8a-134g5890f678",
- "title": "Immunizations",
- "text": {
- "status": "generated",
- "div": "<table border=\"1\" width=\"100%\" xmlns=\"urn:hl7-org:v3\"><thead><tr><th>Name</th><th>Administration Dates</th><th>Status</th></tr></thead><tbody><tr><td><content ID=\"immunization1Name\" />SARS-CoV-2 (COVID-19) vaccine, mRNA-LNP, spike protein</td><td>Jan 2025</td><td>Completed</td></tr></tbody></table>"
}, - "code": {
}, - "mode": "snapshot"
}, - {
- "id": "dfc7ff2d-838c-ff07-7319-cc234c676ecf",
- "title": "Reportability Response Information Section",
- "text": {
- "status": "generated",
- "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Reportability Response Information Section</div>"
}, - "extension": [
- {
- "valueCodeableConcept": {
- "text": "official",
- "coding": [
- {
- "code": "88085-6",
- "display": "Reportability response report Document Public health"
}
]
}
}, - {
- "valueCodeableConcept": {
- "coding": [
- {
- "code": "RRVS19",
- "system": "urn:oid:2.16.840.1.114222.4.5.274",
- "display": "eICR processed"
}
]
}
}
], - "code": {
- "coding": [
- {
- "code": "88085-6",
- "display": "Reportability response report Document Public health"
}
]
}, - "entry": [
- {
- "display": "Relevant Reportable Condition Observation - Disease caused by severe acute respiratory syndrome coronavirus 2 (disorder)",
- "reference": "Observation/17f6392f-9340-45d3-a1c8-bc0a30d09f53"
}
]
}
], - "subject": {
- "reference": "Patient/94abb041-5989-484a-848c-83012bcbfb3d"
}, - "encounter": {
- "reference": "Encounter/be03f31c-a6b4-e27e-0373-26e08c54c232"
}, - "custodian": {
- "reference": "Organization/94617b3c-14f9-eee5-a239-7233ba1b5d84"
}, - "author": [
- {
- "reference": "Device/01d8e93e-a96e-a79e-2d65-41842d9a2515"
}
]
}, - "request": {
- "method": "PUT",
- "url": "Composition/10c13861-86a8-4a9a-aec6-b615921178df"
}
}, - {
- "fullUrl": "urn:uuid:be03f31c-a6b4-e27e-0373-26e08c54c232",
- "resource": {
- "resourceType": "Encounter",
- "id": "be03f31c-a6b4-e27e-0373-26e08c54c232",
- "status": "unknown",
- "class": {
- "code": "AMB",
- "system": "urn:oid:2.16.840.1.113883.5.4",
- "display": "Ambulatory"
}, - "identifier": [
- {
- "system": "urn:oid:2.16.840.1.113883.19",
- "value": "GRMF-20250205-001"
}
], - "period": {
- "start": "2025-02-05",
- "end": "2025-02-05"
}, - "subject": {
- "reference": "Patient/94abb041-5989-484a-848c-83012bcbfb3d"
}, - "location": [
- {
- "id": "2.16.840.1.113883.4.6",
- "location": {
- "reference": "Location/28393170-2e3d-f2c9-1417-e8af74097d3e",
- "display": "Grand Republic Medical Facility Clinic"
}, - "extension": [
- {
- "valueCodeableConcept": {
- "coding": [
- {
- "code": "OF",
- "system": "urn:oid:2.16.840.1.113883.5.111",
- "display": "Outpatient Facility"
}
]
}
}
]
}
], - "serviceProvider": {
- "reference": "Organization/568309c0-dd6f-53e3-2efe-543c00cbdf89"
}, - "participant": [
- {
- "type": [
- {
}
], - "individual": {
- "reference": "PractitionerRole/f7aa89ba-9c28-1b48-6fcf-9a0829f6cc3d"
}
}
], - "meta": {
- "source": "ecr"
}
}, - "request": {
- "method": "PUT",
- "url": "Encounter/be03f31c-a6b4-e27e-0373-26e08c54c232"
}
}, - {
- "fullUrl": "urn:uuid:28393170-2e3d-f2c9-1417-e8af74097d3e",
- "resource": {
- "resourceType": "Location",
- "id": "28393170-2e3d-f2c9-1417-e8af74097d3e",
- "name": "Grand Republic Medical Facility Clinic",
- "address": {
- "use": "work",
- "line": [
- "500 Republica Medical Plaza, Suite 1000 Drive"
], - "city": "Senate District",
- "state": "Galactic City",
- "country": "Coruscant",
- "postalCode": "GC-500"
}, - "telecom": [
- {
- "system": "phone",
- "value": "555-777-0123",
- "use": "work"
}
], - "type": [
- {
- "coding": [
- {
- "code": "OF",
- "system": "urn:oid:2.16.840.1.113883.5.111",
- "display": "Outpatient Facility"
}
]
}
], - "meta": {
- "source": "ecr"
}
}, - "request": {
- "method": "PUT",
- "url": "Location/28393170-2e3d-f2c9-1417-e8af74097d3e"
}
}, - {
- "fullUrl": "urn:uuid:568309c0-dd6f-53e3-2efe-543c00cbdf89",
- "resource": {
- "resourceType": "Organization",
- "id": "568309c0-dd6f-53e3-2efe-543c00cbdf89",
- "name": "Grand Republic Medical Facility Clinic",
- "address": [
- {
- "use": "work",
- "line": [
- "500 Republica Medical Plaza, Suite 1000 Drive"
], - "city": "Senate District",
- "state": "Galactic City",
- "country": "Coruscant",
- "postalCode": "GC-500"
}
], - "telecom": [
- {
- "system": "phone",
- "value": "555-777-0123",
- "use": "work"
}
], - "meta": {
- "source": "ecr"
}
}, - "request": {
- "method": "PUT",
- "url": "Organization/568309c0-dd6f-53e3-2efe-543c00cbdf89"
}
}, - {
- "fullUrl": "urn:uuid:bfac23db-1743-b679-f23e-0fe21c335c9b",
- "resource": {
- "resourceType": "Practitioner",
- "id": "bfac23db-1743-b679-f23e-0fe21c335c9b",
- "meta": {
- "source": "ecr"
}, - "extension": [
], - "name": [
- {
- "family": "Hemlock",
- "given": [
- "Royce"
], - "prefix": [
- "Dr."
], - "suffix": [
- "MD, GCS"
]
}
], - "address": [
- {
- "use": "work",
- "line": [
- "200 Corusca Street"
], - "city": "Senate District",
- "state": "Galactic City",
- "country": "Coruscant",
- "postalCode": "GC-500"
}
], - "telecom": [
- {
- "system": "phone",
- "value": "555-777-0123",
- "use": "work"
}
]
}, - "request": {
- "method": "PUT",
- "url": "Practitioner/bfac23db-1743-b679-f23e-0fe21c335c9b"
}
}, - {
- "resource": {
- "resourceType": "PractitionerRole",
- "id": "f7aa89ba-9c28-1b48-6fcf-9a0829f6cc3d",
- "practitioner": {
- "reference": "Practitioner/bfac23db-1743-b679-f23e-0fe21c335c9b"
}, - "organization": {
- "reference": "Organization/94617b3c-14f9-eee5-a239-7233ba1b5d84"
}, - "meta": {
- "source": "ecr"
}
}
}, - {
- "fullUrl": "urn:uuid:94617b3c-14f9-eee5-a239-7233ba1b5d84",
- "resource": {
- "resourceType": "Organization",
- "id": "94617b3c-14f9-eee5-a239-7233ba1b5d84",
- "name": "Grand Republic Medical Facility Clinic",
- "address": [
- {
- "use": "work",
- "line": [
- "500 Republica Medical Plaza, Suite 1000 Drive"
], - "city": "Senate District",
- "state": "Galactic City",
- "country": "Coruscant",
- "postalCode": "GC-500"
}
], - "telecom": [
- {
- "system": "phone",
- "value": "555-777-0123",
- "use": "work"
}
], - "meta": {
- "source": "ecr"
}
}, - "request": {
- "method": "PUT",
- "url": "Organization/94617b3c-14f9-eee5-a239-7233ba1b5d84"
}
}, - {
- "fullUrl": "urn:uuid:17f6392f-9340-45d3-a1c8-bc0a30d09f53",
- "resource": {
- "resourceType": "Observation",
- "id": "17f6392f-9340-45d3-a1c8-bc0a30d09f53",
- "meta": {
- "source": "ecr"
}, - "identifier": [
- {
- "system": "urn:ietf:rfc:3986",
- "value": "urn:uuid:17f6392f-9340-45d3-a1c8-bc0a30d09f53"
}
], - "status": "final",
- "code": {
- "coding": [
]
}, - "valueCodeableConcept": {
- "coding": [
- {
- "code": "840539006",
- "display": "Disease caused by severe acute respiratory syndrome coronavirus 2 (disorder)"
}
], - "text": "COVID-19"
}, - "extension": [
- {
- "valueString": "All results of tests for detection of SARS-CoV-2 nucleic acid in a clinical specimen by any method"
}, - {
}
], - "performer": [
- {
- "reference": "Organization/"
}
]
}, - "request": {
- "method": "PUT",
- "url": "Observation/17f6392f-9340-45d3-a1c8-bc0a30d09f53"
}
}, - {
- "fullUrl": "urn:uuid:01d8e93e-a96e-a79e-2d65-41842d9a2515",
- "resource": {
- "resourceType": "Device",
- "id": "01d8e93e-a96e-a79e-2d65-41842d9a2515",
- "identifier": [
- {
- "system": "urn:ietf:rfc:3986",
- "value": "urn:uuid:2.16.840.1.113883.3.72.5.20"
}
], - "version": [
- {
- "value": "GR-EHR-50.2.1"
}
], - "property": [
- {
- "type": {
- "coding": [
]
}
}
], - "meta": {
- "source": "ecr"
}
}, - "request": {
- "method": "PUT",
- "url": "Device/01d8e93e-a96e-a79e-2d65-41842d9a2515"
}
}, - {
- "fullUrl": "urn:uuid:94abb041-5989-484a-848c-83012bcbfb3d",
- "resource": {
- "resourceType": "Patient",
- "id": "94abb041-5989-484a-848c-83012bcbfb3d",
- "meta": {
- "source": "ecr"
}, - "identifier": [
- {
- "system": "urn:oid:2.16.840.1.113883.19.5",
- "value": "PT-234798"
}, - {
- "system": "urn:oid:2.16.840.1.113883.4.2",
- "value": "CHAN-MOTH-001"
}
], - "name": [
- {
- "use": "official",
- "family": "Mothma",
- "given": [
- "Mon"
], - "prefix": [
- "Senator"
]
}
], - "birthDate": "1955-10-01",
- "deceasedBoolean": false,
- "gender": "female",
- "extension": [
- {
- "extension": [
- {
- "url": "ombCategory",
- "valueCoding": {
- "code": "2106-3",
- "display": "White"
}
}, - {
- "url": "text",
- "valueString": "White"
}
]
}, - {
- "extension": [
- {
- "url": "ombCategory",
- "valueCoding": {
- "code": "2186-5",
- "display": "Not Hispanic or Latino"
}
}, - {
- "url": "text",
- "valueString": "Not Hispanic or Latino"
}
]
}
], - "address": [
- {
- "use": "home",
- "line": [
- "500 Republica, Suite 456"
], - "city": "Senate District",
- "state": "Galactic City",
- "country": "Coruscant",
- "postalCode": "GC-500"
}
], - "maritalStatus": {
- "coding": [
- {
- "code": "M",
- "system": "urn:oid:2.16.840.1.113883.1.11.12212",
- "display": "Married"
}
]
}, - "telecom": [
- {
- "system": "phone",
- "value": "+1-555-555-5585",
- "use": "home"
}, - {
- "system": "email",
- "value": "mon.mothma@senate.gr",
- "use": "work"
}
], - "contact": [
- {
- "name": {
- "use": "official",
- "family": "Fertha",
- "given": [
- "Perrin"
], - "prefix": [
- "Mr"
]
}, - "telecom": [
- {
- "system": "phone",
- "value": "+1-555-555-8858",
- "use": "mobile"
}
], - "address": {
- "use": "home",
- "line": [
- "500 Republica, Suite 460"
], - "city": "Senate District",
- "state": "Galactic City",
- "country": "Coruscant",
- "postalCode": "GC-500"
}
}
], - "communication": [
- {
- "language": {
- "coding": [
- {
- "system": "urn:ietf:bcp:47",
- "code": "en",
- "display": "English"
}
]
}, - "preferred": true,
- "extension": [
- {
- "extension": [
- {
- "url": "level",
- "valueCoding": {
- "code": "E",
- "display": "Excellent"
}
}
]
}
]
}
]
}, - "request": {
- "method": "PUT",
- "url": "Patient/94abb041-5989-484a-848c-83012bcbfb3d"
}
}, - {
- "fullUrl": "urn:uuid:",
- "resource": {
- "resourceType": "CareTeam",
- "subject": {
- "reference": "Patient/94abb041-5989-484a-848c-83012bcbfb3d"
}, - "meta": {
- "source": "ecr"
}
}
}, - {
- "fullUrl": "urn:uuid:",
- "resource": {
- "resourceType": "CarePlan",
- "status": "unknown",
- "intent": "proposal",
- "subject": {
- "reference": "Patient/94abb041-5989-484a-848c-83012bcbfb3d"
}, - "meta": {
- "source": "ecr"
}
}, - "request": {
- "method": "PUT",
- "url": "CarePlan/"
}
}, - {
- "fullUrl": "urn:uuid:d42c4a1f-f700-61bf-62a0-c034257d6a79",
- "resource": {
- "resourceType": "Condition",
- "id": "d42c4a1f-f700-61bf-62a0-c034257d6a79",
- "identifier": [
- {
- "system": "urn:ietf:rfc:3986",
- "value": "urn:uuid:ab1791b0-5c71-11e3-9c78-0800200c9a67"
}
], - "category": [
- {
- "coding": [
- {
- "code": "problem-item-list",
- "display": "Problem List Item",
}
]
}
], - "code": {
- "coding": [
- {
- "code": "840539006",
- "display": "Disease caused by severe acute respiratory syndrome coronavirus 2 (disorder)"
}
]
}, - "onsetDateTime": "2025-02-05",
- "subject": {
- "reference": "Patient/94abb041-5989-484a-848c-83012bcbfb3d"
}, - "meta": {
- "source": "ecr"
}, - "extension": [
- {
}
]
}, - "request": {
- "method": "PUT",
- "url": "Condition/d42c4a1f-f700-61bf-62a0-c034257d6a79"
}
}, - {
- "fullUrl": "urn:uuid:e6aa3537-cb1d-9e2e-9060-08828602339a",
- "resource": {
- "resourceType": "DiagnosticReport",
- "id": "e6aa3537-cb1d-9e2e-9060-08828602339a",
- "identifier": [
- {
- "system": "urn:ietf:rfc:3986",
- "value": "urn:uuid:2047cca3-559f-45da-8775-406538fa4815"
}
], - "status": "final",
- "code": {
- "coding": [
- {
- "code": "94310-0",
- "display": "SARS-like Coronavirus N gene [Presence] in Unspecified specimen by NAA with probe detection"
}
]
}, - "effectivePeriod": {
- "start": "2025-02-05",
- "end": "2025-02-05"
}, - "subject": {
- "reference": "Patient/94abb041-5989-484a-848c-83012bcbfb3d"
}, - "result": [
- {
- "reference": "Observation/ef84511f-a88a-0a84-2353-d44f641673b0"
}
], - "meta": {
- "source": "ecr"
}, - "extension": [
- {
}
]
}, - "request": {
- "method": "PUT",
- "url": "DiagnosticReport/e6aa3537-cb1d-9e2e-9060-08828602339a"
}
}, - {
- "fullUrl": "urn:uuid:ef84511f-a88a-0a84-2353-d44f641673b0",
- "resource": {
- "resourceType": "Observation",
- "id": "ef84511f-a88a-0a84-2353-d44f641673b0",
- "meta": {
- "source": "ecr"
}, - "identifier": [
- {
- "system": "urn:ietf:rfc:3986",
- "value": "urn:uuid:9890e2c3-019a-4168-8403-a0a069994440"
}
], - "category": [
- {
- "coding": [
]
}
], - "status": "final",
- "code": {
- "coding": [
- {
- "code": "94310-0",
- "display": "SARS-like Coronavirus N gene [Presence] in Unspecified specimen by NAA with probe detection"
}
]
}, - "effectiveDateTime": "2025-02-05",
- "valueCodeableConcept": {
- "coding": [
]
}, - "extension": [
- {
- "extension": [
- {
- "url": "specimen collection time",
- "valueDateTime": "2025-02-05"
}
]
}, - {
}
], - "subject": {
- "reference": "Patient/94abb041-5989-484a-848c-83012bcbfb3d"
}
}, - "request": {
- "method": "PUT",
- "url": "Observation/ef84511f-a88a-0a84-2353-d44f641673b0"
}
}, - {
- "fullUrl": "urn:uuid:e1fe955d-a39b-14da-901e-a21a1b9c0ec0",
- "resource": {
- "resourceType": "Observation",
- "id": "e1fe955d-a39b-14da-901e-a21a1b9c0ec0",
- "meta": {
- "source": "ecr"
}, - "identifier": [
- {
- "system": "urn:ietf:rfc:3986",
- "value": "urn:uuid:4ff79772-5755-4deb-8992-ab827c731c6a"
}
], - "category": [
- {
- "coding": [
]
}
], - "status": "final",
- "code": {
- "coding": [
]
}, - "effectiveDateTime": "2025-02-06T03:28:11Z",
- "valueCodeableConcept": {
}, - "subject": {
- "reference": "Patient/94abb041-5989-484a-848c-83012bcbfb3d"
}
}, - "request": {
- "method": "PUT",
- "url": "Observation/e1fe955d-a39b-14da-901e-a21a1b9c0ec0"
}
}, - {
- "fullUrl": "urn:uuid:6dc07146-a186-9f88-5cc8-af0aef7d7cd2",
- "resource": {
- "resourceType": "Observation",
- "id": "6dc07146-a186-9f88-5cc8-af0aef7d7cd2",
- "meta": {
- "source": "ecr"
}, - "identifier": [
- {
- "system": "urn:ietf:rfc:3986",
- "value": "urn:uuid:82f61228-21bc-4c0e-8491-d68bf0207d2f"
}
], - "category": [
- {
- "coding": [
]
}
], - "status": "final",
- "code": {
- "coding": [
]
}, - "effectiveDateTime": "2025-02-06T03:28:11Z",
- "valueCodeableConcept": {
}, - "subject": {
- "reference": "Patient/94abb041-5989-484a-848c-83012bcbfb3d"
}
}, - "request": {
- "method": "PUT",
- "url": "Observation/6dc07146-a186-9f88-5cc8-af0aef7d7cd2"
}
}, - {
- "fullUrl": "urn:uuid:",
- "resource": {
- "resourceType": "Observation",
- "meta": {
- "source": "ecr"
}
}, - "request": {
- "method": "PUT",
- "url": "Observation/"
}
}, - {
- "fullUrl": "urn:uuid:427d703c-b43c-53c7-e966-97ee5f217d03",
- "resource": {
- "resourceType": "Immunization",
- "id": "427d703c-b43c-53c7-e966-97ee5f217d03",
- "identifier": [
- {
- "system": "urn:ietf:rfc:3986",
- "value": "urn:uuid:e6f1ba43-c0ed-4b9b-9f12-f435d8ad8f92"
}
], - "occurrenceDateTime": "2025-01-15",
- "vaccineCode": {
- "coding": [
- {
- "code": "207",
- "system": "urn:oid:2.16.840.1.113883.12.292",
- "display": "SARS-COV-2 (COVID-19) vaccine, mRNA, spike protein, LNP, preservative free, 30 mcg/0.3mL dose"
}
]
}, - "lotNumber": "GR789456",
- "manufacturer": {
- "reference": "Organization/7d2ad2db-a128-1b97-1d07-0f38227f142a"
}, - "status": "completed",
- "primarySource": true,
- "route": {
- "coding": [
- {
- "code": "C28161",
- "system": "urn:oid:2.16.840.1.113883.3.26.1.1",
- "display": "Intramuscular injection"
}
]
}, - "patient": {
- "reference": "Patient/94abb041-5989-484a-848c-83012bcbfb3d"
}, - "meta": {
- "source": "ecr"
}
}, - "request": {
- "method": "PUT",
- "url": "Immunization/427d703c-b43c-53c7-e966-97ee5f217d03"
}
}, - {
- "fullUrl": "urn:uuid:7d2ad2db-a128-1b97-1d07-0f38227f142a",
- "resource": {
- "resourceType": "Organization",
- "id": "7d2ad2db-a128-1b97-1d07-0f38227f142a",
- "name": "Grand Republic Medical Systems",
- "meta": {
- "source": "ecr"
}
}, - "request": {
- "method": "PUT",
- "url": "Organization/7d2ad2db-a128-1b97-1d07-0f38227f142a"
}
}
]
}
}
For a given condition, queries and returns the value set of clinical services associated with that condition.
:param condition_code: A query param supplied as a string representing a single SNOMED condition code. :param filter_concepts: (Optional) A comma-separated string of value set types (defined by the abbreviation codes above) to keep. By default, all (currently) 6 value set types are returned; use this parameter to return only types of interest. :return: An HTTP Response containing the value sets of the queried code.
condition_code required | string (Condition Code) Examples:
|
filter_concepts | string (Filter Concepts) Examples:
|
{- "dxtc": [
- {
- "codes": [
- "A36.3",
- "A36",
- "A36.9",
- "A36.81",
- "A36.86",
- "A36.85",
- "A36.83",
- "A36.82",
- "A36.84",
- "A36.2",
- "A36.1",
- "A36.8",
- "A36.89",
- "A36.0"
],
}, - {
- "codes": [
- "194945009",
- "15682004",
- "1086051000119107",
- "7773002",
- "18901009",
- "397428000",
- "397430003",
- "1177005009",
- "186347006",
- "715659006",
- "1086061000119109",
- "1086071000119103",
- "48278001",
- "26117009",
- "230596007",
- "129667001",
- "13596001",
- "1259059003",
- "3419005",
- "276197005",
- "50215002",
- "75589004",
- "789005009",
- "1090211000119102",
- "240422004"
],
}
], - "lrtc": [
- {
- "codes": [
- "16676-9",
- "88584-8",
- "14483-2",
- "6596-1",
- "14481-6",
- "14482-4",
- "567-8",
- "14480-8",
- "14479-0"
],
}
], - "ostc": [
- {
- "codes": [
- "151000221104",
- "5851001",
- "83675005",
- "70876001",
- "13755001",
- "243255007",
- "708224008",
- "55123007",
- "443401009",
- "722313007",
- "722336003",
- "722790009",
- "722339005",
- "443377006",
- "722789000",
- "722346001",
- "722349008",
- "722350008"
],
}
],
}