FHIR® exercises FHIR® упражнения

Sam's FHIR journey

This exercise will help you practice your FHIR skills by having you create resources that follow our Sam Fhirman's small journey through the healthcare system.

Путешествие Сэма по FHIR

Это упражнение поможет отработать навыки работы с FHIR: вы создадите ресурсы, описывающие небольшое путешествие нашего Сэма Файрмэна по системе здравоохранения.

Step 1: Exercise description Шаг 1: Описание упражнения

Sam, our Patient with a known allergy (AllergyIntolerance) has an Appointment at a hospital (Organization) which results in a hospital Encounter. The doctor (Practitioner), who previously recorded Sams allergy, examines Sam and notices an allergy to fish, so he orders a test to be done (ServiceRequest) at the pathology lab (Organization). The hospitals system tracks this request using a Task, so the doctor can check the task at any time to see if there's been any progress made. When the pathology lab performs its analysis, it records 'Hemoglobin' result as an Observation in its 'Complete blood count' DiagnosticReport which is send to the FHIR server of the hospital. The pathology lab system updates the Task with the DiagnosticReport and notifies the doctor that results are available.

Ok, so maybe this doctor and pathology lab have no idea about healthcare, a 'Complete blood count' with only a single 'Hemoglobin' result for a Fish allergy. Sounds very fishy to me!

We need you to model this scenario as FHIR resources. You will need to create a Patient, AllergyIntolerance, Appointment, Encounter, Practitioner, ServiceRequest, Task, DiagnosticReport, Observation, and two Organization resources and have them reference each other appropriately. Try working as a group to split the load, or just work through the resources one by one together!

See diagram below for how the resources could be setup:

Сэм — наш пациент (Patient) с известной аллергией (AllergyIntolerance) — записан на приём (Appointment) в больницу (Organization), в результате чего в больнице регистрируется обращение (Encounter). Врач (Practitioner), который ранее зафиксировал аллергию Сэма, осматривает его, обращает внимание на аллергию на рыбу и назначает анализ (ServiceRequest) в лаборатории (Organization). Больничная система отслеживает это назначение с помощью задачи (Task), так что врач в любой момент может проверить её и узнать, как продвигается работа. Выполнив анализ, лаборатория записывает результат 'Hemoglobin' (гемоглобин) как Observation в свой DiagnosticReport 'Complete blood count' (общий анализ крови), который отправляется на FHIR-сервер больницы. Лабораторная система добавляет DiagnosticReport в Task и уведомляет врача о готовности результатов.

Ладно, возможно, этот врач и эта лаборатория ничего не смыслят в медицине: 'Complete blood count' с единственным результатом 'Hemoglobin' при аллергии на рыбу? Что-то тут нечисто — рыбой попахивает!

Ваша задача — смоделировать этот сценарий в виде ресурсов FHIR. Вам нужно создать ресурсы Patient, AllergyIntolerance, Appointment, Encounter, Practitioner, ServiceRequest, Task, DiagnosticReport, Observation и два ресурса Organization и правильно связать их ссылками друг с другом. Попробуйте работать группой и распределить нагрузку — или просто пройдите по ресурсам вместе, один за другим!

На схеме ниже показано, как можно организовать ресурсы:

Reference diagram for Sam's journey: Task points to ServiceRequest and DiagnosticReport; DiagnosticReport to ServiceRequest, Observation and the pathology lab Organization; ServiceRequest to Encounter, Practitioner and the pathology lab; Encounter to Appointment, Practitioner and the hospital Organization; AllergyIntolerance to Practitioner; everything leads to Patient Reference diagram for Sam's journey: Task points to ServiceRequest and DiagnosticReport; DiagnosticReport to ServiceRequest, Observation and the pathology lab Organization; ServiceRequest to Encounter, Practitioner and the pathology lab; Encounter to Appointment, Practitioner and the hospital Organization; AllergyIntolerance to Practitioner; everything leads to Patient
Step 2: Exercise answer Шаг 2: Ответ к упражнению

The answer with all resources included is available here (right-click and use 'Save as'). As this example is a FHIR transaction bundle, you can also just POST it to a FHIR servers endpoint and have all of the resources created for you on the server. But that would be cheating!

Answer is also available for viewing below:

Ответ со всеми ресурсами доступен здесь (щёлкните правой кнопкой мыши и выберите 'Сохранить как'). Поскольку этот пример представляет собой Bundle FHIR типа transaction, его можно просто отправить методом POST на конечную точку FHIR-сервера, и все ресурсы будут созданы на сервере автоматически. Но это было бы жульничеством!

Ответ также можно посмотреть ниже:

That's it for this exercise!

Вот и всё, упражнение завершено!