Implementasi Use Case Tuberkulosis

Implementasi pelaporan kasus Tuberculosis (TB) secara umum dapat dikelompokkan menjadi 5 tahapan proses sebagai berikut:

  1. Registrasi Kasus
  2. Pemeriksaan Penunjang
  3. Verifikasi Kasus
  4. Kunjungan Pengobatan Bulanan
  5. Kunjungan Akhir Pengobatan

Proses dimulai dari megistrasikan kasus yang berupa identitas pasien dan FASYANKES tempat terjadinya pemeriksaan disertai dengan permintaan pemeriksaan penunjang (laboratorium dan radiologi) yang dibutuhkan untuk dapat melakukan case finding. Hasil temuan yang diperoleh dari pemeriksaan penunjang digunakan untuk memverifikasi data kasus untuk menentukan bagaimana perawatan(pengobatan) kasus Tuberculosis selanjutnya.

Dalam pelaksanaannya proses Registrasi Kasus, Pemeriksaan Penunjang hingga Verifikasi Kasus dapat dilaksanakan satu rangkaian pencatatan di awal perekaman kasus. Sehingga proses perekaman data TB dapat dikelompokkan menjadi tiga sesuai dengan fase pelaksanaannya seperti yang tergambar pada diagram berikut.

alt text

Data yang telah Terkonfirmasi Bakteriologis dan Terdiagnosis Klinis akan ditindaklanjuti dengan pencatatan pada kunjungan perawatan bulanan. Data kunjungan tiap bulan tersebut dicatat dan dikirim sesuai tata laksana yaitu pada bulan kedua, ketiga dan kelima secara rutin. Baru kemudian pada kunjungan akhir perawatan dilakukan pencatatan hasil akhir dan dikirimkan ke SATUSEHAT.

Strategi Pengiriman data ke SATUSEHAT

SATUSEHAT menyediakan dua pilihan cara mengirimkan data use case Tuberkulosis:

1. Berbasis Resource

Data dapat dikirimkan secara berurutan sesuai resource yang terlibat pada alur pelayanan terkait. Sebagai contoh: ketika mengirimkan data registrasi pasus saja yang berisikan resource Encounter dan Condition, maka implementor mengirimkan resource-resource tersebut ke SATUSEHAT secara berurutan sesuai dependensinya.

2. Berbasis Bundle

Data dapat dikirimkan seluruh resource yang terlibat pada alur pelayanan terkait dengan menggunakan satu langkah pengiriman data ke SATUSEHAT menggunakan profil FHIR bernama Bundle.


Resource-resource yang terlibat di setiap tahapan alur pelayanan untuk use case Tuberkulosis adalah sebagai berikut:

No Resource Entry Mandatory
1 Encounter * Required
2 Observation Required
3 DiagnosticReport Required
4 Condition Required
5 EpisodeOfCare Required
6 Medication Optional
7 MedicationRequest Optional
8 QuestionnaireResponse Required

* ) Profile Resource yang direkomendasikan tersedia pada proses pencatatan Mandatory )

  1. Required: Entry resource harus dilibatkan setiap kali mengirimkan bundle
  2. Optional: Entry resource dapat tidak dilibatkan setiap kali mengirimkan bundle
alt text

Perekaman awal kasus Tuberkulosis: dimulai dari Registrasi Kasus, Pemeriksaan Penunjang dan diakhiri oleh Verifikasi Kasus Temuan

A. Registrasi Kasus

Proses ini secara khusus untuk meregistrasikan data kunjungan pasien, fasyankes tempat pemeriksaan serta permintaan pemeriksaan laboratorium atau radiologis. Karena data pasien di dalam SATUSEHAT sudah terdaftar lebih dulu, sehingga registrasi data pasien baru tidak perlukan. Dengan demikian maka entry data untuk resource Patient tidak perlu diikutsertakan dalam bundle data yang dikirim.

Disamping itu terkait dengan data FASYANKES tempat dilakukannya perawatan TB juga tidak perlu dikirimkan data alamat seperti provinsi, dan kabupaten/kota karena data sudah tersedia pada Facility Master Index yang ada di SATUSEHAT. Referensi terkait data FASYANKES dapat dilakukan menggunakan kode referensi SATUSEHAT Number FASYANKES untuk menandai EpisodeOfCare.managingOrganization dan Encounter.serviceProvider.

I. Berbasis Resource

Entry Resources yang digunakan

No Nama Resource Entry Mandatory Metode
1 Encounter Required BUAT BARU (POST)

1. Encouter

{
    "resourceType": "Encounter",
    "identifier":  [
        {
            "system": "http://sys-ids.kemkes.go.id/encounter/10084561",
            "value": "P20240001"
        }
    ],
    "status": "arrived",
    "class": {
        "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "code": "AMB",
        "display": "ambulatory"
    },
    "subject": {
        "reference": "Patient/100000030009",
        "display": "Budi Santoso"
    },
    "participant":  [
        {
            "type":  [
                {
                    "coding":  [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                            "code": "ATND",
                            "display": "attender"
                        }
                    ]
                }
            ],
            "individual": {
                "reference": "Practitioner/N10000001",
                "display": "Dokter Bronsig"
            }
        }
    ],
    "period": {
        "start": "2022-06-14T07:00:00+07:00"
    },
    "location":  [
        {
            "location": {
                "reference": "Location/ef011065-38c9-46f8-9c35-d1fe68966a3e",
                "display": "Ruang 1A, Poliklinik Rawat Jalan"
            }
        }
    ],
    "statusHistory":  [
        {
            "status": "arrived",
            "period": {
                "start": "2022-06-14T07:00:00+07:00",
                "end": "2022-06-14T09:00:00+07:00"
            }
        }
    ],
    "serviceProvider": {
        "reference": "Organization/10084561"
    }
}
{
    "resourceType": "Encounter",
    "identifier": [
        {
            "system": "http://sys-ids.kemkes.go.id/encounter/{{FACILITY_IHS_NUMBER}}",
            "value": "{{ENCOUNTER_LOCAL_CODE}}"
        }
    ],
    "status": "arrived",
    "class": {
        "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "code": "AMB",
        "display": "ambulatory"
    },
    "subject": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}",
        "display": "{{PATIENT_NAME}}"
    },
    "participant": [
        {
            "type": [
                {
                    "coding": [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                            "code": "ATND",
                            "display": "attender"
                        }
                    ]
                }
            ],
            "individual": {
                "reference": "Practitioner/{{DOCTOR_IHS_NUMBER}}",
                "display": "{{DOCTOR_NAME}}"
            }
        }
    ],
    "period": {
        "start": "{{ENCOUNTER_PERIOD1_START}}"
    },
    "location": [
        {
            "location": {
                "reference": "Location/{{ENCOUNTER_LOCATION_ID}}",
                "display": "{{ENCOUNTER_LOCATION_NAME}}"
            }
        }
    ],
    "statusHistory": [
        {
            "status": "arrived",
            "period": {
                "start": "{{ENCOUNTER_PERIOD1_START}}",
                "end": "{{ENCOUNTER_PERIOD1_END}}"
            }
        }
    ],
    "serviceProvider": {
        "reference": "Organization/{{FACILITY_IHS_NUMBER}}"
    }
}
        
Variabel Deskripsi
ENCOUNTER_LOCAL_CODE ID Lokal untuk Kunjungan/Encounter
PATIENT_IHS_NUMBER SATUSEHAT ID Number untuk Pasien
PATIENT_NAME Nama Pasien
DOCTOR_IHS_NUMBER SATUSEHAT ID untuk Dokter/Nakes
DOCTOR_NAME Nama Dokter/Nakes
FACILITY_IHS_NUMBER SATUSEHAT ID untuk FASYANKES
ENCOUNTER_PERIOD1_START Waktu mulai/check-in kunjungan
ENCOUNTER_PERIOD1_END Waktu mulai/check-out kunjungan
ENCOUNTER_LOCATION_ID ID Location tempat kunjungan dilakukan
ENCOUNTER_LOCATION_NAME Nama Location tempat kunjungan dilakukan

II. Berbasis Bundle

B. Pemeriksaan Penunjang

Pada tahap ini dilakukan pencatatan terhadap hasil pemeriksaan penunjang laboratorium atau radiologis berupa DiagnosticReport.

CATATAN: Hasil pemeriksaan penunjang tersebut dapat mereferensi ke Encounter (kunjungan) yang sama dengan Encounter registrasi, jika hasil pemeriksaan dapat diperoleh di kunjungan (hari) yang sama. Jika hasil pemeriksaan tidak bisa segera didapatkan dan harus kembali di kunjungan berikutnya maka dapat membuat Encounter baru sesuai kunjungan tersebut.

I. Berbasis Resource

Entry Resources yang digunakan

No Nama Resource Entry Mandatory Metode
1 Encounter Required UPDATE(PUT) jika pemeriksaan dilakukan dikunjungan yang sama atau BUAT BARU(POST) jika berbeda kunjungan
2 Observation Required BUAT BARU(POST)
3 DiagnosticReport Required BUAT BARU(POST)

1. Encouter

{
    "resourceType": "Encounter",
    "identifier":  [
        {
            "system": "http://sys-ids.kemkes.go.id/encounter/10084561",
            "value": "P20240001"
        }
    ],
    "status": "arrived",
    "class": {
        "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "code": "AMB",
        "display": "ambulatory"
    },
    "subject": {
        "reference": "Patient/100000030009",
        "display": "Budi Santoso"
    },
    "participant":  [
        {
            "type":  [
                {
                    "coding":  [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                            "code": "ATND",
                            "display": "attender"
                        }
                    ]
                }
            ],
            "individual": {
                "reference": "Practitioner/N10000001",
                "display": "Dokter Bronsig"
            }
        }
    ],
    "period": {
        "start": "2022-06-14T07:00:00+07:00"
    },
    "location":  [
        {
            "location": {
                "reference": "Location/ef011065-38c9-46f8-9c35-d1fe68966a3e",
                "display": "Ruang 1A, Poliklinik Rawat Jalan"
            }
        }
    ],
    "statusHistory":  [
        {
            "status": "arrived",
            "period": {
                "start": "2022-06-14T07:00:00+07:00",
                "end": "2022-06-14T09:00:00+07:00"
            }
        }
    ],
    "serviceProvider": {
        "reference": "Organization/10084561"
    }
}
{
    "resourceType": "Encounter",
    "identifier": [
        {
            "system": "http://sys-ids.kemkes.go.id/encounter/{{FACILITY_IHS_NUMBER}}",
            "value": "{{ENCOUNTER_LOCAL_CODE}}"
        }
    ],
    "status": "arrived",
    "class": {
        "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "code": "AMB",
        "display": "ambulatory"
    },
    "subject": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}",
        "display": "{{PATIENT_NAME}}"
    },
    "participant": [
        {
            "type": [
                {
                    "coding": [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                            "code": "ATND",
                            "display": "attender"
                        }
                    ]
                }
            ],
            "individual": {
                "reference": "Practitioner/{{DOCTOR_IHS_NUMBER}}",
                "display": "{{DOCTOR_NAME}}"
            }
        }
    ],
    "period": {
        "start": "{{ENCOUNTER_PERIOD1_START}}"
    },
    "location": [
        {
            "location": {
                "reference": "Location/{{ENCOUNTER_LOCATION_ID}}",
                "display": "{{ENCOUNTER_LOCATION_NAME}}"
            }
        }
    ],
    "statusHistory": [
        {
            "status": "arrived",
            "period": {
                "start": "{{ENCOUNTER_PERIOD1_START}}",
                "end": "{{ENCOUNTER_PERIOD1_END}}"
            }
        }
    ],
    "serviceProvider": {
        "reference": "Organization/{{FACILITY_IHS_NUMBER}}"
    }
}
        
Variabel Deskripsi
ENCOUNTER_LOCAL_CODE ID Lokal untuk Kunjungan/Encounter
PATIENT_IHS_NUMBER SATUSEHAT ID Number untuk Pasien
PATIENT_NAME Nama Pasien
DOCTOR_IHS_NUMBER SATUSEHAT ID untuk Dokter/Nakes
DOCTOR_NAME Nama Dokter/Nakes
FACILITY_IHS_NUMBER SATUSEHAT ID untuk FASYANKES
ENCOUNTER_PERIOD1_START Waktu mulai/check-in kunjungan
ENCOUNTER_PERIOD1_END Waktu mulai/check-out kunjungan
ENCOUNTER_LOCATION_ID ID Location tempat kunjungan dilakukan
ENCOUNTER_LOCATION_NAME Nama Location tempat kunjungan dilakukan

2. Observation

Hasil Pemeriksaan Mikroskopis

{
    "resourceType": "Observation",
    "identifier":  [
        {
            "system": "http://sys-ids.kemkes.go.id/observation/10080058",
            "value": "O111111"
        }
    ],
    "status": "final",
    "category":  [
        {
            "coding":  [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                    "code": "laboratory",
                    "display": "Laboratory"
                }
            ]
        }
    ],
    "code": {
        "coding":  [
            {
                "system": "http://loinc.org",
                "code": "11477-7",
                "display": "Microscopic observation [Identifier] in Sputum by Acid fast stain"
            }
        ]
    },
    "subject": {
        "reference": "Patient/100000030009"
    },
    "encounter": {
        "reference": "Encounter/fea39334-09bc-42a7-8063-a5d66abf4520"
    },
    "effectiveDateTime": "2021-07-02",
    "issued": "2022-08-07T15:30:10+01:00",
    "performer":  [
        {
            "reference": "Practitioner/N10000001"
        },
        {
            "reference": "Organization/10080058"
        }
    ],
    "valueCodeableConcept": {
        "coding":  [
            {
                "system": "http://snomed.info/sct",
                "code": "260347006",
                "display": "+"
            }
        ]
    },
    "referenceRange":  [
        {
            "text": "Negative"
        }
    ]
}

Hasil Pemeriksaan Test Cepat Molekuler

{
    "resourceType": "Observation",
    "identifier":  [
        {
            "system": "http://sys-ids.kemkes.go.id/observation/1000004",
            "value": "O111111"
        }
    ],
    "status": "final",
    "category":  [
        {
            "coding":  [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                    "code": "laboratory",
                    "display": "Laboratory"
                }
            ]
        }
    ],
    "code": {
        "coding":  [
            {
                "system": "http://loinc.org",
                "code": "88874-3",
                "display": "Mycobacterium tuberculosis complex DNA [Presence] in Isolate or Specimen by Molecular genetics method"
            }
        ]
    },
    "subject": {
        "reference": "Patient/100000030009"
    },
    "encounter": {
        "reference": "Encounter/14e8398c-1016-44b8-b619-a802b80d2c94"
    },
    "effectiveDateTime": "2021-07-02",
    "issued": "2022-08-07T15:30:10+01:00",
    "performer":  [
        {
            "reference": "Practitioner/N10000001"
        },
        {
            "reference": "Organization/10000004"
        }
    ],
    "valueCodeableConcept": {
        "coding":  [
            {
                "system": "http://loinc.org",
                "code": "LA11882-0",
                "display": "Detected"
            }
        ]
    },
    "referenceRange":  [
        {
            "text": "Undetected"
        }
    ]
}

Hasil Pemeriksaan Biakan

{
    "resourceType": "Observation",
    "identifier":  [
        {
            "system": "http://sys-ids.kemkes.go.id/observation/1000004",
            "value": "O111111"
        }
    ],
    "status": "final",
    "category":  [
        {
            "coding":  [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                    "code": "laboratory",
                    "display": "Laboratory"
                }
            ]
        }
    ],
    "code": {
        "coding":  [
            {
                "system": "http://loinc.org",
                "code": "539-7",
                "display": "Mycobacterium sp identified in Sputum by Organism specific culture"
            }
        ]
    },
    "subject": {
        "reference": "Patient/100000030009"
    },
    "encounter": {
        "reference": "Encounter/14e8398c-1016-44b8-b619-a802b80d2c94"
    },
    "effectiveDateTime": "2021-07-02",
    "issued": "2022-08-07T15:30:10+01:00",
    "performer":  [
        {
            "reference": "Practitioner/N10000001"
        },
        {
            "reference": "Organization/10000004"
        }
    ],
    "dataAbsentReason": {
        "coding":  [
            {
                "system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
                "code": "not-performed",
                "display": "Not Performed"
            }
        ]
    },
    "referenceRange":  [
        {
            "text": "Negative"
        }
    ]
}

Hasil Pemeriksaan Foto Thorax

{
    "resourceType": "Observation",
    "identifier":  [
        {
            "system": "http://sys-ids.kemkes.go.id/observation/1000004",
            "value": "O111112"
        }
    ],
    "status": "final",
    "category":  [
        {
            "coding":  [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v2-0074",
                    "code": "RAD",
                    "display": "Radiology"
                }
            ]
        }
    ],
    "code": {
        "coding":  [
            {
                "system": "http://loinc.org",
                "code": "24648-8",
                "display": "XR Chest PA upright"
            }
        ]
    },
    "subject": {
        "reference": "Patient/100000030009"
    },
    "encounter": {
        "reference": "Encounter/14e8398c-1016-44b8-b619-a802b80d2c94"
    },
    "effectiveDateTime": "2022-06-14",
    "bodySite": {
        "coding":  [
            {
                "system": "http://snomed.info/sct",
                "code": "51185008",
                "display": "Chest"
            }
        ]
    },
    "valueString": "Uraian hasil pemeriksaan: foto thorax, proyeksi PA, posisi erect, asimetris, inspirasi dan kondisi cukup dengan hasil: 1) tampak cavitas inhomogen di proyeksi pulmo bilateral terutama dextra, batas tak tegas disertai penebalan fibrotic, cavitas (+), 2) tak tampak pemadatan limfonodi hilus bilateral, 3) tampak kedua costofrenicus lancip, 4) tampak kedua diafragma licin dan tak mendatar, 5) cor CTR tak valid dinilai (asimetri), tampak kalsifikasi di arcus aorta dengan bentuk crescent, 6) sistem tulang yang tervisualisasi intact. Kesan: TB paru lama aktif, besar cor tak valid dinilai, aortosclerosis",
    "performer":  [
        {
            "reference": "Practitioner/N10000001"
        },
        {
            "reference": "Organization/10000004"
        }
    ],
    "interpretation":  [
        {
            "coding":  [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
                    "code": "POS",
                    "display": "Positive"
                }
            ]
        }
    ],
    "referenceRange":  [
        {
            "text": "No abnormalities found"
        }
    ]
}

Hasil Pemeriksaan Mikroskopis

{
    "resourceType": "Observation",
    "identifier": [
        {
            "system": "http://sys-ids.kemkes.go.id/observation/{{FACILITY_IHS_NUMBER}}",
            "value": "{{OBSERVATION1_LOCAL_CODE}}"
        }
    ],
    "status": "final",
    "category": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                    "code": "laboratory",
                    "display": "Laboratory"
                }
            ]
        }
    ],
    "code": {
        "coding": [
            {
                "system": "http://loinc.org",
                "code": "11477-7",
                "display": "Microscopic observation [Identifier] in Sputum by Acid fast stain"
            }
        ]
    },
    "subject": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}"
    },
    "encounter": {
        "reference": "Encounter/{{ENCOUNTER_REFERENCE_ID}}"
    },
    "effectiveDateTime": "{{OBSERVATION_EFFECTIVE_DATETIME}}",
    "issued": "{{OBSERVATION_ISSUED}}",
    "performer": [
        {
            "reference": "Practitioner/{{DOCTOR_IHS_NUMBER}}"
        },
        {
            "reference": "Organization/{{FACILITY_IHS_NUMBER}}"
        }
    ],
    "valueCodeableConcept": {
        "coding": [
            {
                "system": "http://snomed.info/sct",
                "code": "260347006",
                "display": "+"
            }
        ]
    },
    "referenceRange": [
        {
            "text": "Negative"
        }
    ]
}
        

Hasil Pemeriksaan Test Cepat Molekuler

{
    "resourceType": "Observation",
    "identifier": [
        {
            "system": "http://sys-ids.kemkes.go.id/observation/{{FACILITY_IHS_NUMBER}}",
            "value": "{{OBSERVATION3_LOCAL_CODE}}"
        }
    ],
    "status": "final",
    "category": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                    "code": "laboratory",
                    "display": "Laboratory"
                }
            ]
        }
    ],
    "code": {
        "coding": [
            {
                "system": "http://loinc.org",
                "code": "88874-3",
                "display": "Mycobacterium tuberculosis complex DNA [Presence] in Isolate or Specimen by Molecular genetics method"
            }
        ]
    },
    "subject": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}"
    },
    "encounter": {
        "reference": "Encounter/{{ENCOUNTER_REFERENCE_ID}}"
    },
    "effectiveDateTime": "{{OBSERVATION_EFFECTIVE_DATETIME}}",
    "issued": "{{OBSERVATION_ISSUED}}",
    "performer": [
        {
            "reference": "Practitioner/{{DOCTOR_IHS_NUMBER}}"
        },
        {
            "reference": "Organization/{{FACILITY_IHS_NUMBER}}"
        }
    ],
    "valueCodeableConcept": {
        "coding": [
            {
                "system": "http://loinc.org",
                "code": "LA11882-0",
                "display": "Detected"
            }
        ]
    },
    "referenceRange": [
        {
            "text": "Undetected"
        }
    ]
}
        

Hasil Pemeriksaan Biakan

{
    "resourceType": "Observation",
    "identifier": [
        {
            "system": "http://sys-ids.kemkes.go.id/observation/{{FACILITY_IHS_NUMBER}}",
            "value": "{{OBSERVATION7_LOCAL_CODE}}"
        }
    ],
    "status": "final",
    "category": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                    "code": "laboratory",
                    "display": "Laboratory"
                }
            ]
        }
    ],
    "code": {
        "coding": [
            {
                "system": "http://loinc.org",
                "code": "539-7",
                "display": "Mycobacterium sp identified in Sputum by Organism specific culture"
            }
        ]
    },
    "subject": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}"
    },
    "encounter": {
        "reference": "Encounter/{{ENCOUNTER_REFERENCE_ID}}"
    },
    "effectiveDateTime": "{{OBSERVATION_EFFECTIVE_DATETIME}}",
    "issued": "{{OBSERVATION_ISSUED}}",
    "performer": [
        {
            "reference": "Practitioner/{{DOCTOR_IHS_NUMBER}}"
        },
        {
            "reference": "Organization/{{FACILITY_IHS_NUMBER}}"
        }
    ],
    "dataAbsentReason": {
        "coding": [
            {
                "system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
                "code": "not-performed",
                "display": "Not Performed"
            }
        ]
    },
    "referenceRange": [
        {
            "text": "Negative"
        }
    ]
}
        

Hasil Pemeriksaan Foto Thorax

{
    "resourceType": "Observation",
    "identifier": [
        {
            "system": "http://sys-ids.kemkes.go.id/observation/{{FACILITY_IHS_NUMBER}}",
            "value": "{{OBSERVATION8_LOCAL_CODE}}"
        }
    ],
    "status": "final",
    "category": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v2-0074",
                    "code": "RAD",
                    "display": "Radiology"
                }
            ]
        }
    ],
    "code": {
        "coding": [
            {
                "system": "http://loinc.org",
                "code": "24648-8",
                "display": "XR Chest PA upright"
            }
        ]
    },
    "subject": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}"
    },
    "encounter": {
        "reference": "Encounter/{{ENCOUNTER_REFERENCE_ID}}"
    },
    "effectiveDateTime": "{{OBSERVATION_EFFECTIVE_DATETIME}}",
    "bodySite": {
        "coding": [
            {
                "system": "http://snomed.info/sct",
                "code": "51185008",
                "display": "Chest"
            }
        ]
    },
    "valueString": "Uraian hasil pemeriksaan: foto thorax, proyeksi PA, posisi erect, asimetris, inspirasi dan kondisi cukup dengan hasil: 1) tampak cavitas inhomogen di proyeksi pulmo bilateral terutama dextra, batas tak tegas disertai penebalan fibrotic, cavitas (+), 2) tak tampak pemadatan limfonodi hilus bilateral, 3) tampak kedua costofrenicus lancip, 4) tampak kedua diafragma licin dan tak mendatar, 5) cor CTR tak valid dinilai (asimetri), tampak kalsifikasi di arcus aorta dengan bentuk crescent, 6) sistem tulang yang tervisualisasi intact. Kesan: TB paru lama aktif, besar cor tak valid dinilai, aortosclerosis",
    "performer": [
        {
            "reference": "Practitioner/{{DOCTOR_IHS_NUMBER}}"
        },
        {
            "reference": "Organization/{{FACILITY_IHS_NUMBER}}"
        }
    ],
    "interpretation": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
                    "code": "POS",
                    "display": "Positive"
                }
            ]
        }
    ],
    "referenceRange": [
        {
            "text": "No abnormalities found"
        }
    ]
}
        
Variabel Deskripsi
$GENERATED_UUID_ENCOUNTER UUID Encounter yang digenerate
$CODE_OBSERVATION_1 CodeSystem pemeriksaan mikroskopis
$CODE_OBSERVATION_2 CodeSystem pemeriksaan test cepat
$CODE_OBSERVATION_3 CodeSystem pemeriksaan biakan
$CODE_OBSERVATION_4 CodeSystem pemeriksaan foto thorax
$VALUE_OBSERVATION_1 Value pemeriksaan mikroskopis
$VALUE_OBSERVATION_2 Value pemeriksaan test cepat
$VALUE_OBSERVATION_3 Value pemeriksaan biakan
$VALUE_OBSERVATION_4 Value pemeriksaan foto thorax

3. DiagnosticReport

Hasil Pemeriksaan Mikroskopis

{
    "resourceType": "DiagnosticReport",
    "identifier":  [
        {
            "system": "http://sys-ids.kemkes.go.id/diagnostic/10000004/lab",
            "use": "official",
            "value": "5234342"
        }
    ],
    "status": "final",
    "category":  [
        {
            "coding":  [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v2-0074",
                    "code": "MB",
                    "display": "Microbiology"
                }
            ]
        }
    ],
    "code": {
        "coding":  [
            {
                "system": "http://loinc.org",
                "code": "11477-7",
                "display": "Microscopic observation [Identifier] in Sputum by Acid fast stain"
            }
        ]
    },
    "subject": {
        "reference": "Patient/100000030009"
    },
    "encounter": {
        "reference": "Encounter/14e8398c-1016-44b8-b619-a802b80d2c94"
    },
    "effectiveDateTime": "2012-12-01T12:00:00+01:00",
    "issued": "2012-12-01T12:00:00+01:00",
    "performer":  [
        {
            "reference": "Practitioner/N10000001"
        },
        {
            "reference": "Organization/10000004"
        }
    ],
    "result":  [
        {
            "reference": "Observation/fee00417-ce11-41b7-9965-f0c11678efa1"
        }
    ],
    "conclusionCode":  [
        {
            "coding":  [
                {
                    "system": "http://snomed.info/sct",
                    "code": "260347006",
                    "display": "+"
                }
            ]
        }
    ]
}

Hasil Pemeriksaan Test Cepat Molekuler

{
    "resourceType": "DiagnosticReport",
    "identifier":  [
        {
            "system": "http://sys-ids.kemkes.go.id/diagnostic/10000004/lab",
            "use": "official",
            "value": "5234342"
        }
    ],
    "status": "final",
    "category":  [
        {
            "coding":  [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v2-0074",
                    "code": "MB",
                    "display": "Microbiology"
                }
            ]
        }
    ],
    "code": {
        "coding":  [
            {
                "system": "http://loinc.org",
                "code": "647-8",
                "display": "Microscopic observation [Identifier] in Sputum by Acid fast stain.Ziehl-Neelsen"
            }
        ]
    },
    "subject": {
        "reference": "Patient/100000030009"
    },
    "encounter": {
        "reference": "Encounter/14e8398c-1016-44b8-b619-a802b80d2c94"
    },
    "effectiveDateTime": "2012-12-01T12:00:00+01:00",
    "issued": "2012-12-01T12:00:00+01:00",
    "performer":  [
        {
            "reference": "Practitioner/N10000001"
        },
        {
            "reference": "Organization/10000004"
        }
    ],
    "result":  [
        {
            "reference": "Observation/a7cbd8da-6dc5-4bce-b078-55079c909d22",
            "display": "Mycobacterium tuberculosis complex DNA [Presence] in Isolate or Specimen by Molecular genetics method"
        },
        {
            "reference": "Observation/5706a45e-52d1-4021-ab73-18239a0db648",
            "display": "Mycobacterium tuberculosis complex rpoB gene rifAMPin resistance mutation [Presence] by Molecular method"
        }
    ],
    "conclusionCode":  [
        {
            "coding":  [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
                    "code": "S",
                    "display": "Susceptible"
                }
            ]
        }
    ]
}

Hasil Pemeriksaan Biakan

{
    "resourceType": "DiagnosticReport",
    "identifier":  [
        {
            "system": "http://sys-ids.kemkes.go.id/diagnostic/10000004/lab",
            "use": "official",
            "value": "5234342"
        }
    ],
    "status": "final",
    "category":  [
        {
            "coding":  [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v2-0074",
                    "code": "MB",
                    "display": "Microbiology"
                }
            ]
        }
    ],
    "code": {
        "coding":  [
            {
                "system": "http://loinc.org",
                "code": "647-8",
                "display": "Microscopic observation [Identifier] in Sputum by Acid fast stain.Ziehl-Neelsen"
            }
        ]
    },
    "subject": {
        "reference": "Patient/100000030009"
    },
    "encounter": {
        "reference": "Encounter/14e8398c-1016-44b8-b619-a802b80d2c94"
    },
    "effectiveDateTime": "2012-12-01T12:00:00+01:00",
    "issued": "2012-12-01T12:00:00+01:00",
    "performer":  [
        {
            "reference": "Practitioner/N10000001"
        },
        {
            "reference": "Organization/10000004"
        }
    ],
    "result":  [
        {
            "reference": "Observation/93ee0e9e-3e17-4c8a-ab25-4ab3d0069d6d",
            "display": "Mycobacterium sp identified in Sputum by Organism specific culture"
        }
    ],
    "conclusionCode":  [
        {
            "coding":  [
                {
                    "system": "http://loinc.org",
                    "code": "LA6577-6",
                    "display": "Negative"
                }
            ]
        }
    ]
}

Hasil Pemeriksaan Foto Thorax

{
    "resourceType": "DiagnosticReport",
    "identifier":  [
        {
            "system": "http://sys-ids.kemkes.go.id/diagnostic/10000004/radiology",
            "use": "official",
            "value": "5234342"
        }
    ],
    "status": "final",
    "category":  [
        {
            "coding":  [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v2-0074",
                    "code": "RAD",
                    "display": "Radiology"
                }
            ]
        }
    ],
    "code": {
        "coding":  [
            {
                "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                "code": "imaging",
                "display": "Imaging"
            }
        ]
    },
    "subject": {
        "reference": "Patient/100000030009"
    },
    "encounter": {
        "reference": "Encounter/14e8398c-1016-44b8-b619-a802b80d2c94"
    },
    "effectiveDateTime": "2012-12-01T12:00:00+01:00",
    "issued": "2012-12-01T12:00:00+01:00",
    "performer":  [
        {
            "reference": "Practitioner/N10000001"
        },
        {
            "reference": "Organization/10000004"
        }
    ],
    "result":  [
        {
            "reference": "Observation/359c66f2-0383-487a-8dee-69e71aea4de3",
            "display": "XR Chest PA upright"
        }
    ],
    "conclusionCode":  [
        {
            "coding":  [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
                    "code": "POS",
                    "display": "Positive"
                }
            ]
        }
    ]
}

Hasil Pemeriksaan Mikroskopis

{
    "resourceType": "DiagnosticReport",
    "identifier": [
        {
            "system": "http://sys-ids.kemkes.go.id/diagnostic/{{FACILITY_IHS_NUMBER}}/lab",
            "use": "official",
            "value": "{{DIAGNOSTICREPORT_LOCAL_CODE}}"
        }
    ],
    "status": "final",
    "category": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v2-0074",
                    "code": "MB",
                    "display": "Microbiology"
                }
            ]
        }
    ],
    "code": {
        "coding": [
            {
                "system": "http://loinc.org",
                "code": "11477-7",
                "display": "Microscopic observation [Identifier] in Sputum by Acid fast stain"
            }
        ]
    },
    "subject": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}"
    },
    "encounter": {
        "reference": "Encounter/{{ENCOUNTER_REFERENCE_ID}}"
    },
    "effectiveDateTime": "{{OBSERVATION_EFFECTIVE_DATETIME}}",
    "issued": "{{OBSERVATION_ISSUED}}",
    "performer": [
        {
            "reference": "Practitioner/{{DOCTOR_IHS_NUMBER}}"
        },
        {
            "reference": "Organization/{{FACILITY_IHS_NUMBER}}"
        }
    ],
    "result": [
        {
            "reference": "Observation/{{OBSERVATION1_REFERENCE_ID}}",
            "display": "Microscopic observation [Identifier] in Sputum by Acid fast stain"
        }
    ],
    "conclusionCode": [
        {
            "coding": [
                {
                    "system": "http://snomed.info/sct",
                    "code": "260347006",
                    "display": "+"
                }
            ]
        }
    ]
}
        

Hasil Pemeriksaan Test Cepat Molekuler

{
    "resourceType": "DiagnosticReport",
    "identifier": [
        {
            "system": "http://sys-ids.kemkes.go.id/diagnostic/{{FACILITY_IHS_NUMBER}}/lab",
            "use": "official",
            "value": "{{DIAGNOSTICREPORT_LOCAL_CODE}}"
        }
    ],
    "status": "final",
    "category": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v2-0074",
                    "code": "MB",
                    "display": "Microbiology"
                }
            ]
        }
    ],
    "code": {
        "coding": [
            {
                "system": "http://loinc.org",
                "code": "647-8",
                "display": "Microscopic observation [Identifier] in Sputum by Acid fast stain.Ziehl-Neelsen"
            }
        ]
    },
    "subject": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}"
    },
    "encounter": {
        "reference": "Encounter/{{ENCOUNTER_REFERENCE_ID}}"
    },
    "effectiveDateTime": "{{OBSERVATION_EFFECTIVE_DATETIME}}",
    "issued": "{{OBSERVATION_ISSUED}}",
    "performer": [
        {
            "reference": "Practitioner/{{DOCTOR_IHS_NUMBER}}"
        },
        {
            "reference": "Organization/{{FACILITY_IHS_NUMBER}}"
        }
    ],
    "result": [
        {
            "reference": "Observation/{{OBSERVATION3_REFERENCE_ID}}",
            "display": "Mycobacterium tuberculosis complex DNA [Presence] in Isolate or Specimen by Molecular genetics method"
        },
        {
            "reference": "Observation/{{OBSERVATION5_REFERENCE_ID}}",
            "display": "Mycobacterium tuberculosis complex rpoB gene rifAMPin resistance mutation [Presence] by Molecular method"
        }
    ],
    "conclusionCode": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
                    "code": "S",
                    "display": "Susceptible"
                }
            ]
        }
    ]
}
        

Hasil Pemeriksaan Biakan

{
    "resourceType": "DiagnosticReport",
    "identifier": [
        {
            "system": "http://sys-ids.kemkes.go.id/diagnostic/{{FACILITY_IHS_NUMBER}}/lab",
            "use": "official",
            "value": "{{DIAGNOSTICREPORT_LOCAL_CODE}}"
        }
    ],
    "status": "final",
    "category": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v2-0074",
                    "code": "MB",
                    "display": "Microbiology"
                }
            ]
        }
    ],
    "code": {
        "coding": [
            {
                "system": "http://loinc.org",
                "code": "647-8",
                "display": "Microscopic observation [Identifier] in Sputum by Acid fast stain.Ziehl-Neelsen"
            }
        ]
    },
    "subject": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}"
    },
    "encounter": {
        "reference": "Encounter/{{ENCOUNTER_REFERENCE_ID}}"
    },
    "effectiveDateTime": "{{OBSERVATION_EFFECTIVE_DATETIME}}",
    "issued": "{{OBSERVATION_ISSUED}}",
    "performer": [
        {
            "reference": "Practitioner/{{DOCTOR_IHS_NUMBER}}"
        },
        {
            "reference": "Organization/{{FACILITY_IHS_NUMBER}}"
        }
    ],
    "result": [
        {
            "reference": "Observation/{{OBSERVATION6_REFERENCE_ID}}",
            "display": "Mycobacterium sp identified in Sputum by Organism specific culture"
        }
    ],
    "conclusionCode": [
        {
            "coding": [
                {
                    "system": "http://loinc.org",
                    "code": "LA6577-6",
                    "display": "Negative"
                }
            ]
        }
    ]
}        
        

Hasil Pemeriksaan Foto Thorax

{
    "resourceType": "DiagnosticReport",
    "identifier": [
        {
            "system": "http://sys-ids.kemkes.go.id/diagnostic/{{FACILITY_IHS_NUMBER}}/radiology",
            "use": "official",
            "value": "{{DIAGNOSTICREPORT_LOCAL_CODE}}"
        }
    ],
    "status": "final",
    "category": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v2-0074",
                    "code": "RAD",
                    "display": "Radiology"
                }
            ]
        }
    ],
    "code": {
        "coding": [
            {
                "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                "code": "imaging",
                "display": "Imaging"
            }
        ]
    },
    "subject": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}"
    },
    "encounter": {
        "reference": "Encounter/{{ENCOUNTER_REFERENCE_ID}}"
    },
    "effectiveDateTime": "{{OBSERVATION_EFFECTIVE_DATETIME}}",
    "issued": "{{OBSERVATION_ISSUED}}",
    "performer": [
        {
            "reference": "Practitioner/{{DOCTOR_IHS_NUMBER}}"
        },
        {
            "reference": "Organization/{{FACILITY_IHS_NUMBER}}"
        }
    ],
    "result": [
        {
            "reference": "Observation/{{OBSERVATION8_REFERENCE_ID}}",
            "display": "XR Chest PA upright"
        }
    ],
    "conclusionCode": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
                    "code": "POS",
                    "display": "Positive"
                }
            ]
        }
    ]
}
        
Variabel Deskripsi
$GENERATED_UUID_DIAGNOSTIC_REPORT UUID DiagnosticReport yang digenerate
$GENERATED_UUID_OBSERVATION_1 UUID pemeriksaan mikroskopis yang digenerate
$GENERATED_UUID_OBSERVATION_2 UUID pemeriksaan test cepat yang digenerate
$GENERATED_UUID_OBSERVATION_3 UUID pemeriksaan biakan yang digenerate
$GENERATED_UUID_OBSERVATION_4 UUID pemeriksaan foto thorax yang digenerate
$IHS_NUMBER_PASIEN SATUSEHAT ID Number untuk Pasien
$IHS_NUMBER_DOKTER SATUSEHAT ID Number untuk Dokter/Nakes
$IHS_NUMBER_FASYANKES SATUSEHAT ID Number untuk FASYANKES
$NAMA_FASYANKES Nama FASYANKES
$SNOMEDCT_TB_CONCLUSION Kode SNOMED CT hasil diagnosa
$SNOMEDCT_TB_CONCLUSION_DISPLAY Teks SNOMED CT hasil diagnosa

II. Berbasis Bundle

C. Verifikasi Kasus

Data verifikasi kasus temuan merupakan kumpulan data hasil pemeriksaan lab dan diagnosis kasus TB yang terbungkus melalui resource Encounter (kunjungan).

Pembuatan Resource EpisodeOfCare bergantung pada hasil asesmen kasus TB. Jika asesmen menyatakan bahwa kasus Terkonfirmasi Bakteriologis atau Terdiagnosis Klinis maka entry resource EpisodeOfCare harus dipersiapkan terlebih dahulu sebagai wadah referensi untuk tiap Encounter yang dibuat baik pada tahap verifikasi kasus maupun saat melakukan kunjungan perawatan TB. Jika hasil asesmen tidak merujuk pada kesimpulan tersebut maka tidak perlu dibuatkan EpisodeOfCare, MedicationStatement dan QuestionnaireResponse untuk melengkapi pencatatan TB. Dengan demikian maka kasus dapat ditutup.

I. Berbasis Resouce

Entry Resources yang digunakan

No Nama Resource Entry Mandatory Metode
1 Condition Required BUAT BARU (POST)
2 EpisodeOfCare Required BUAT BARU (POST)
3 Encounter Required UPDATE (PUT)
4 Medication Optional BUAT BARU (POST)
5 MedicationRequest Optional BUAT BARU (POST)
6 QuestionnaireResponse Required BUAT BARU (POST)

1. Condition

Diagnosis Primer

{
    "resourceType": "Condition",
    "clinicalStatus": {
        "coding":  [
            {
                "system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
                "code": "active",
                "display": "Active"
            }
        ]
    },
    "category":  [
        {
            "coding":  [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/condition-category",
                    "code": "encounter-diagnosis",
                    "display": "Encounter Diagnosis"
                }
            ]
        }
    ],
    "code": {
        "coding":  [
            {
                "system": "http://hl7.org/fhir/sid/icd-10",
                "code": "A15.0",
                "display": "Tuberculosis of lung, confirmed by sputum microscopy with or without culture"
            }
        ]
    },
    "subject": {
        "reference": "Patient/100000030009",
        "display": "Budi Santoso"
    },
    "encounter": {
        "reference": "Encounter/14e8398c-1016-44b8-b619-a802b80d2c94"
    },
    "onsetDateTime": "2022-07-29",
    "recordedDate": "2022-07-29"
}

Diagnosis Sekunder (Opsional)

{
    "resourceType": "Condition",
    "clinicalStatus": {
        "coding":  [
            {
                "system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
                "code": "active",
                "display": "Active"
            }
        ]
    },
    "category":  [
        {
            "coding":  [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/condition-category",
                    "code": "encounter-diagnosis",
                    "display": "Encounter Diagnosis"
                }
            ]
        }
    ],
    "code": {
        "coding":  [
            {
                "system": "http://hl7.org/fhir/sid/icd-10",
                "code": "E11.9",
                "display": "Non-insulin-dependent diabetes mellitus without complications "
            }
        ]
    },
    "subject": {
        "reference": "Patient/100000030009",
        "display": "Budi Santoso"
    },
    "encounter": {
        "reference": "Encounter/14e8398c-1016-44b8-b619-a802b80d2c94",
        "display": "Kunjungan Budi Santoso di hari Selasa, 14 Juni 2022"
    },
    "onsetDateTime": "2022-07-29",
    "recordedDate": "2022-07-29"
}

Diagnosis Primer

{
    "resourceType": "Condition",
    "clinicalStatus": {
        "coding": [
            {
                "system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
                "code": "active",
                "display": "Active"
            }
        ]
    },
    "category": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/condition-category",
                    "code": "encounter-diagnosis",
                    "display": "Encounter Diagnosis"
                }
            ]
        }
    ],
    "code": {
        "coding": [
            {
                "system": "http://hl7.org/fhir/sid/icd-10",
                "code": "{{CONDITION1_ICD_CODE}}",
                "display": "{{CONDITION1_ICD_DISPLAY}}"
            }
        ]
    },
    "subject": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}",
        "display": "{{PATIENT_NAME}}"
    },
    "encounter": {
        "reference": "Encounter/{{ENCOUNTER_REFERENCE_ID}}"
    },
    "onsetDateTime": "{{CONDITION1_ONSET_DATETIME}}",
    "recordedDate": "{{CONDITION1_RECORDED_DATETIME}}"
}
        

Diagnosis Sekunder (Opsional)

{
    "resourceType": "Condition",
    "clinicalStatus": {
        "coding": [
            {
                "system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
                "code": "active",
                "display": "Active"
            }
        ]
    },
    "category": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/condition-category",
                    "code": "encounter-diagnosis",
                    "display": "Encounter Diagnosis"
                }
            ]
        }
    ],
    "code": {
        "coding": [
            {
                "system": "http://hl7.org/fhir/sid/icd-10",
                "code": "{{CONDITION2_ICD_CODE}}",
                "display": "{{CONDITION2_ICD_DISPLAY}}"
            }
        ]
    },
    "subject": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}",
        "display": "{{PATIENT_NAME}}"
    },
    "encounter": {
        "reference": "Encounter/{{ENCOUNTER_REFERENCE_ID}}"
    },
    "onsetDateTime": "{{CONDITION2_ONSET_DATETIME}}",
    "recordedDate": "{{CONDITION2_RECORDED_DATETIME}}"
}
        
Variabel Deskripsi
$GENERATED_UUID_DIAGNOSIS UUID untuk Diagnosis ICD-10 TB yang digenerate
$CODE_ICD10 Kode ICD-10 untuk diagnosis Tuberculosis

2. EpisodeOfCare

{
    "resourceType": "EpisodeOfCare",
    "identifier":  [
        {
            "system": "http://sys-ids.kemkes.go.id/episode-of-care/10084561/",
            "value": "EOC12345"
        }
    ],
    "status": "active",
    "statusHistory":  [
        {
            "status": "active",
            "period": {
                "start": "2022-01-01",
                "end": "2022-06-30"
            }
        }
    ],
    "type":  [
        {
            "coding":  [
                {
                    "system": "https://terminology.kemkes.go.id/CodeSystem/episodeofcare-type",
                    "code": "TB-SO",
                    "display": "Tuberkulosis Sensitif Obat"
                }
            ]
        }
    ],
    "diagnosis":  [
        {
            "condition": {
                "reference": "Condition/20902b7d-bddd-4458-9d6c-8399eb8479be",
                "display": "Tuberculosis of lung, confirmed by sputum microscopy with or without culture"
            },
            "role": {
                "coding":  [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role",
                        "code": "DD",
                        "display": "Discharged Diagnosis"
                    }
                ]
            },
            "rank": 1
        }
    ],
    "patient": {
        "reference": "Patient/100000030009",
        "display": "Budi Santoso"
    },
    "managingOrganization": {
        "reference": "Organization/10084561"
    },
    "period": {
        "start": "2022-01-01",
        "end": "2022-06-30"
    },
    "careManager": {
        "reference": "Practitioner/N10000001",
        "display": "Dokter Bronsig"
    }
}
{
    "resourceType": "EpisodeOfCare",
    "identifier": [
        {
            "system": "http://sys-ids.kemkes.go.id/episode-of-care/{{FACILITY_IHS_NUMBER}}/",
            "value": "{{EPISODEOFCARE_LOCAL_CODE}}"
        }
    ],
    "status": "active",
    "statusHistory": [
        {
            "status": "active",
            "period": {
                "start": "{{EPISODEOFCARE_PERIOD1_START}}",
                "end": "{{EPISODEOFCARE_PERIOD1_END}}"
            }
        }
    ],
    "type": [
        {
            "coding": [
                {
                    "system": "https://terminology.kemkes.go.id/CodeSystem/episodeofcare-type",
                    "code": "{{EPISODEOFCARE_TYPE_CODE}}",
                    "display": "{{EPISODEOFCARE_TYPE_DISPLAY}}"
                }
            ]
        }
    ],
    "diagnosis": [
        {
            "condition": {
                "reference": "Condition/{{CONDITION1_REFERENCE_ID}}",
                "display": "{{CONDITION1_ICD_DISPLAY}}"
            },
            "role": {
                "coding": [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role",
                        "code": "DD",
                        "display": "Discharged Diagnosis"
                    }
                ]
            },
            "rank": 1
        }
    ],
    "patient": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}",
        "display": "{{PATIENT_NAME}}"
    },
    "managingOrganization": {
        "reference": "Organization/{{FACILITY_IHS_NUMBER}}"
    },
    "period": {
        "start": "{{EPISODEOFCARE_PERIOD1_START}}",
        "end": "{{EPISODEOFCARE_PERIOD1_END}}"
    },
    "careManager": {
        "reference": "Practitioner/{{DOCTOR_IHS_NUMBER}}",
        "display": "{{DOCTOR_NAME}}"
    }
}
        
Variabel Deskripsi
$GENERATED_UUID_EPISODEOFCARE UUID EpisodeOfCare yang digenerate
$DATETIME_MULAI_PENGOBATAN DateTime mulai pengobatan TB
$IHS_NUMBER_PASIEN SATUSEHAT ID Number untuk Pasien
$NAMA_PASIEN Nama Pasien
$IHS_NUMBER_DOKTER SATUSEHAT ID Number untuk Dokter/Nakes
$IHS_NUMBER_FASYANKES SATUSEHAT ID Number untuk FASYANKES

3. Encounter

{
    "resourceType": "Encounter",
    "id": "daf4f30b-f4e2-4dc4-8cd1-110e07f431ec",
    "identifier":  [
        {
            "system": "http://sys-ids.kemkes.go.id/encounter/10084561",
            "value": "P20240001"
        }
    ],
    "status": "finished",
    "class": {
        "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "code": "AMB",
        "display": "ambulatory"
    },
    "subject": {
        "reference": "Patient/100000030009",
        "display": "Budi Santoso"
    },
    "participant":  [
        {
            "type":  [
                {
                    "coding":  [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                            "code": "ATND",
                            "display": "attender"
                        }
                    ]
                }
            ],
            "individual": {
                "reference": "Practitioner/N10000001",
                "display": "Dokter Bronsig"
            }
        }
    ],
    "period": {
        "start": "2022-06-14T09:00:00+07:00",
        "end": "2022-06-14T09:00:00+07:00"
    },
    "location":  [
        {
            "location": {
                "reference": "Location/ef011065-38c9-46f8-9c35-d1fe68966a3e",
                "display": "Ruang 1A, Poliklinik Rawat Jalan"
            }
        }
    ],
    "diagnosis":  [
        {
            "condition": {
                "reference": "Condition/fb2375e6-627e-40f5-9c82-d6a71a71e689",
                "display": "Tuberculosis of lung, confirmed by sputum microscopy with or without culture"
            },
            "use": {
                "coding":  [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role",
                        "code": "DD",
                        "display": "Discharge diagnosis"
                    }
                ]
            },
            "rank": 1
        },
        {
            "condition": {
                "reference": "Condition/c3f4a0d7-dd0b-4672-a642-383ccd8500dc",
                "display": "Non-insulin-dependent diabetes mellitus without complications"
            },
            "use": {
                "coding":  [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role",
                        "code": "DD",
                        "display": "Discharge diagnosis"
                    }
                ]
            },
            "rank": 2
        }
    ],
    "statusHistory":  [
        {
            "status": "arrived",
            "period": {
                "start": "2022-06-14T07:00:00+07:00",
                "end": "2022-06-14T09:00:00+07:00"
            }
        },
        {
            "status": "in-progress",
            "period": {
                "start": "2022-06-14T08:00:00+07:00",
                "end": "2022-06-14T09:00:00+07:00"
            }
        },
        {
            "status": "finished",
            "period": {
                "start": "2022-06-14T09:00:00+07:00",
                "end": "2022-06-14T09:00:00+07:00"
            }
        }
    ],
    "serviceProvider": {
        "reference": "Organization/10084561"
    },
    "episodeOfCare":  [
        {
            "reference": "EpisodeOfCare/296b5ead-a10c-42db-bcc0-469c79c668f6"
        }
    ]
}
{
    "resourceType": "Encounter",
    "id": "{{ENCOUNTER_REFERENCE_ID}}",
    "identifier": [
        {
            "system": "http://sys-ids.kemkes.go.id/encounter/{{FACILITY_IHS_NUMBER}}",
            "value": "{{ENCOUNTER_LOCAL_CODE}}"
        }
    ],
    "status": "finished",
    "class": {
        "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "code": "AMB",
        "display": "ambulatory"
    },
    "subject": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}",
        "display": "{{PATIENT_NAME}}"
    },
    "participant": [
        {
            "type": [
                {
                    "coding": [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                            "code": "ATND",
                            "display": "attender"
                        }
                    ]
                }
            ],
            "individual": {
                "reference": "Practitioner/{{DOCTOR_IHS_NUMBER}}",
                "display": "{{DOCTOR_NAME}}"
            }
        }
    ],
    "period": {
        "start": "{{ENCOUNTER_PERIOD3_START}}",
        "end": "{{ENCOUNTER_PERIOD3_END}}"
    },
    "location": [
        {
            "location": {
                "reference": "Location/{{ENCOUNTER_LOCATION_ID}}",
                "display": "{{ENCOUNTER_LOCATION_NAME}}"
            }
        }
    ],
    "diagnosis": [
        {
            "condition": {
                "reference": "Condition/{{CONDITION1_REFERENCE_ID}}",
                "display": "{{CONDITION1_ICD_DISPLAY}}"
            },
            "use": {
                "coding": [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role",
                        "code": "DD",
                        "display": "Discharge diagnosis"
                    }
                ]
            },
            "rank": 1
        },
        {
            "condition": {
                "reference": "Condition/{{CONDITION2_REFERENCE_ID}}",
                "display": "{{CONDITION2_ICD_DISPLAY}}"
            },
            "use": {
                "coding": [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role",
                        "code": "DD",
                        "display": "Discharge diagnosis"
                    }
                ]
            },
            "rank": 2
        }
    ],
    "statusHistory": [
        {
            "status": "arrived",
            "period": {
                "start": "{{ENCOUNTER_PERIOD1_START}}",
                "end": "{{ENCOUNTER_PERIOD1_END}}"
            }
        },
        {
            "status": "in-progress",
            "period": {
                "start": "{{ENCOUNTER_PERIOD2_START}}",
                "end": "{{ENCOUNTER_PERIOD2_END}}"
            }
        },
        {
            "status": "finished",
            "period": {
                "start": "{{ENCOUNTER_PERIOD3_START}}",
                "end": "{{ENCOUNTER_PERIOD3_END}}"
            }
        }
    ],
    "serviceProvider": {
        "reference": "Organization/{{FACILITY_IHS_NUMBER}}"
    },
    "episodeOfCare": [
        {
            "reference": "EpisodeOfCare/{{EPISODEOFCARE_REFERENCE_ID}}"
        }
    ]
}
        
Variabel Deskripsi
ENCOUNTER_LOCAL_CODE ID Lokal untuk Kunjungan/Encounter
PATIENT_IHS_NUMBER SATUSEHAT ID Number untuk Pasien
PATIENT_NAME Nama Pasien
DOCTOR_IHS_NUMBER SATUSEHAT ID untuk Dokter/Nakes
DOCTOR_NAME Nama Dokter/Nakes
FACILITY_IHS_NUMBER SATUSEHAT ID untuk FASYANKES
ENCOUNTER_PERIOD1_START Waktu mulai/check-in kunjungan
ENCOUNTER_PERIOD1_END Waktu mulai/check-out kunjungan
ENCOUNTER_LOCATION_ID ID Location tempat kunjungan dilakukan
ENCOUNTER_LOCATION_NAME Nama Location tempat kunjungan dilakukan

4. Medication

{
    "resourceType": "Medication",
    "identifier":  [
        {
            "system": "http://sys-ids.kemkes.go.id/medication/10000004",
            "use": "official",
            "value": "123456789"
        }
    ],
    "code": {
        "coding":  [
            {
                "system": "http://sys-ids.kemkes.go.id/kfa",
                "code": "93001019",
                "display": "Obat Anti Tuberculosis / Rifampicin 150 mg / Isoniazid 75 mg / Pyrazinamide 400 mg / Ethambutol 275 mg Kaplet Salut Selaput (KIMIA FARMA)"
            }
        ]
    },
    "status": "active",
    "manufacturer": {
        "reference": "Organization/900001"
    },
    "form": {
        "coding":  [
            {
                "system": "https://terminology.kemkes.go.id/CodeSystem/medication-form",
                "code": "BS023",
                "display": "Kaplet Salut Selaput"
            }
        ]
    },
    "ingredient":  [
        {
            "itemCodeableConcept": {
                "coding":  [
                    {
                        "system": "http://sys-ids.kemkes.go.id/kfa",
                        "code": "91000330",
                        "display": "Rifampin"
                    }
                ]
            },
            "isActive": true,
            "strength": {
                "numerator": {
                    "value": 150,
                    "system": "http://unitsofmeasure.org",
                    "code": "mg"
                },
                "denominator": {
                    "value": 1,
                    "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                    "code": "TAB"
                }
            }
        },
        {
            "itemCodeableConcept": {
                "coding":  [
                    {
                        "system": "http://sys-ids.kemkes.go.id/kfa",
                        "code": "91000328",
                        "display": "Isoniazid"
                    }
                ]
            },
            "isActive": true,
            "strength": {
                "numerator": {
                    "value": 75,
                    "system": "http://unitsofmeasure.org",
                    "code": "mg"
                },
                "denominator": {
                    "value": 1,
                    "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                    "code": "TAB"
                }
            }
        },
        {
            "itemCodeableConcept": {
                "coding":  [
                    {
                        "system": "http://sys-ids.kemkes.go.id/kfa",
                        "code": "91000329",
                        "display": "Pyrazinamide"
                    }
                ]
            },
            "isActive": true,
            "strength": {
                "numerator": {
                    "value": 400,
                    "system": "http://unitsofmeasure.org",
                    "code": "mg"
                },
                "denominator": {
                    "value": 1,
                    "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                    "code": "TAB"
                }
            }
        },
        {
            "itemCodeableConcept": {
                "coding":  [
                    {
                        "system": "http://sys-ids.kemkes.go.id/kfa",
                        "code": "91000288",
                        "display": "Ethambutol"
                    }
                ]
            },
            "isActive": true,
            "strength": {
                "numerator": {
                    "value": 275,
                    "system": "http://unitsofmeasure.org",
                    "code": "mg"
                },
                "denominator": {
                    "value": 1,
                    "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                    "code": "TAB"
                }
            }
        }
    ],
    "extension":  [
        {
            "url": "https://fhir.kemkes.go.id/r4/StructureDefinition/MedicationType",
            "valueCodeableConcept": {
                "coding":  [
                    {
                        "system": "https://terminology.kemkes.go.id/CodeSystem/medication-type",
                        "code": "NC",
                        "display": "Non-compound"
                    }
                ]
            }
        }
    ]
}
{
    "resourceType": "Medication",
    "identifier": [
        {
            "system": "http://sys-ids.kemkes.go.id/medication/{{FACILITY_IHS_NUMBER}}",
            "use": "official",
            "value": "{{MEDICATION1_LOCAL_CODE}}"
        }
    ],
    "code": {
        "coding": [
            {
                "system": "http://sys-ids.kemkes.go.id/kfa",
                "code": "{{MEDICATION1_CODE_CODE}}",
                "display": "{{MEDICATION1_CODE_DISPLAY}}"
            }
        ]
    },
    "status": "active",
    "manufacturer": {
        "reference": "Organization/{{FACILITY_IHS_NUMBER}}"
    },
    "form": {
        "coding": [
            {
                "system": "https://terminology.kemkes.go.id/CodeSystem/medication-form",
                "code": "{{MEDICATION1_FORM_CODE}}",
                "display": "{{MEDICATION1_FORM_DISPLAY}}"
            }
        ]
    },
    "ingredient": [
        {
            "itemCodeableConcept": {
                "coding": [
                    {
                        "system": "http://sys-ids.kemkes.go.id/kfa",
                        "code": "{{MEDICATION1_INGREDIENT1_CODE}}",
                        "display": "{{MEDICATION1_INGREDIENT1_DISPLAY}}"
                    }
                ]
            },
            "isActive": true,
            "strength": {
                "numerator": {
                    "value": {{MEDICATION1_INGREDIENT1_NUMERATOR_VALUE}},
                    "system": "http://unitsofmeasure.org",
                    "code": "{{MEDICATION_INGREDIENT_NUMERATOR_CODE}}"
                },
                "denominator": {
                    "value": {{MEDICATION1_INGREDIENT1_DENUMERATOR_VALUE}},
                    "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                    "code": "{{MEDICATION_INGREDIENT_DENUMERATOR_CODE1}}"
                }
            }
        },
        {
            "itemCodeableConcept": {
                "coding": [
                    {
                        "system": "http://sys-ids.kemkes.go.id/kfa",
                        "code": "{{MEDICATION1_INGREDIENT2_CODE}}",
                        "display": "{{MEDICATION1_INGREDIENT2_DISPLAY}}"
                    }
                ]
            },
            "isActive": true,
            "strength": {
                "numerator": {
                    "value": {{MEDICATION1_INGREDIENT2_DENUMERATOR_VALUE}},
                    "system": "http://unitsofmeasure.org",
                    "code": "{{MEDICATION_INGREDIENT_NUMERATOR_CODE}}"
                },
                "denominator": {
                    "value": {{MEDICATION1_INGREDIENT2_DENUMERATOR_VALUE}},
                    "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                    "code": "{{MEDICATION_INGREDIENT_DENUMERATOR_CODE1}}"
                }
            }
        },
        {
            "itemCodeableConcept": {
                "coding": [
                    {
                        "system": "http://sys-ids.kemkes.go.id/kfa",
                        "code": "{{MEDICATION1_INGREDIENT3_CODE}}",
                        "display": "{{MEDICATION1_INGREDIENT3_DISPLAY}}"
                    }
                ]
            },
            "isActive": true,
            "strength": {
                "numerator": {
                    "value": {{MEDICATION1_INGREDIENT3_DENUMERATOR_VALUE}},
                    "system": "http://unitsofmeasure.org",
                    "code": "{{MEDICATION_INGREDIENT_NUMERATOR_CODE}}"
                },
                "denominator": {
                    "value": {{MEDICATION1_INGREDIENT3_DENUMERATOR_VALUE}},
                    "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                    "code": "{{MEDICATION_INGREDIENT_DENUMERATOR_CODE1}}"
                }
            }
        },
        {
            "itemCodeableConcept": {
                "coding": [
                    {
                        "system": "http://sys-ids.kemkes.go.id/kfa",
                        "code": "{{MEDICATION1_INGREDIENT4_CODE}}",
                        "display": "{{MEDICATION1_INGREDIENT4_DISPLAY}}"
                    }
                ]
            },
            "isActive": true,
            "strength": {
                "numerator": {
                    "value": {{MEDICATION1_INGREDIENT4_DENUMERATOR_VALUE}},
                    "system": "http://unitsofmeasure.org",
                    "code": "{{MEDICATION_INGREDIENT_NUMERATOR_CODE}}"
                },
                "denominator": {
                    "value": {{MEDICATION1_INGREDIENT4_DENUMERATOR_VALUE}},
                    "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                    "code": "{{MEDICATION_INGREDIENT_DENUMERATOR_CODE1}}"
                }
            }
        }
    ],
   "extension": [
       {
           "url": "https://fhir.kemkes.go.id/r4/StructureDefinition/MedicationType",
           "valueCodeableConcept": {
               "coding": [
                   {
                       "system": "https://terminology.kemkes.go.id/CodeSystem/medication-type",
                       "code": "{{MEDICATION1_TYPE_CODE}}",
                       "display": "{{MEDICATION1_TYPE_DISPLAY}}"
                   }
               ]
           }
       }
   ]
}
        
Variabel Deskripsi
$CODE_OBAT_TB Kode obat sesuai kategori perawatan TB
$CODE_NAMA_OBAT_TB Nama obat sesuai kategori perawatan TB
$KODE_BENTUK_SEDIAAN Kode bentuk sediaan obat
$NAMA_BENTUK_SEDIAAN Nama bentuk sedian obat

5. MedicationRequest

{
    "resourceType": "MedicationRequest",
    "identifier":  [
        {
            "system": "http://sys-ids.kemkes.go.id/prescription/10000004",
            "use": "official",
            "value": "123456788"
        },
        {
            "system": "http://sys-ids.kemkes.go.id/prescription-item/10000004",
            "use": "official",
            "value": "123456788-1"
        }
    ],
    "status": "completed",
    "statusReason": {
        "coding":  [
            {
                "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-status-reason",
                "code": "clarif",
                "display": "Prescription requires clarification"
            }
        ]
    },
    "intent": "order",
    "category":  [
        {
            "coding":  [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
                    "code": "outpatient",
                    "display": "Outpatient"
                }
            ]
        }
    ],
    "priority": "routine",
    "medicationReference": {
        "reference": "Medication/c2843f5d-54a6-4491-9ebe-bd56594713aa",
        "display": "Obat Anti Tuberculosis / Rifampicin 150 mg / Isoniazid 75 mg / Pyrazinamide 400 mg / Ethambutol 275 mg Kaplet Salut Selaput (KIMIA FARMA)"
    },
    "subject": {
        "reference": "Patient/100000030009",
        "display": "Budi Santoso"
    },
    "encounter": {
        "reference": "Encounter/14e8398c-1016-44b8-b619-a802b80d2c94"
    },
    "authoredOn": "2022-08-04",
    "requester": {
        "reference": "Practitioner/N10000001",
        "display": "Dokter Bronsig"
    },
    "performerType": {
        "coding":  [
            {
                "system": "http://snomed.info/sct",
                "code": "309343006",
                "display": "Physician"
            }
        ]
    },
    "reasonCode":  [
        {
            "coding":  [
                {
                    "system": "http://hl7.org/fhir/sid/icd-10",
                    "code": "A15.0",
                    "display": "Tuberculosis of lung, confirmed by sputum microscopy with or without culture"
                }
            ]
        }
    ],
    "courseOfTherapyType": {
        "coding":  [
            {
                "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy",
                "code": "continuous",
                "display": "Continuing long term therapy"
            }
        ]
    },
    "dosageInstruction":  [
        {
            "sequence": 1,
            "text": "4 tablet per hari",
            "additionalInstruction":  [
                {
                    "text": "Diminum setiap hari"
                }
            ],
            "patientInstruction": "4 tablet perhari, diminum setiap hari tanpa jeda sampai prose pengobatan berakhir",
            "timing": {
                "repeat": {
                    "frequency": 1,
                    "period": 1,
                    "periodUnit": "d"
                }
            },
            "route": {
                "coding":  [
                    {
                        "system": "http://www.whocc.no/atc",
                        "code": "O",
                        "display": "Oral"
                    }
                ]
            },
            "doseAndRate":  [
                {
                    "type": {
                        "coding":  [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                "code": "ordered",
                                "display": "Ordered"
                            }
                        ]
                    },
                    "doseQuantity": {
                        "value": 4,
                        "unit": "TAB",
                        "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                        "code": "TAB"
                    }
                }
            ]
        }
    ],
    "dispenseRequest": {
        "dispenseInterval": {
            "value": 1,
            "unit": "days",
            "system": "http://unitsofmeasure.org",
            "code": "d"
        },
        "validityPeriod": {
            "start": "2022-01-01",
            "end": "2022-01-30"
        },
        "numberOfRepeatsAllowed": 0,
        "quantity": {
            "value": 120,
            "unit": "TAB",
            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
            "code": "TAB"
        },
        "expectedSupplyDuration": {
            "value": 30,
            "unit": "days",
            "system": "http://unitsofmeasure.org",
            "code": "d"
        }
    }
}
{
    "resourceType": "MedicationRequest",
    "identifier": [
        {
            "system": "http://sys-ids.kemkes.go.id/prescription/{{FACILITY_IHS_NUMBER}}",
            "use": "official",
            "value": "{{MEDICATIONREQ_LOCAL1_CODE}}"
        },
        {
            "system": "http://sys-ids.kemkes.go.id/prescription-item/{{FACILITY_IHS_NUMBER}}",
            "use": "official",
            "value": "{{MEDICATIONREQ_LOCAL2_CODE}}"
        }
    ],
    "status": "completed",
    "statusReason": {
        "coding": [
            {
                "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-status-reason",
                "code": "clarif",
                "display": "Prescription requires clarification"
            }
        ]
    },
    "intent": "order",
    "category": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
                    "code": "outpatient",
                    "display": "Outpatient"
                }
            ]
        }
    ],
    "priority": "routine",
    "medicationReference": {
        "reference": "Medication/{{MEDICATION1_RERERENCE_ID}}",
        "display": "{{MEDICATION1_CODE_DISPLAY}}"
    },
    "subject": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}",
        "display": "{{PATIENT_NAME}}"
    },
    "encounter": {
        "reference": "Encounter/{{ENCOUNTER_REFERENCE_ID}}"
    },
    "authoredOn": "{{MEDICATIONREQ_AUTHOREDON}}",
    "requester": {
        "reference": "Practitioner/{{DOCTOR_IHS_NUMBER}}",
        "display": "{{DOCTOR_NAME}}"
    },
    "performerType": {
        "coding": [
            {
                "system": "http://snomed.info/sct",
                "code": "309343006",
                "display": "Physician"
            }
        ]
    },
    "reasonCode": [
        {
            "coding": [
                {
                    "system": "http://hl7.org/fhir/sid/icd-10",
                    "code": "{{CONDITION1_ICD_CODE}}",
                    "display": "{{CONDITION1_ICD_DISPLAY}}"
                }
            ]
        }
    ],
    "courseOfTherapyType": {
        "coding": [
            {
                "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy",
                "code": "continuous",
                "display": "Continuing long term therapy"
            }
        ]
    },
    "dosageInstruction": [
        {
            "sequence": 1,
            "text": "{{MEDICATIONREQ_DOSAGE_TEXT}}",
            "additionalInstruction": [
                {
                    "text": "{{MEDICATIONREQ_DOSAGE_TEXT_ADD}}"
                }
            ],
            "patientInstruction": "{{MEDICATIONREQ_DOSAGE_TEXT_INSTRUCTION}}",
            "timing": {
                "repeat": {
                    "frequency": 1,
                    "period": 1,
                    "periodUnit": "d"
                }
            },
            "route": {
                "coding": [
                    {
                        "system": "http://www.whocc.no/atc",
                        "code": "O",
                        "display": "Oral"
                    }
                ]
            },
            "doseAndRate": [
                {
                    "type": {
                        "coding": [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                "code": "ordered",
                                "display": "Ordered"
                            }
                        ]
                    },
                    "doseQuantity": {
                        "value": 4,
                        "unit": "{{MEDICATIONREQ_DOSE_UNIT}}",
                        "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                        "code": "{{MEDICATIONREQ_DOSE_UNIT}}"
                    }
                }
            ]
        }
    ],
    "dispenseRequest": {
        "dispenseInterval": {
            "value": {{MEDICATIONREQ_DISPENSE_INTERVAL}},
            "unit": "days",
            "system": "http://unitsofmeasure.org",
            "code": "d"
        },
        "validityPeriod": {
            "start": "{{MEDICATIONREQ_DISPENSE_START}}",
            "end": "{{MEDICATIONREQ_DISPENSE_END}}"
        },
        "numberOfRepeatsAllowed": 0,
        "quantity": {
            "value": {{MEDICATIONREQ_DISPENSE_QUANTITY}},
            "unit": "{{MEDICATIONREQ_DOSE_UNIT}}",
            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
            "code": "{{MEDICATIONREQ_DOSE_UNIT}}"
        },
        "expectedSupplyDuration": {
            "value": {{MEDICATIONREQ_DISPENSE_DURATION}},
            "unit": "days",
            "system": "http://unitsofmeasure.org",
            "code": "d"
        }
    }
}
        
Variabel Deskripsi
$GENERATED_UUID_MEDICATION_REQUEST UUID MedicationRequest yang digenerate
$IHS_NUMBER_PASIEN SATUSEHAT ID Number untuk Pasien
$GENERATED_UUID_EPISODEOFCARE UUID EpisodeOfCare yang digenerate
$GENERATED_UUID_MEDICATION UUID Medication yang digenerate
$GENERATED_UUID_CAREPLAN UUID CarePlan yang digenerate

6. QuestionnaireResponse

{
    "resourceType": "QuestionnaireResponse",
    "questionnaire": "https://fhir.kemkes.go.id/Questionnaire/Q0001",
    "status": "completed",
    "subject": {
        "reference": "Patient/100000030009",
        "display": "Budi Santoso"
    },
    "encounter": {
        "reference": "Encounter/14e8398c-1016-44b8-b619-a802b80d2c94"
    },
    "authored": "2022-07-26T10:00:00+07:00",
    "author": {
        "reference": "Practitioner/N10000001"
    },
    "source": {
        "reference": "Patient/100000030009"
    },
    "item":  [
        {
            "linkId": "1",
            "text": "Tipe diagnosis tuberkulosis",
            "answer":  [
                {
                    "valueCoding": {
                        "system": "https://terminology.kemkes.go.id/CodeSystem/tb-case-definition",
                        "code": "tb-bac",
                        "display": "Terkonfirmasi bakteriologis"
                    }
                }
            ]
        },
        {
            "linkId": "2",
            "text": "Klasifikasi tuberkulosis berdasarkan lokasi anatomis",
            "answer":  [
                {
                    "valueCoding": {
                        "system": "https://terminology.kemkes.go.id/CodeSystem/tb-anatomical",
                        "code": "PTB",
                        "display": "Tuberkulosis Paru"
                    }
                }
            ]
        },
        {
            "linkId": "3",
            "text": "Klasifikasi tuberkulosis berdasarkan riwayat pengobatan",
            "answer":  [
                {
                    "valueCoding": {
                        "system": "https://terminology.kemkes.go.id/CodeSystem/prev-tb-treatment",
                        "code": "new",
                        "display": "Kasus Baru"
                    }
                }
            ]
        },
        {
            "linkId": "4",
            "text": "Hasil akhir pengobatan tuberkulosis",
            "answer":  [
                {
                    "valueCoding": {
                        "system": "https://terminology.kemkes.go.id/CodeSystem/tb-outcome-class",
                        "code": "cured",
                        "display": "Sembuh"
                    }
                }
            ]
        }
    ]
}
{
    "resourceType": "QuestionnaireResponse",
    "questionnaire": "https://fhir.kemkes.go.id/Questionnaire/Q0001",
    "status": "completed",
    "subject": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}",
        "display": "{{PATIENT_NAME}}"
    },
    "encounter": {
        "reference": "Encounter/{{ENCOUNTER_REFERENCE_ID}}"
    },
    "authored": "{{QUESTRESPONSE_AUTHORED}}",
    "author": {
        "reference": "Practitioner/{{DOCTOR_IHS_NUMBER}}"
    },
    "source": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}"
    },
    "item": [
        {
            "linkId": "1",
            "text": "Tipe diagnosis tuberkulosis",
            "answer": [
                {
                    "valueCoding": {
                        "system": "https://terminology.kemkes.go.id/CodeSystem/tb-case-definition",
                        "code": "{{QUESTRESPONSE_ITEM1_CODE}}",
                        "display": "{{QUESTRESPONSE_ITEM1_DISPLAY}}"
                    }
                }
            ]
        },
        {
            "linkId": "2",
            "text": "Klasifikasi tuberkulosis berdasarkan lokasi anatomis",
            "answer": [
                {
                    "valueCoding": {
                        "system": "https://terminology.kemkes.go.id/CodeSystem/tb-anatomical",
                        "code": "{{QUESTRESPONSE_ITEM2_CODE}}",
                        "display": "{{QUESTRESPONSE_ITEM2_DISPLAY}}"
                    }
                }
            ]
        },
        {
            "linkId": "3",
            "text": "Klasifikasi tuberkulosis berdasarkan riwayat pengobatan",
            "answer": [
                {
                    "valueCoding": {
                        "system": "https://terminology.kemkes.go.id/CodeSystem/prev-tb-treatment",
                        "code": "{{QUESTRESPONSE_ITEM3_CODE}}",
                        "display": "{{QUESTRESPONSE_ITEM3_DISPLAY}}"
                    }
                }
            ]
        }
    ]
}
        
Variabel Deskripsi
$IHS_NUMBER_PASIEN SATUSEHAT ID Number untuk Pasien
$NAMA_PASIEN Nama Pasien
$GENERATED_UUID_ENCOUNTER UUID Encounter yang digenerate
$TIMESTAMP_AUTHORED Tanggal dan waktu Questionnaire dibuat
$IHS_NUMBER_DOKTER SATUSEHAT ID Number untuk Dokter/Nakes
$CODE_TB_CASE Kode Tipe diagnosis TB (lihat ValueSet)
$DISPLAY_TB_CASE Teks display Tipe diagnosis TB (lihat ValueSet)
$CODE_TB_ANATOMICAL Kode klasifikasi Anatomis (lihat ValueSet)
$DISPLAY_TB_ANATOMICAL Teks display klasifikasi Anatomis (lihat ValueSet)
$CODE_TB_TREATMENT Kode riwayat pengobatan (lihat ValueSet)
$DISPLAY_TB_TREATMENT Teks display riwayat pengobatan (lihat ValueSet)
Tipe diagnosis tuberkulosis
Code System https://terminology.kemkes.go.id/CodeSystem/tb-case-definition
Value Set url https://terminology.kemkes.go.id/ValueSet/tb-case-definition
Kode Teks Display
tb-bac Terkonfirmasi bakteriologis
tb-clin Terdiagnosis klinis
Klasifikasi tuberkulosis berdasarkan lokasi anatomis
Code System https://terminology.kemkes.go.id/CodeSystem/tb-anatomical
Value Set url https://terminology.kemkes.go.id/ValueSet/tb-anatomical
Kode Teks Display
PTB TB Paru
EPTB TB Ekstraparu
Klasifikasi tuberkulosis berdasarkan riwayat pengobatan
Code System https://terminology.kemkes.go.id/CodeSystem/prev-tb-treatment
Value Set url https://terminology.kemkes.go.id/ValueSet/prev-tb-treatment
Kode Teks Display
new Kasus Baru
relapse Kasus Kambuh
failure Kasus Pengobatan Setelah Gagal
failure-cat1 Kasus Pengobatan Setelah Gagal Kategori 1
failure-cat2 Kasus Pengobatan Setelah Gagal Kategori 2
failure-2line Kasus Pengobatan Setelah Gagal lini 2
loss-to-follow-up Kasus Setelah Loss To Follow Up
other Kasus lain-lain
unknown Kasus dengan riwayat pengobatan tidak diketahui

II. Berbasis Bundle

D. Kunjungan Pengobatan Bulanan

Saat pasien melakukan kunjungan perawatan TB setiap bulannya selama proses pengobatan (sesuai desain integrasi SITB hasil dilaporkan pada bulan 2, 3 dan 5). Setiap kunjungan harus dibungkus dengan Resource Encounter dengan menyebutkan referensi ID EpisodeOfCare pada tiap Encounter tersebut untuk menandakan kunjungan dalam satu episode yang sama.

alt text

I. Berbasis Resouce

Entry Resources yang digunakan

No Nama Resource Entry Mandatory Metode
1 Encounter Required BUAT BARU (POST)
2 DiagnosticReport Required BUAT BARU (POST)
3 Observation Required BUAT BARU (POST)
4 Medication Optional BUAT BARU (POST)
5 MedicationRequest Optional BUAT BARU (POST)

1. Encouter

{
    "resourceType": "Encounter",
    "identifier":  [
        {
            "system": "http://sys-ids.kemkes.go.id/encounter/10084561",
            "value": "P20240001"
        }
    ],
    "status": "arrived",
    "class": {
        "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "code": "AMB",
        "display": "ambulatory"
    },
    "subject": {
        "reference": "Patient/100000030009",
        "display": "Budi Santoso"
    },
    "participant":  [
        {
            "type":  [
                {
                    "coding":  [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                            "code": "ATND",
                            "display": "attender"
                        }
                    ]
                }
            ],
            "individual": {
                "reference": "Practitioner/N10000001",
                "display": "Dokter Bronsig"
            }
        }
    ],
    "period": {
        "start": "2022-06-14T07:00:00+07:00"
    },
    "location":  [
        {
            "location": {
                "reference": "Location/ef011065-38c9-46f8-9c35-d1fe68966a3e",
                "display": "Ruang 1A, Poliklinik Rawat Jalan"
            }
        }
    ],
    "statusHistory":  [
        {
            "status": "arrived",
            "period": {
                "start": "2022-06-14T07:00:00+07:00",
                "end": "2022-06-14T09:00:00+07:00"
            }
        }
    ],
    "serviceProvider": {
        "reference": "Organization/10084561"
    }
}
{
    "resourceType": "Encounter",
    "identifier": [
        {
            "system": "http://sys-ids.kemkes.go.id/encounter/{{FACILITY_IHS_NUMBER}}",
            "value": "{{ENCOUNTER_LOCAL_CODE}}"
        }
    ],
    "status": "arrived",
    "class": {
        "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "code": "AMB",
        "display": "ambulatory"
    },
    "subject": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}",
        "display": "{{PATIENT_NAME}}"
    },
    "participant": [
        {
            "type": [
                {
                    "coding": [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                            "code": "ATND",
                            "display": "attender"
                        }
                    ]
                }
            ],
            "individual": {
                "reference": "Practitioner/{{DOCTOR_IHS_NUMBER}}",
                "display": "{{DOCTOR_NAME}}"
            }
        }
    ],
    "period": {
        "start": "{{ENCOUNTER_PERIOD1_START}}"
    },
    "location": [
        {
            "location": {
                "reference": "Location/{{ENCOUNTER_LOCATION_ID}}",
                "display": "{{ENCOUNTER_LOCATION_NAME}}"
            }
        }
    ],
    "statusHistory": [
        {
            "status": "arrived",
            "period": {
                "start": "{{ENCOUNTER_PERIOD1_START}}",
                "end": "{{ENCOUNTER_PERIOD1_END}}"
            }
        }
    ],
    "serviceProvider": {
        "reference": "Organization/{{FACILITY_IHS_NUMBER}}"
    }
}
        
Variabel Deskripsi
ENCOUNTER_LOCAL_CODE ID Lokal untuk Kunjungan/Encounter
PATIENT_IHS_NUMBER SATUSEHAT ID Number untuk Pasien
PATIENT_NAME Nama Pasien
DOCTOR_IHS_NUMBER SATUSEHAT ID untuk Dokter/Nakes
DOCTOR_NAME Nama Dokter/Nakes
FACILITY_IHS_NUMBER SATUSEHAT ID untuk FASYANKES
ENCOUNTER_PERIOD1_START Waktu mulai/check-in kunjungan
ENCOUNTER_PERIOD1_END Waktu mulai/check-out kunjungan
ENCOUNTER_LOCATION_ID ID Location tempat kunjungan dilakukan
ENCOUNTER_LOCATION_NAME Nama Location tempat kunjungan dilakukan

2. DiagnosticReport

{
    "resourceType": "DiagnosticReport",
    "identifier":  [
        {
            "system": "http://sys-ids.kemkes.go.id/diagnostic/10000004/lab",
            "use": "official",
            "value": "5234342"
        }
    ],
    "status": "final",
    "category":  [
        {
            "coding":  [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v2-0074",
                    "code": "MB",
                    "display": "Microbiology"
                }
            ]
        }
    ],
    "code": {
        "coding":  [
            {
                "system": "http://loinc.org",
                "code": "11477-7",
                "display": "Microscopic observation [Identifier] in Sputum by Acid fast stain"
            }
        ]
    },
    "subject": {
        "reference": "Patient/100000030009"
    },
    "encounter": {
        "reference": "Encounter/14e8398c-1016-44b8-b619-a802b80d2c94"
    },
    "effectiveDateTime": "2012-12-01T12:00:00+01:00",
    "issued": "2012-12-01T12:00:00+01:00",
    "performer":  [
        {
            "reference": "Practitioner/N10000001"
        },
        {
            "reference": "Organization/10000004"
        }
    ],
    "result":  [
        {
            "reference": "Observation/fee00417-ce11-41b7-9965-f0c11678efa1"
        }
    ],
    "conclusionCode":  [
        {
            "coding":  [
                {
                    "system": "http://snomed.info/sct",
                    "code": "260347006",
                    "display": "+"
                }
            ]
        }
    ]
}
{
    "resourceType": "DiagnosticReport",
    "identifier": [
        {
            "system": "http://sys-ids.kemkes.go.id/diagnostic/{{FACILITY_IHS_NUMBER}}/lab",
            "use": "official",
            "value": "{{DIAGNOSTICREPORT_LOCAL_CODE}}"
        }
    ],
    "status": "final",
    "category": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v2-0074",
                    "code": "MB",
                    "display": "Microbiology"
                }
            ]
        }
    ],
    "code": {
        "coding": [
            {
                "system": "http://loinc.org",
                "code": "11477-7",
                "display": "Microscopic observation [Identifier] in Sputum by Acid fast stain"
            }
        ]
    },
    "subject": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}"
    },
    "encounter": {
        "reference": "Encounter/{{ENCOUNTER_REFERENCE_ID}}"
    },
    "effectiveDateTime": "{{OBSERVATION_EFFECTIVE_DATETIME}}",
    "issued": "{{OBSERVATION_ISSUED}}",
    "performer": [
        {
            "reference": "Practitioner/{{DOCTOR_IHS_NUMBER}}"
        },
        {
            "reference": "Organization/{{FACILITY_IHS_NUMBER}}"
        }
    ],
    "result": [
        {
            "reference": "Observation/{{OBSERVATION1_REFERENCE_ID}}",
            "display": "Microscopic observation [Identifier] in Sputum by Acid fast stain"
        }
    ],
    "conclusionCode": [
        {
            "coding": [
                {
                    "system": "http://snomed.info/sct",
                    "code": "260347006",
                    "display": "+"
                }
            ]
        }
    ]
}
        
Variabel Deskripsi
$GENERATED_UUID_DIAGNOSTIC_REPORT UUID DiagnosticReport yang digenerate
$GENERATED_UUID_OBSERVATION_1 UUID pemeriksaan mikroskopis yang digenerate
$GENERATED_UUID_ENCOUNTER UUID Encounter yang digenerate
$IHS_NUMBER_PASIEN SATUSEHAT ID Number untuk Pasien
$IHS_NUMBER_FASYANKES SATUSEHAT ID Number untuk FASYANKES
$NAMA_FASYANKES Nama FASYANKES

3. Observation

{
    "resourceType": "Observation",
    "identifier":  [
        {
            "system": "http://sys-ids.kemkes.go.id/observation/10080058",
            "value": "O111111"
        }
    ],
    "status": "final",
    "category":  [
        {
            "coding":  [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                    "code": "laboratory",
                    "display": "Laboratory"
                }
            ]
        }
    ],
    "code": {
        "coding":  [
            {
                "system": "http://loinc.org",
                "code": "11477-7",
                "display": "Microscopic observation [Identifier] in Sputum by Acid fast stain"
            }
        ]
    },
    "subject": {
        "reference": "Patient/100000030009"
    },
    "encounter": {
        "reference": "Encounter/fea39334-09bc-42a7-8063-a5d66abf4520"
    },
    "effectiveDateTime": "2021-07-02",
    "issued": "2022-08-07T15:30:10+01:00",
    "performer":  [
        {
            "reference": "Practitioner/N10000001"
        },
        {
            "reference": "Organization/10080058"
        }
    ],
    "valueCodeableConcept": {
        "coding":  [
            {
                "system": "http://snomed.info/sct",
                "code": "260347006",
                "display": "+"
            }
        ]
    },
    "referenceRange":  [
        {
            "text": "Negative"
        }
    ]
}
{
    "resourceType": "Observation",
    "identifier": [
        {
            "system": "http://sys-ids.kemkes.go.id/observation/{{FACILITY_IHS_NUMBER}}",
            "value": "{{OBSERVATION1_LOCAL_CODE}}"
        }
    ],
    "status": "final",
    "category": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                    "code": "laboratory",
                    "display": "Laboratory"
                }
            ]
        }
    ],
    "code": {
        "coding": [
            {
                "system": "http://loinc.org",
                "code": "11477-7",
                "display": "Microscopic observation [Identifier] in Sputum by Acid fast stain"
            }
        ]
    },
    "subject": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}"
    },
    "encounter": {
        "reference": "Encounter/{{ENCOUNTER_REFERENCE_ID}}"
    },
    "effectiveDateTime": "{{OBSERVATION_EFFECTIVE_DATETIME}}",
    "issued": "{{OBSERVATION_ISSUED}}",
    "performer": [
        {
            "reference": "Practitioner/{{DOCTOR_IHS_NUMBER}}"
        },
        {
            "reference": "Organization/{{FACILITY_IHS_NUMBER}}"
        }
    ],
    "valueCodeableConcept": {
        "coding": [
            {
                "system": "http://snomed.info/sct",
                "code": "260347006",
                "display": "+"
            }
        ]
    },
    "referenceRange": [
        {
            "text": "Negative"
        }
    ]
}
        
Variabel Deskripsi
$GENERATED_UUID_ENCOUNTER UUID Encounter yang digenerate
$CODE_OBSERVATION_1 CodeSystem pemeriksaan mikroskopis
$VALUE_OBSERVATION_1 Value pemeriksaan mikroskopis

4. Medication

{
    "resourceType": "Medication",
    "identifier":  [
        {
            "system": "http://sys-ids.kemkes.go.id/medication/10000004",
            "use": "official",
            "value": "123456789"
        }
    ],
    "code": {
        "coding":  [
            {
                "system": "http://sys-ids.kemkes.go.id/kfa",
                "code": "93001019",
                "display": "Obat Anti Tuberculosis / Rifampicin 150 mg / Isoniazid 75 mg / Pyrazinamide 400 mg / Ethambutol 275 mg Kaplet Salut Selaput (KIMIA FARMA)"
            }
        ]
    },
    "status": "active",
    "manufacturer": {
        "reference": "Organization/900001"
    },
    "form": {
        "coding":  [
            {
                "system": "https://terminology.kemkes.go.id/CodeSystem/medication-form",
                "code": "BS023",
                "display": "Kaplet Salut Selaput"
            }
        ]
    },
    "ingredient":  [
        {
            "itemCodeableConcept": {
                "coding":  [
                    {
                        "system": "http://sys-ids.kemkes.go.id/kfa",
                        "code": "91000330",
                        "display": "Rifampin"
                    }
                ]
            },
            "isActive": true,
            "strength": {
                "numerator": {
                    "value": 150,
                    "system": "http://unitsofmeasure.org",
                    "code": "mg"
                },
                "denominator": {
                    "value": 1,
                    "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                    "code": "TAB"
                }
            }
        },
        {
            "itemCodeableConcept": {
                "coding":  [
                    {
                        "system": "http://sys-ids.kemkes.go.id/kfa",
                        "code": "91000328",
                        "display": "Isoniazid"
                    }
                ]
            },
            "isActive": true,
            "strength": {
                "numerator": {
                    "value": 75,
                    "system": "http://unitsofmeasure.org",
                    "code": "mg"
                },
                "denominator": {
                    "value": 1,
                    "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                    "code": "TAB"
                }
            }
        },
        {
            "itemCodeableConcept": {
                "coding":  [
                    {
                        "system": "http://sys-ids.kemkes.go.id/kfa",
                        "code": "91000329",
                        "display": "Pyrazinamide"
                    }
                ]
            },
            "isActive": true,
            "strength": {
                "numerator": {
                    "value": 400,
                    "system": "http://unitsofmeasure.org",
                    "code": "mg"
                },
                "denominator": {
                    "value": 1,
                    "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                    "code": "TAB"
                }
            }
        },
        {
            "itemCodeableConcept": {
                "coding":  [
                    {
                        "system": "http://sys-ids.kemkes.go.id/kfa",
                        "code": "91000288",
                        "display": "Ethambutol"
                    }
                ]
            },
            "isActive": true,
            "strength": {
                "numerator": {
                    "value": 275,
                    "system": "http://unitsofmeasure.org",
                    "code": "mg"
                },
                "denominator": {
                    "value": 1,
                    "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                    "code": "TAB"
                }
            }
        }
    ],
    "extension":  [
        {
            "url": "https://fhir.kemkes.go.id/r4/StructureDefinition/MedicationType",
            "valueCodeableConcept": {
                "coding":  [
                    {
                        "system": "https://terminology.kemkes.go.id/CodeSystem/medication-type",
                        "code": "NC",
                        "display": "Non-compound"
                    }
                ]
            }
        }
    ]
}
{
    "resourceType": "Medication",
    "identifier": [
        {
            "system": "http://sys-ids.kemkes.go.id/medication/{{FACILITY_IHS_NUMBER}}",
            "use": "official",
            "value": "{{MEDICATION1_LOCAL_CODE}}"
        }
    ],
    "code": {
        "coding": [
            {
                "system": "http://sys-ids.kemkes.go.id/kfa",
                "code": "{{MEDICATION1_CODE_CODE}}",
                "display": "{{MEDICATION1_CODE_DISPLAY}}"
            }
        ]
    },
    "status": "active",
    "manufacturer": {
        "reference": "Organization/{{FACILITY_IHS_NUMBER}}"
    },
    "form": {
        "coding": [
            {
                "system": "https://terminology.kemkes.go.id/CodeSystem/medication-form",
                "code": "{{MEDICATION1_FORM_CODE}}",
                "display": "{{MEDICATION1_FORM_DISPLAY}}"
            }
        ]
    },
    "ingredient": [
        {
            "itemCodeableConcept": {
                "coding": [
                    {
                        "system": "http://sys-ids.kemkes.go.id/kfa",
                        "code": "{{MEDICATION1_INGREDIENT1_CODE}}",
                        "display": "{{MEDICATION1_INGREDIENT1_DISPLAY}}"
                    }
                ]
            },
            "isActive": true,
            "strength": {
                "numerator": {
                    "value": {{MEDICATION1_INGREDIENT1_NUMERATOR_VALUE}},
                    "system": "http://unitsofmeasure.org",
                    "code": "{{MEDICATION_INGREDIENT_NUMERATOR_CODE}}"
                },
                "denominator": {
                    "value": {{MEDICATION1_INGREDIENT1_DENUMERATOR_VALUE}},
                    "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                    "code": "{{MEDICATION_INGREDIENT_DENUMERATOR_CODE1}}"
                }
            }
        },
        {
            "itemCodeableConcept": {
                "coding": [
                    {
                        "system": "http://sys-ids.kemkes.go.id/kfa",
                        "code": "{{MEDICATION1_INGREDIENT2_CODE}}",
                        "display": "{{MEDICATION1_INGREDIENT2_DISPLAY}}"
                    }
                ]
            },
            "isActive": true,
            "strength": {
                "numerator": {
                    "value": {{MEDICATION1_INGREDIENT2_DENUMERATOR_VALUE}},
                    "system": "http://unitsofmeasure.org",
                    "code": "{{MEDICATION_INGREDIENT_NUMERATOR_CODE}}"
                },
                "denominator": {
                    "value": {{MEDICATION1_INGREDIENT2_DENUMERATOR_VALUE}},
                    "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                    "code": "{{MEDICATION_INGREDIENT_DENUMERATOR_CODE1}}"
                }
            }
        },
        {
            "itemCodeableConcept": {
                "coding": [
                    {
                        "system": "http://sys-ids.kemkes.go.id/kfa",
                        "code": "{{MEDICATION1_INGREDIENT3_CODE}}",
                        "display": "{{MEDICATION1_INGREDIENT3_DISPLAY}}"
                    }
                ]
            },
            "isActive": true,
            "strength": {
                "numerator": {
                    "value": {{MEDICATION1_INGREDIENT3_DENUMERATOR_VALUE}},
                    "system": "http://unitsofmeasure.org",
                    "code": "{{MEDICATION_INGREDIENT_NUMERATOR_CODE}}"
                },
                "denominator": {
                    "value": {{MEDICATION1_INGREDIENT3_DENUMERATOR_VALUE}},
                    "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                    "code": "{{MEDICATION_INGREDIENT_DENUMERATOR_CODE1}}"
                }
            }
        },
        {
            "itemCodeableConcept": {
                "coding": [
                    {
                        "system": "http://sys-ids.kemkes.go.id/kfa",
                        "code": "{{MEDICATION1_INGREDIENT4_CODE}}",
                        "display": "{{MEDICATION1_INGREDIENT4_DISPLAY}}"
                    }
                ]
            },
            "isActive": true,
            "strength": {
                "numerator": {
                    "value": {{MEDICATION1_INGREDIENT4_DENUMERATOR_VALUE}},
                    "system": "http://unitsofmeasure.org",
                    "code": "{{MEDICATION_INGREDIENT_NUMERATOR_CODE}}"
                },
                "denominator": {
                    "value": {{MEDICATION1_INGREDIENT4_DENUMERATOR_VALUE}},
                    "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                    "code": "{{MEDICATION_INGREDIENT_DENUMERATOR_CODE1}}"
                }
            }
        }
    ],
   "extension": [
       {
           "url": "https://fhir.kemkes.go.id/r4/StructureDefinition/MedicationType",
           "valueCodeableConcept": {
               "coding": [
                   {
                       "system": "https://terminology.kemkes.go.id/CodeSystem/medication-type",
                       "code": "{{MEDICATION1_TYPE_CODE}}",
                       "display": "{{MEDICATION1_TYPE_DISPLAY}}"
                   }
               ]
           }
       }
   ]
}
        
Variabel Deskripsi
$GENERATED_UUID_MEDICATION_DISPENSE UUID MedicationRequest yang digenerate
$GENERATED_UUID_MEDICATION_REQUEST UUID MedicationRequest yang digenerate
$IHS_NUMBER_PASIEN SATUSEHAT ID Number untuk Pasien
$NAMA_PASIEN Nama Pasien
$IHS_NUMBER_DOKTER SATUSEHAT ID Number untuk Dokter/Nakes
$GENERATED_UUID_EPISODEOFCARE UUID EpisodeOfCare yang digenerate
$GENERATED_UUID_MEDICATION UUID Medication yang digenerate
$DATETIME_OBAT_DISIAPKAN Tanggal dan jam obat disiapkan
$DATETIME_OBAT_DIBERIKAN Tanggal dan jam obat diberikan
$DATE_MULAI_PENGOBATAN Tanggal mulai pemberian obat
$DATE_KUNJUNGAN_BULANAN_BERIKUTNYA Tanggal kunjungan ulang (kontrol) bulan berikutnya

5. MedicationRequest

{
    "resourceType": "MedicationRequest",
    "identifier":  [
        {
            "system": "http://sys-ids.kemkes.go.id/prescription/10000004",
            "use": "official",
            "value": "123456788"
        },
        {
            "system": "http://sys-ids.kemkes.go.id/prescription-item/10000004",
            "use": "official",
            "value": "123456788-1"
        }
    ],
    "status": "completed",
    "statusReason": {
        "coding":  [
            {
                "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-status-reason",
                "code": "clarif",
                "display": "Prescription requires clarification"
            }
        ]
    },
    "intent": "order",
    "category":  [
        {
            "coding":  [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
                    "code": "outpatient",
                    "display": "Outpatient"
                }
            ]
        }
    ],
    "priority": "routine",
    "medicationReference": {
        "reference": "Medication/c2843f5d-54a6-4491-9ebe-bd56594713aa",
        "display": "Obat Anti Tuberculosis / Rifampicin 150 mg / Isoniazid 75 mg / Pyrazinamide 400 mg / Ethambutol 275 mg Kaplet Salut Selaput (KIMIA FARMA)"
    },
    "subject": {
        "reference": "Patient/100000030009",
        "display": "Budi Santoso"
    },
    "encounter": {
        "reference": "Encounter/14e8398c-1016-44b8-b619-a802b80d2c94"
    },
    "authoredOn": "2022-08-04",
    "requester": {
        "reference": "Practitioner/N10000001",
        "display": "Dokter Bronsig"
    },
    "performerType": {
        "coding":  [
            {
                "system": "http://snomed.info/sct",
                "code": "309343006",
                "display": "Physician"
            }
        ]
    },
    "reasonCode":  [
        {
            "coding":  [
                {
                    "system": "http://hl7.org/fhir/sid/icd-10",
                    "code": "A15.0",
                    "display": "Tuberculosis of lung, confirmed by sputum microscopy with or without culture"
                }
            ]
        }
    ],
    "courseOfTherapyType": {
        "coding":  [
            {
                "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy",
                "code": "continuous",
                "display": "Continuing long term therapy"
            }
        ]
    },
    "dosageInstruction":  [
        {
            "sequence": 1,
            "text": "4 tablet per hari",
            "additionalInstruction":  [
                {
                    "text": "Diminum setiap hari"
                }
            ],
            "patientInstruction": "4 tablet perhari, diminum setiap hari tanpa jeda sampai prose pengobatan berakhir",
            "timing": {
                "repeat": {
                    "frequency": 1,
                    "period": 1,
                    "periodUnit": "d"
                }
            },
            "route": {
                "coding":  [
                    {
                        "system": "http://www.whocc.no/atc",
                        "code": "O",
                        "display": "Oral"
                    }
                ]
            },
            "doseAndRate":  [
                {
                    "type": {
                        "coding":  [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                "code": "ordered",
                                "display": "Ordered"
                            }
                        ]
                    },
                    "doseQuantity": {
                        "value": 4,
                        "unit": "TAB",
                        "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                        "code": "TAB"
                    }
                }
            ]
        }
    ],
    "dispenseRequest": {
        "dispenseInterval": {
            "value": 1,
            "unit": "days",
            "system": "http://unitsofmeasure.org",
            "code": "d"
        },
        "validityPeriod": {
            "start": "2022-01-01",
            "end": "2022-01-30"
        },
        "numberOfRepeatsAllowed": 0,
        "quantity": {
            "value": 120,
            "unit": "TAB",
            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
            "code": "TAB"
        },
        "expectedSupplyDuration": {
            "value": 30,
            "unit": "days",
            "system": "http://unitsofmeasure.org",
            "code": "d"
        }
    }
}
{
    "resourceType": "MedicationRequest",
    "identifier": [
        {
            "system": "http://sys-ids.kemkes.go.id/prescription/{{FACILITY_IHS_NUMBER}}",
            "use": "official",
            "value": "{{MEDICATIONREQ_LOCAL1_CODE}}"
        },
        {
            "system": "http://sys-ids.kemkes.go.id/prescription-item/{{FACILITY_IHS_NUMBER}}",
            "use": "official",
            "value": "{{MEDICATIONREQ_LOCAL2_CODE}}"
        }
    ],
    "status": "completed",
    "statusReason": {
        "coding": [
            {
                "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-status-reason",
                "code": "clarif",
                "display": "Prescription requires clarification"
            }
        ]
    },
    "intent": "order",
    "category": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
                    "code": "outpatient",
                    "display": "Outpatient"
                }
            ]
        }
    ],
    "priority": "routine",
    "medicationReference": {
        "reference": "Medication/{{MEDICATION1_RERERENCE_ID}}",
        "display": "{{MEDICATION1_CODE_DISPLAY}}"
    },
    "subject": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}",
        "display": "{{PATIENT_NAME}}"
    },
    "encounter": {
        "reference": "Encounter/{{ENCOUNTER_REFERENCE_ID}}"
    },
    "authoredOn": "{{MEDICATIONREQ_AUTHOREDON}}",
    "requester": {
        "reference": "Practitioner/{{DOCTOR_IHS_NUMBER}}",
        "display": "{{DOCTOR_NAME}}"
    },
    "performerType": {
        "coding": [
            {
                "system": "http://snomed.info/sct",
                "code": "309343006",
                "display": "Physician"
            }
        ]
    },
    "reasonCode": [
        {
            "coding": [
                {
                    "system": "http://hl7.org/fhir/sid/icd-10",
                    "code": "{{CONDITION1_ICD_CODE}}",
                    "display": "{{CONDITION1_ICD_DISPLAY}}"
                }
            ]
        }
    ],
    "courseOfTherapyType": {
        "coding": [
            {
                "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy",
                "code": "continuous",
                "display": "Continuing long term therapy"
            }
        ]
    },
    "dosageInstruction": [
        {
            "sequence": 1,
            "text": "{{MEDICATIONREQ_DOSAGE_TEXT}}",
            "additionalInstruction": [
                {
                    "text": "{{MEDICATIONREQ_DOSAGE_TEXT_ADD}}"
                }
            ],
            "patientInstruction": "{{MEDICATIONREQ_DOSAGE_TEXT_INSTRUCTION}}",
            "timing": {
                "repeat": {
                    "frequency": 1,
                    "period": 1,
                    "periodUnit": "d"
                }
            },
            "route": {
                "coding": [
                    {
                        "system": "http://www.whocc.no/atc",
                        "code": "O",
                        "display": "Oral"
                    }
                ]
            },
            "doseAndRate": [
                {
                    "type": {
                        "coding": [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                                "code": "ordered",
                                "display": "Ordered"
                            }
                        ]
                    },
                    "doseQuantity": {
                        "value": 4,
                        "unit": "{{MEDICATIONREQ_DOSE_UNIT}}",
                        "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                        "code": "{{MEDICATIONREQ_DOSE_UNIT}}"
                    }
                }
            ]
        }
    ],
    "dispenseRequest": {
        "dispenseInterval": {
            "value": {{MEDICATIONREQ_DISPENSE_INTERVAL}},
            "unit": "days",
            "system": "http://unitsofmeasure.org",
            "code": "d"
        },
        "validityPeriod": {
            "start": "{{MEDICATIONREQ_DISPENSE_START}}",
            "end": "{{MEDICATIONREQ_DISPENSE_END}}"
        },
        "numberOfRepeatsAllowed": 0,
        "quantity": {
            "value": {{MEDICATIONREQ_DISPENSE_QUANTITY}},
            "unit": "{{MEDICATIONREQ_DOSE_UNIT}}",
            "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
            "code": "{{MEDICATIONREQ_DOSE_UNIT}}"
        },
        "expectedSupplyDuration": {
            "value": {{MEDICATIONREQ_DISPENSE_DURATION}},
            "unit": "days",
            "system": "http://unitsofmeasure.org",
            "code": "d"
        }
    }
}
        
Variabel Deskripsi
$GENERATED_UUID_MEDICATION_DISPENSE UUID MedicationRequest yang digenerate
$GENERATED_UUID_MEDICATION_REQUEST UUID MedicationRequest yang digenerate
$IHS_NUMBER_PASIEN SATUSEHAT ID Number untuk Pasien
$NAMA_PASIEN Nama Pasien
$IHS_NUMBER_DOKTER SATUSEHAT ID Number untuk Dokter/Nakes
$GENERATED_UUID_EPISODEOFCARE UUID EpisodeOfCare yang digenerate
$GENERATED_UUID_MEDICATION UUID Medication yang digenerate
$DATETIME_OBAT_DISIAPKAN Tanggal dan jam obat disiapkan
$DATETIME_OBAT_DIBERIKAN Tanggal dan jam obat diberikan
$DATE_MULAI_PENGOBATAN Tanggal mulai pemberian obat
$DATE_KUNJUNGAN_BULANAN_BERIKUTNYA Tanggal kunjungan ulang (kontrol) bulan berikutnya

II. Berbasis Bundle

E. Kunjungan Akhir Pengobatan

Proses ini digunakan untuk mencatat hasil akhir dari perawatan TB. diharapkan pada akhir proses pengobatan TB dikirimkan bundle yang berisi update dari informasi periode EpisodeOfCare serta Resource Encounter yang menyatakan hasil pemeriksaan pada akhir periode tersebut. Resource Encounter diberlakukan sama seperti bundle lainnya yaitu tetap menyebutkan referensi ID EpisodeOfCare.

alt text

I. Berbasis Resource

Entry Resources yang digunakan

No Nama Resource Entry Mandatory Metode
1 EpisodeOfCare Required UPDATE(PUT)
2 Encounter Required BUAT BARU(POST)
3 DiagnosticReport Required BUAT BARU(POST)
4 Observation Required BUAT BARU(POST)
5 QuestionnaireResponse Required UPDATE(PUT)

1. EpisodeOfCare

{
    "resourceType": "EpisodeOfCare",
    "id": "296b5ead-a10c-42db-bcc0-469c79c668f6",
    "identifier":  [
        {
            "system": "http://sys-ids.kemkes.go.id/episode-of-care/10084561/",
            "value": "EOC12345"
        }
    ],
    "status": "finished",
    "statusHistory":  [
        {
            "status": "active",
            "period": {
                "start": "2022-01-01",
                "end": "2022-06-30"
            }
        },
        {
            "status": "finished",
            "period": {
                "start": "2022-06-30",
                "end": "2022-06-30"
            }
        }
    ],
    "type":  [
        {
            "coding":  [
                {
                    "system": "https://terminology.kemkes.go.id/CodeSystem/episodeofcare-type",
                    "code": "TB-SO",
                    "display": "Tuberkulosis Sensitif Obat"
                }
            ]
        }
    ],
    "diagnosis":  [
        {
            "condition": {
                "reference": "Condition/fb2375e6-627e-40f5-9c82-d6a71a71e689",
                "display": "Tuberculosis of lung, confirmed by sputum microscopy with or without culture"
            },
            "role": {
                "coding":  [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role",
                        "code": "DD",
                        "display": "Discharged Diagnosis"
                    }
                ]
            },
            "rank": 1
        }
    ],
    "patient": {
        "reference": "Patient/100000030009",
        "display": "Budi Santoso"
    },
    "managingOrganization": {
        "reference": "Organization/10084561"
    },
    "period": {
        "start": "2022-06-30",
        "end": "2022-06-30"
    },
    "careManager": {
        "reference": "Practitioner/N10000001",
        "display": "Dokter Bronsig"
    }
}
{
    "resourceType": "EpisodeOfCare",
    "id": "{{EPISODEOFCARE_REFERENCE_ID}}",
    "identifier": [
        {
            "system": "http://sys-ids.kemkes.go.id/episode-of-care/{{FACILITY_IHS_NUMBER}}/",
            "value": "{{EPISODEOFCARE_LOCAL_CODE}}"
        }
    ],
    "status": "finished",
    "statusHistory": [
        {
            "status": "active",
            "period": {
                "start": "{{EPISODEOFCARE_PERIOD1_START}}",
                "end": "{{EPISODEOFCARE_PERIOD1_END}}"
            }
        },
        {
            "status": "finished",
            "period": {
                "start": "{{EPISODEOFCARE_PERIOD2_START}}",
                "end": "{{EPISODEOFCARE_PERIOD2_END}}"
            }
        }
    ],
    "type": [
        {
            "coding": [
                {
                    "system": "https://terminology.kemkes.go.id/CodeSystem/episodeofcare-type",
                    "code": "{{EPISODEOFCARE_TYPE_CODE}}",
                    "display": "{{EPISODEOFCARE_TYPE_DISPLAY}}"
                }
            ]
        }
    ],
    "diagnosis": [
        {
            "condition": {
                "reference": "Condition/{{CONDITION1_REFERENCE_ID}}",
                "display": "{{CONDITION1_ICD_DISPLAY}}"
            },
            "role": {
                "coding": [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role",
                        "code": "DD",
                        "display": "Discharged Diagnosis"
                    }
                ]
            },
            "rank": 1
        }
    ],
    "patient": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}",
        "display": "{{PATIENT_NAME}}"
    },
    "managingOrganization": {
        "reference": "Organization/{{FACILITY_IHS_NUMBER}}"
    },
    "period": {
        "start": "{{EPISODEOFCARE_PERIOD2_START}}",
        "end": "{{EPISODEOFCARE_PERIOD2_END}}"
    },
    "careManager": {
        "reference": "Practitioner/{{DOCTOR_IHS_NUMBER}}",
        "display": "{{DOCTOR_NAME}}"
    }
}
        
Variabel Deskripsi
$GENERATED_UUID_EPISODEOFCARE UUID EpisodeOfCare
$IHS_NUMBER_PASIEN SATUSEHAT ID Number untuk Pasien
$NAMA_PASIEN Nama Pasien
$IHS_NUMBER_DOKTER SATUSEHAT ID Number untuk Dokter/Nakes
$IHS_NUMBER_FASYANKES SATUSEHAT ID Number untuk FASYANKES

2. Encounter

{
    "resourceType": "Encounter",
    "identifier":  [
        {
            "system": "http://sys-ids.kemkes.go.id/encounter/10084561",
            "value": "P20240001"
        }
    ],
    "status": "arrived",
    "class": {
        "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "code": "AMB",
        "display": "ambulatory"
    },
    "subject": {
        "reference": "Patient/100000030009",
        "display": "Budi Santoso"
    },
    "participant":  [
        {
            "type":  [
                {
                    "coding":  [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                            "code": "ATND",
                            "display": "attender"
                        }
                    ]
                }
            ],
            "individual": {
                "reference": "Practitioner/N10000001",
                "display": "Dokter Bronsig"
            }
        }
    ],
    "period": {
        "start": "2022-06-14T07:00:00+07:00"
    },
    "location":  [
        {
            "location": {
                "reference": "Location/ef011065-38c9-46f8-9c35-d1fe68966a3e",
                "display": "Ruang 1A, Poliklinik Rawat Jalan"
            }
        }
    ],
    "statusHistory":  [
        {
            "status": "arrived",
            "period": {
                "start": "2022-06-14T07:00:00+07:00",
                "end": "2022-06-14T09:00:00+07:00"
            }
        }
    ],
    "serviceProvider": {
        "reference": "Organization/10084561"
    }
}
{
    "resourceType": "Encounter",
    "identifier": [
        {
            "system": "http://sys-ids.kemkes.go.id/encounter/{{FACILITY_IHS_NUMBER}}",
            "value": "{{ENCOUNTER_LOCAL_CODE}}"
        }
    ],
    "status": "arrived",
    "class": {
        "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "code": "AMB",
        "display": "ambulatory"
    },
    "subject": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}",
        "display": "{{PATIENT_NAME}}"
    },
    "participant": [
        {
            "type": [
                {
                    "coding": [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                            "code": "ATND",
                            "display": "attender"
                        }
                    ]
                }
            ],
            "individual": {
                "reference": "Practitioner/{{DOCTOR_IHS_NUMBER}}",
                "display": "{{DOCTOR_NAME}}"
            }
        }
    ],
    "period": {
        "start": "{{ENCOUNTER_PERIOD1_START}}"
    },
    "location": [
        {
            "location": {
                "reference": "Location/{{ENCOUNTER_LOCATION_ID}}",
                "display": "{{ENCOUNTER_LOCATION_NAME}}"
            }
        }
    ],
    "statusHistory": [
        {
            "status": "arrived",
            "period": {
                "start": "{{ENCOUNTER_PERIOD1_START}}",
                "end": "{{ENCOUNTER_PERIOD1_END}}"
            }
        }
    ],
    "serviceProvider": {
        "reference": "Organization/{{FACILITY_IHS_NUMBER}}"
    }
}
        
Variabel Deskripsi
$ID_ENCOUNTER_1 UUID Encounter yang digenerate
$ID_ENCOUNTER_2 UUID Encounter yang digenerate
$IHS_NUMBER_PASIEN SATUSEHAT ID Number untuk Pasien
$NAMA_PASIEN Nama Pasien
$IHS_NUMBER_DOKTER SATUSEHAT ID Number untuk Dokter/Nakes
$IHS_NUMBER_FASYANKES SATUSEHAT ID Number untuk FASYANKES

3. DiagnosticReport

{
    "resourceType": "DiagnosticReport",
    "identifier":  [
        {
            "system": "http://sys-ids.kemkes.go.id/diagnostic/10000004/radiology",
            "use": "official",
            "value": "5234342"
        }
    ],
    "status": "final",
    "category":  [
        {
            "coding":  [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v2-0074",
                    "code": "RAD",
                    "display": "Radiology"
                }
            ]
        }
    ],
    "code": {
        "coding":  [
            {
                "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                "code": "imaging",
                "display": "Imaging"
            }
        ]
    },
    "subject": {
        "reference": "Patient/100000030009"
    },
    "encounter": {
        "reference": "Encounter/14e8398c-1016-44b8-b619-a802b80d2c94"
    },
    "effectiveDateTime": "2012-12-01T12:00:00+01:00",
    "issued": "2012-12-01T12:00:00+01:00",
    "performer":  [
        {
            "reference": "Practitioner/N10000001"
        },
        {
            "reference": "Organization/10000004"
        }
    ],
    "result":  [
        {
            "reference": "Observation/359c66f2-0383-487a-8dee-69e71aea4de3",
            "display": "XR Chest PA upright"
        }
    ],
    "conclusionCode":  [
        {
            "coding":  [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
                    "code": "POS",
                    "display": "Positive"
                }
            ]
        }
    ]
}
{
    "resourceType": "DiagnosticReport",
    "identifier": [
        {
            "system": "http://sys-ids.kemkes.go.id/diagnostic/{{FACILITY_IHS_NUMBER}}/radiology",
            "use": "official",
            "value": "{{DIAGNOSTICREPORT_LOCAL_CODE}}"
        }
    ],
    "status": "final",
    "category": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v2-0074",
                    "code": "RAD",
                    "display": "Radiology"
                }
            ]
        }
    ],
    "code": {
        "coding": [
            {
                "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                "code": "imaging",
                "display": "Imaging"
            }
        ]
    },
    "subject": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}"
    },
    "encounter": {
        "reference": "Encounter/{{ENCOUNTER_REFERENCE_ID}}"
    },
    "effectiveDateTime": "{{OBSERVATION_EFFECTIVE_DATETIME}}",
    "issued": "{{OBSERVATION_ISSUED}}",
    "performer": [
        {
            "reference": "Practitioner/{{DOCTOR_IHS_NUMBER}}"
        },
        {
            "reference": "Organization/{{FACILITY_IHS_NUMBER}}"
        }
    ],
    "result": [
        {
            "reference": "Observation/{{OBSERVATION8_REFERENCE_ID}}",
            "display": "XR Chest PA upright"
        }
    ],
    "conclusionCode": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
                    "code": "POS",
                    "display": "Positive"
                }
            ]
        }
    ]
}
        
Variabel Deskripsi
$GENERATED_UUID_DIAGNOSTIC_REPORT UUID DiagnosticReport yang digenerate
$GENERATED_UUID_OBSERVATION_1 UUID pemeriksaan mikroskopis yang digenerate
$GENERATED_UUID_ENCOUNTER UUID Encounter yang digenerate
$IHS_NUMBER_PASIEN SATUSEHAT ID Number untuk Pasien
$IHS_NUMBER_FASYANKES SATUSEHAT ID Number untuk FASYANKES
$NAMA_FASYANKES Nama FASYANKES

4. Observation

{
    "resourceType": "Observation",
    "identifier":  [
        {
            "system": "http://sys-ids.kemkes.go.id/observation/1000004",
            "value": "O111112"
        }
    ],
    "status": "final",
    "category":  [
        {
            "coding":  [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v2-0074",
                    "code": "RAD",
                    "display": "Radiology"
                }
            ]
        }
    ],
    "code": {
        "coding":  [
            {
                "system": "http://loinc.org",
                "code": "24648-8",
                "display": "XR Chest PA upright"
            }
        ]
    },
    "subject": {
        "reference": "Patient/100000030009"
    },
    "encounter": {
        "reference": "Encounter/14e8398c-1016-44b8-b619-a802b80d2c94"
    },
    "effectiveDateTime": "2022-06-14",
    "bodySite": {
        "coding":  [
            {
                "system": "http://snomed.info/sct",
                "code": "51185008",
                "display": "Chest"
            }
        ]
    },
    "valueString": "Uraian hasil pemeriksaan: foto thorax, proyeksi PA, posisi erect, asimetris, inspirasi dan kondisi cukup dengan hasil: 1) tampak cavitas inhomogen di proyeksi pulmo bilateral terutama dextra, batas tak tegas disertai penebalan fibrotic, cavitas (+), 2) tak tampak pemadatan limfonodi hilus bilateral, 3) tampak kedua costofrenicus lancip, 4) tampak kedua diafragma licin dan tak mendatar, 5) cor CTR tak valid dinilai (asimetri), tampak kalsifikasi di arcus aorta dengan bentuk crescent, 6) sistem tulang yang tervisualisasi intact. Kesan: TB paru lama aktif, besar cor tak valid dinilai, aortosclerosis",
    "performer":  [
        {
            "reference": "Practitioner/N10000001"
        },
        {
            "reference": "Organization/10000004"
        }
    ],
    "interpretation":  [
        {
            "coding":  [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
                    "code": "POS",
                    "display": "Positive"
                }
            ]
        }
    ],
    "referenceRange":  [
        {
            "text": "No abnormalities found"
        }
    ]
}
{
    "resourceType": "Observation",
    "identifier": [
        {
            "system": "http://sys-ids.kemkes.go.id/observation/{{FACILITY_IHS_NUMBER}}",
            "value": "{{OBSERVATION8_LOCAL_CODE}}"
        }
    ],
    "status": "final",
    "category": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v2-0074",
                    "code": "RAD",
                    "display": "Radiology"
                }
            ]
        }
    ],
    "code": {
        "coding": [
            {
                "system": "http://loinc.org",
                "code": "24648-8",
                "display": "XR Chest PA upright"
            }
        ]
    },
    "subject": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}"
    },
    "encounter": {
        "reference": "Encounter/{{ENCOUNTER_REFERENCE_ID}}"
    },
    "effectiveDateTime": "{{OBSERVATION_EFFECTIVE_DATETIME}}",
    "bodySite": {
        "coding": [
            {
                "system": "http://snomed.info/sct",
                "code": "51185008",
                "display": "Chest"
            }
        ]
    },
    "valueString": "Uraian hasil pemeriksaan: foto thorax, proyeksi PA, posisi erect, asimetris, inspirasi dan kondisi cukup dengan hasil: 1) tampak cavitas inhomogen di proyeksi pulmo bilateral terutama dextra, batas tak tegas disertai penebalan fibrotic, cavitas (+), 2) tak tampak pemadatan limfonodi hilus bilateral, 3) tampak kedua costofrenicus lancip, 4) tampak kedua diafragma licin dan tak mendatar, 5) cor CTR tak valid dinilai (asimetri), tampak kalsifikasi di arcus aorta dengan bentuk crescent, 6) sistem tulang yang tervisualisasi intact. Kesan: TB paru lama aktif, besar cor tak valid dinilai, aortosclerosis",
    "performer": [
        {
            "reference": "Practitioner/{{DOCTOR_IHS_NUMBER}}"
        },
        {
            "reference": "Organization/{{FACILITY_IHS_NUMBER}}"
        }
    ],
    "interpretation": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
                    "code": "POS",
                    "display": "Positive"
                }
            ]
        }
    ],
    "referenceRange": [
        {
            "text": "No abnormalities found"
        }
    ]
}
        
Variabel Deskripsi
$GENERATED_UUID_ENCOUNTER UUID Encounter yang digenerate
$CODE_OBSERVATION_1 CodeSystem pemeriksaan mikroskopis
$VALUE_OBSERVATION_1 Value pemeriksaan mikroskopis

5. QuestionnaireResponse

{
    "resourceType": "QuestionnaireResponse",
    "questionnaire": "https://fhir.kemkes.go.id/Questionnaire/Q0001",
    "status": "completed",
    "subject": {
        "reference": "Patient/100000030009",
        "display": "Budi Santoso"
    },
    "encounter": {
        "reference": "Encounter/14e8398c-1016-44b8-b619-a802b80d2c94"
    },
    "authored": "2022-07-26T10:00:00+07:00",
    "author": {
        "reference": "Practitioner/N10000001"
    },
    "source": {
        "reference": "Patient/100000030009"
    },
    "item":  [
        {
            "linkId": "1",
            "text": "Tipe diagnosis tuberkulosis",
            "answer":  [
                {
                    "valueCoding": {
                        "system": "https://terminology.kemkes.go.id/CodeSystem/tb-case-definition",
                        "code": "tb-bac",
                        "display": "Terkonfirmasi bakteriologis"
                    }
                }
            ]
        },
        {
            "linkId": "2",
            "text": "Klasifikasi tuberkulosis berdasarkan lokasi anatomis",
            "answer":  [
                {
                    "valueCoding": {
                        "system": "https://terminology.kemkes.go.id/CodeSystem/tb-anatomical",
                        "code": "PTB",
                        "display": "Tuberkulosis Paru"
                    }
                }
            ]
        },
        {
            "linkId": "3",
            "text": "Klasifikasi tuberkulosis berdasarkan riwayat pengobatan",
            "answer":  [
                {
                    "valueCoding": {
                        "system": "https://terminology.kemkes.go.id/CodeSystem/prev-tb-treatment",
                        "code": "new",
                        "display": "Kasus Baru"
                    }
                }
            ]
        },
        {
            "linkId": "4",
            "text": "Hasil akhir pengobatan tuberkulosis",
            "answer":  [
                {
                    "valueCoding": {
                        "system": "https://terminology.kemkes.go.id/CodeSystem/tb-outcome-class",
                        "code": "cured",
                        "display": "Sembuh"
                    }
                }
            ]
        }
    ]
}
{
    "resourceType": "QuestionnaireResponse",
    "id": "{{QUESTRESPONSE_REFERENCE_ID}}",
    "questionnaire": "https://fhir.kemkes.go.id/Questionnaire/Q0001",
    "status": "completed",
    "subject": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}",
        "display": "{{PATIENT_NAME}}"
    },
    "encounter": {
        "reference": "Encounter/{{ENCOUNTER_REFERENCE_ID}}"
    },
    "authored": "{{QUESTRESPONSE_AUTHORED}}",
    "author": {
        "reference": "Practitioner/{{DOCTOR_IHS_NUMBER}}"
    },
    "source": {
        "reference": "Patient/{{PATIENT_IHS_NUMBER}}"
    },
    "item": [
        {
            "linkId": "1",
            "text": "Tipe diagnosis tuberkulosis",
            "answer": [
                {
                    "valueCoding": {
                        "system": "https://terminology.kemkes.go.id/CodeSystem/tb-case-definition",
                        "code": "{{QUESTRESPONSE_ITEM1_CODE}}",
                        "display": "{{QUESTRESPONSE_ITEM1_DISPLAY}}"
                    }
                }
            ]
        },
        {
            "linkId": "2",
            "text": "Klasifikasi tuberkulosis berdasarkan lokasi anatomis",
            "answer": [
                {
                    "valueCoding": {
                        "system": "https://terminology.kemkes.go.id/CodeSystem/tb-anatomical",
                        "code": "{{QUESTRESPONSE_ITEM2_CODE}}",
                        "display": "{{QUESTRESPONSE_ITEM2_DISPLAY}}"
                    }
                }
            ]
        },
        {
            "linkId": "3",
            "text": "Klasifikasi tuberkulosis berdasarkan riwayat pengobatan",
            "answer": [
                {
                    "valueCoding": {
                        "system": "https://terminology.kemkes.go.id/CodeSystem/prev-tb-treatment",
                        "code": "{{QUESTRESPONSE_ITEM3_CODE}}",
                        "display": "{{QUESTRESPONSE_ITEM3_DISPLAY}}"
                    }
                }
            ]
        },
        {
            "linkId": "4",
            "text": "Hasil akhir pengobatan tuberkulosis",
            "answer": [
                {
                    "valueCoding": {
                        "system": "https://terminology.kemkes.go.id/CodeSystem/tb-outcome-class",
                        "code": "{{QUESTRESPONSE_ITEM4_CODE}}",
                        "display": "{{QUESTRESPONSE_ITEM4_DISPLAY}}"
                    }
                }
            ]
        }
    ]
}
        
Variabel Deskripsi
$IHS_NUMBER_PASIEN SATUSEHAT ID Number untuk Pasien
$NAMA_PASIEN Nama Pasien
$GENERATED_UUID_ENCOUNTER UUID Encounter yang digenerate
$TIMESTAMP_AUTHORED Tanggal dan waktu Questionnaire dibuat
$IHS_NUMBER_DOKTER SATUSEHAT ID Number untuk Dokter/Nakes
$CODE_TB_OUTCOME Kode hasil akhir Pengobatan (lihat ValueSet)
$DISPLAY_TB_OUTCOME Teks display hasil akhir Pengobatan (lihat ValueSet)
Hasil akhir pengobatan tuberkulosis
Code System https://terminology.kemkes.go.id/CodeSystem/tb-outcome-class
Value Set url https://terminology.kemkes.go.id/ValueSet/tb-outcome-class
Kode Teks Display
cured Sembuh
cmpl Pengobatan Lengkap
failed Pengobatan Gagal
died Meninggal
loss-to-follow-up Putus Obat
not-eval Tidak dievaluasi

II. Berbasis Bundle