ЕСОЗ - публічна документація
Приклади запитів та відповідей по Composition API
4 min
Analytics
Loading data...
Створення МВТН категорії “SICKNESS”
{
"category": {
"coding": [
{
"system": "COMPOSITION_CATEGORIES",
"code": "SICKNESS"
}
]
},
"type": {
"coding": [
{
"system": "COMPOSITION_TYPES",
"code": "TEMP_DISABILITY"
}
]
},
"event": [
{
"code": {
"coding": [
{
"system": "COMPOSITION_EVENTS",
"code": "COMPOSITION_VALIDITY_PERIOD"
}
]
},
"period": {
"start": "2022-10-24T10:45:16Z",
"end": "2022-10-28T10:45:16Z"
}
}
],
"subject": {
"type": {
"coding": [
{
"system": "eHealth/resources",
"code": "person"
}
],
"text": "string"
},
"value": "52b504c7-0177-4078-834b-52d89154081c"
},
"encounter": {
"type": {
"coding": [
{
"system": "eHealth/resources",
"code": "encounter"
}
],
"text": "string"
},
"value": "e39ee5ae-2644-4f04-8e64-bb359866e907"
},
"author": {
"type": {
"coding": [
{
"system": "eHealth/resources",
"code": "employee"
}
],
"text": "string"
},
"value": "43cc2161-1c2b-481b-a618-77e35817f850"
},
"section": {
"focus": {
"type": {
"coding": [
{
"system": "eHealth/resources",
"code": "person"
}
],
"text": "string"
},
"value": "52b504c7-0177-4078-834b-52d89154081c"
}
},
"extension": [
{
"valueCode": "AUTHORIZE_WITH",
"valueUuid": "e7ff2eef-712f-4676-960d-6aa16dce2103"
},
{
"valueCode": "IS_ACCIDENT",
"valueBoolean": true
},
{
"valueCode": "TREATMENT_VIOLATION",
"valueString": "reject_recommendation"
},
{
"valueCode": "TREATMENT_VIOLATION_DATE",
"valueDate": "2022-10-24"
},
{
"valueCode": "IS_INTOXICATED",
"valueBoolean": true
},
{
"valueCode": "IS_FOREIGN_TREATMENT",
"valueBoolean": true
},
{
"valueCode": "IS_FORCE_RENEW",
"valueBoolean": true
}
]
}
{
"data": {
"eta": "2022-10-24T12:35:49.956Z",
"id": "89678f60-4cdc-4fe3-ae83-e8b3ebd35c59",
"links": [
{
"entity": "eHealth/resources"
}
],
"status": "PENDING"
}
}
Створення МВН категорії “LIVE_BIRTH”
{
"category": {
"coding": [
{
"system": "COMPOSITION_CATEGORIES",
"code": "LIVE_BIRTH"
}
]
},
"type": {
"coding": [
{
"system": "COMPOSITION_TYPES",
"code": "NEWBORN"
}
]
},
"event": [
{
"code": {
"coding": [
{
"system": "COMPOSITION_EVENTS",
"code": "COMPOSITION_VALIDITY_PERIOD"
}
]
},
"period": {
"start": "2022-10-24T10:45:16Z",
"end": null
}
}
],
"subject": {
"type": {
"coding": [
{
"system": "eHealth/resources",
"code": "preperson"
}
],
"text": "string"
},
"value": "c7c41d7e-f0e5-4118-b5be-fedfb5a1e8ed"
},
"encounter": {
"type": {
"coding": [
{
"system": "eHealth/resources",
"code": "encounter"
}
],
"text": "string"
},
"value": "1846ea56-e8cb-435a-b15c-1b1700d014d2"
},
"author": {
"type": {
"coding": [
{
"system": "eHealth/resources",
"code": "employee"
}
],
"text": "string"
},
"value": "43cc2161-1c2b-481b-a618-77e35817f850"
},
"section": {
"focus": {
"type": {
"coding": [
{
"system": "eHealth/resources",
"code": "person"
}
],
"text": "string"
},
"value": "52b504c7-0177-4078-834b-52d89154081c"
}
},
"extension": [
{
"valueCode": "AUTHORIZE_WITH",
"valueUuid": "e7ff2eef-712f-4676-960d-6aa16dce2103"
},
{
"valueCode": "NEWBORN_BIRTH_DATE",
"valueDate": "2022-10-24"
},
{
"valueCode": "NEWBORN_SEX",
"valueString": "MALE"
}
]
}
{
"data": {
"eta": "2022-10-24T12:53:16.146Z",
"id": "02230161-a02d-4a93-bf09-199870623aa7",
"links": [
{
"entity": "eHealth/resources"
}
],
"status": "PENDING"
}
}
Отримання деталей МВТН категорії “COVID19”
{
"author": {
"type": {
"coding": [
{
"code": "employee",
"system": "eHealth/resources"
}
],
"text": "string"
},
"value": "43cc2161-1c2b-481b-a618-77e35817f850"
},
"category": {
"coding": [
{
"code": "COVID19",
"system": "COMPOSITION_CATEGORIES"
}
]
},
"custodian": {
"type": {
"coding": [
{
"code": "legal_entity",
"system": "eHealth/resources"
}
]
},
"value": "0dccb76f-3ed0-40f4-8f73-e95e2f91ea29"
},
"date": "2022-10-05T08:22:05.999Z",
"encounter": {
"type": {
"coding": [
{
"code": "encounter",
"system": "eHealth/resources"
}
],
"text": "string"
},
"value": "35125120-371c-4c00-96ad-9fba6cf19444"
},
"event": [
{
"code": {
"coding": [
{
"code": "COMPOSITION_VALIDITY_PERIOD",
"system": "COMPOSITION_EVENTS"
}
]
},
"period": {
"end": "2022-10-20T10:45:16Z",
"start": "2022-10-04T10:45:16Z"
}
}
],
"extension": [],
"identifier": {
"type": {
"coding": [
{
"code": "composition",
"system": "eHealth/resources"
}
]
},
"value": "769851be-8712-47a8-a32a-66a610fb4588"
},
"relatesTo": [
{
"code": "appends",
"targetIdentifier": {
"type": {
"coding": [
{
"code": "composition",
"system": "eHealth/resources"
}
]
},
"value": "15f892b1-a129-4364-826b-9322900ac415"
}
}
],
"section": {
"focus": {
"type": {
"coding": [
{
"code": "person",
"system": "eHealth/resources"
}
],
"text": "string"
},
"value": "caada087-f725-4481-8ae4-6c1b642e4fbb"
},
"text": {
"div": "",
"status": "empty"
}
},
"status": "PRELIMINARY",
"subject": {
"type": {
"coding": [
{
"code": "person",
"system": "eHealth/resources"
}
],
"text": "string"
},
"value": "caada087-f725-4481-8ae4-6c1b642e4fbb"
},
"title": "MM67-PC74-AHEE-MC76",
"type": {
"coding": [
{
"code": "TEMP_DISABILITY",
"system": "COMPOSITION_TYPES"
}
]
}
}
Пошук медичних висновків
[
{
"date": "2022-10-11T10:10:05.357Z",
"encounter": {
"type": {
"coding": [
{
"code": "encounter",
"system": "eHealth/resources"
}
],
"text": "string"
},
"value": "2d551dfd-28bd-4daa-bd1c-cc131041bc24"
},
"episodeOfCare": {
"type": {
"coding": [
{
"code": "episode",
"system": "eHealth/resources"
}
]
},
"value": "ac687cf0-465b-4ded-ac79-dfc160a93c80"
},
"identifier": {
"type": {
"coding": [
{
"code": "composition",
"system": "eHealth/resources"
}
]
},
"value": "6114d2c0-0047-4825-bf40-4dc036e21e58"
},
"status": "ENTERED_IN_ERROR",
"title": "8762-4X97-TMTE-A8CE",
"type": {
"coding": [
{
"code": "TEMP_DISABILITY",
"system": "COMPOSITION_TYPES"
}
]
}
},
{
"date": "2022-09-29T09:46:28.728Z",
"encounter": {
"type": {
"coding": [
{
"code": "encounter",
"system": "eHealth/resources"
}
],
"text": "string"
},
"value": "3673b16c-d3f0-4076-bbc5-90969ee9ea2d"
},
"episodeOfCare": {
"type": {
"coding": [
{
"code": "episode",
"system": "eHealth/resources"
}
]
},
"value": "ab7b0bdf-c77a-4afb-8454-13f692142fa4"
},
"identifier": {
"type": {
"coding": [
{
"code": "composition",
"system": "eHealth/resources"
}
]
},
"value": "8ce96df6-f232-4389-b67c-8a93d31f7521"
},
"status": "ENTERED_IN_ERROR",
"title": "7KAE-8T97-H2B4-C284",
"type": {
"coding": [
{
"code": "TEMP_DISABILITY",
"system": "COMPOSITION_TYPES"
}
]
}
},
{
"date": "2022-09-28T12:35:38.208Z",
"encounter": {
"type": {
"coding": [
{
"code": "encounter",
"system": "eHealth/resources"
}
],
"text": "string"
},
"value": "3673b16c-d3f0-4076-bbc5-90969ee9ea2d"
},
"episodeOfCare": {
"type": {
"coding": [
{
"code": "episode",
"system": "eHealth/resources"
}
]
},
"value": "ab7b0bdf-c77a-4afb-8454-13f692142fa4"
},
"identifier": {
"type": {
"coding": [
{
"code": "composition",
"system": "eHealth/resources"
}
]
},
"value": "448e101b-dffd-41e9-965f-e1f51bba1e4a"
},
"status": "ENTERED_IN_ERROR",
"title": "KEKT-3497-TC9H-PPE8",
"type": {
"coding": [
{
"code": "TEMP_DISABILITY",
"system": "COMPOSITION_TYPES"
}
]
}
}
]
Підписання медичного висновку
{
"data": {
"eta": "2022-10-14T11:26:04.574Z",
"id": "3c5cd759-9dba-418b-86f8-7721e09c3af9",
"links": [
{
"entity": "eHealth/resources",
"href": "composition/bb55c87a-65c5-4225-9f8b-d767b6d2cb9d"
}
],
"status": "PENDING"
}
}
Скасування медичного висновку
{
"data": {
"eta": "2022-10-24T13:14:01.656Z",
"id": "89edcfb2-3479-4565-885b-d0ce7f9d081e",
"links": [
{
"entity": "eHealth/resources",
"href": "composition/1aecb5c4-60c8-4773-900a-64d01b382ce9"
}
],
"status": "PENDING"
}
}
Отримання інформації про інтеграційні процеси по медичному висновку
[
{
"component": "MJU_DRACS",
"details": {
"personId": "fe88454e-7867-4795-8ab5-1fa54493a3d6",
},
"integrationStatus": "DONE",
"taskStatus": "DONE",
"type": "NEWBORN_POST_COMPOSITION",
"updatedAt": "2022-09-14T08:35:03.383Z"
}
]
[
{
"component": "ERLN",
"details": {
"SL_NUM": "517-2000002845-1",
"SL_REG_DATETIME": "2022-09-21T10:17:51Z",
"SL_STOP": "2022-09-29T00:00:00Z",
"SL_START": "2022-09-19T00:00:00Z",
"IC_NUM": "517"
},
"integrationStatus": "DONE",
"statusCode": 1101,
"statusMessage": "ЕЛН створено успішно",
"taskStatus": "DONE",
"type": "CREATE_ERLN_RECORD",
"updatedAt": "2022-09-21T07:18:48.274Z"
}
]
[
{
"component": "ERLN",
"details": {
"SL_NUM": "520-2000002848-1",
"SL_REG_DATETIME": "2022-09-22T12:36:08Z",
"SL_STOP": "2022-09-30T00:00:00Z",
"SL_START": "2022-09-20T00:00:00Z",
"IC_NUM": "520"
},
"integrationStatus": "DONE",
"statusCode": 1101,
"statusMessage": "ЕЛН створено успішно",
"taskStatus": "DONE",
"type": "CREATE_ERLN_RECORD",
"updatedAt": "2022-09-22T09:37:07.290Z"
},
{
"component": "ERLN",
"details": {
"SL_NUM": "520-2000002848-2",
"SL_REG_DATETIME": "2022-09-22T12:36:08Z",
"IC_NUM": "520"
},
"integrationStatus": "DONE",
"statusCode": 5101,
"taskStatus": "DONE",
"type": "CANCEL_ERLN_RECORD",
"updatedAt": "2022-09-22T09:39:33.749Z"
}
]
, multiple selections available,
Related content
RCС_CSI-3205 Приклади запитів та відповідей по Composition API
RCС_CSI-3205 Приклади запитів та відповідей по Composition API
More like this
Composition - специфікація.
Composition - специфікація.
Read with this
[DRAFT] REST API Submit Composition [API-007-011-001-0472]
[DRAFT] REST API Submit Composition [API-007-011-001-0472]
More like this
RC_(MC-1167)_[NEW] Composition dictionaries and configurations
RC_(MC-1167)_[NEW] Composition dictionaries and configurations
Read with this
[DRAFT] REST API Get Composition by search params [API-007-011-001-0476]
[DRAFT] REST API Get Composition by search params [API-007-011-001-0476]
More like this
COMPOSITION_CATEGORIES
COMPOSITION_CATEGORIES
Read with this
ЕСОЗ - публічна документація