feat(cpone): migrate lab registration endpoints
This commit is contained in:
55
README.md
55
README.md
@@ -5,9 +5,62 @@ Service Go untuk endpoint:
|
||||
```text
|
||||
GET /api/cpone/layanan-mapping-harga?periodeTarifID=10&layananID=6413,6414,1309
|
||||
Authorization: Bearer <your-secure-token>
|
||||
|
||||
POST /api/cpone/patients/lab-registration
|
||||
Authorization: Bearer <your-secure-token>
|
||||
Content-Type: application/json
|
||||
|
||||
POST /api/cpone/patients/lab-registration/{regId}/services
|
||||
Authorization: Bearer <your-secure-token>
|
||||
Content-Type: application/json
|
||||
```
|
||||
|
||||
Format response dibuat mengikuti controller PHP `LayananDepartemenController::mappingHarga`.
|
||||
Format payload dan response dibuat mengikuti controller PHP CPONE terkait.
|
||||
|
||||
Contoh payload registrasi laboratorium:
|
||||
|
||||
```json
|
||||
{
|
||||
"medrec_id": "00001234",
|
||||
"tanggal": "2026-08-18",
|
||||
"departemen_id": "LAB",
|
||||
"dokter_id": "DR01",
|
||||
"dokter_pengirim_id": "DR02",
|
||||
"perujuk": null,
|
||||
"jenis_pasien_id": "0",
|
||||
"periode_tarif_id": 10,
|
||||
"kelas_id": "Default",
|
||||
"shift_harian_id": null,
|
||||
"diagnosa_kerja": "Pemeriksaan laboratorium",
|
||||
"catatan": null,
|
||||
"channel": "CPONE"
|
||||
}
|
||||
```
|
||||
|
||||
`dokter_pengirim_id` atau `perujuk` wajib diisi. Endpoint ini membuat
|
||||
registrasi laboratorium tanpa layanan, sama seperti
|
||||
`PatientController::registerLab`; layanan ditambahkan melalui endpoint terpisah.
|
||||
|
||||
Contoh payload penambahan layanan:
|
||||
|
||||
```json
|
||||
{
|
||||
"layanan": [
|
||||
{
|
||||
"layanan_id": "6413",
|
||||
"jumlah": 1,
|
||||
"cito": false,
|
||||
"markup_cito": 0,
|
||||
"catatan": null
|
||||
}
|
||||
],
|
||||
"channel": "CPONE"
|
||||
}
|
||||
```
|
||||
|
||||
Harga, diskon publik, share, unit cost, layanan multiple, dan spesimen diambil
|
||||
langsung dari master HIS. Layanan yang sudah ada akan dilewati dan dilaporkan
|
||||
melalui `skipped_layanan_ids`.
|
||||
|
||||
## Config
|
||||
|
||||
|
||||
Reference in New Issue
Block a user