feat(cpone): migrate medrec endpoint
This commit is contained in:
31
README.md
31
README.md
@@ -13,10 +13,41 @@ Content-Type: application/json
|
||||
POST /api/cpone/patients/lab-registration/{regId}/services
|
||||
Authorization: Bearer <your-secure-token>
|
||||
Content-Type: application/json
|
||||
|
||||
POST /api/cpone/patients/medrec
|
||||
Authorization: Bearer <your-secure-token>
|
||||
Content-Type: application/json
|
||||
```
|
||||
|
||||
Format payload dan response dibuat mengikuti controller PHP CPONE terkait.
|
||||
|
||||
Contoh payload pembuatan pasien HIS:
|
||||
|
||||
```json
|
||||
{
|
||||
"rs": "PRIMAYA",
|
||||
"nama": "BUDI SANTOS",
|
||||
"jenis_kelamin": "L",
|
||||
"tgl_lahir": "1990-01-15",
|
||||
"jenis_nomer_sosial": "KTP",
|
||||
"nomer_sosial": "3174011501900001",
|
||||
"telepon": "081234567890",
|
||||
"ponsel": "081234567890",
|
||||
"email": "budi@example.com",
|
||||
"tempat_lahir": "JAKARTA",
|
||||
"alamat": "JL. CONTOH NO. 1",
|
||||
"propinsi": "DKI JAKARTA",
|
||||
"kabupaten": "JAKARTA",
|
||||
"kecamatan": "KECAMATAN CONTOH",
|
||||
"kelurahan": "KELURAHAN CONTOH",
|
||||
"kode_pos": "12345",
|
||||
"channel": "CPONE"
|
||||
}
|
||||
```
|
||||
|
||||
Endpoint mengembalikan `created`, `already_exists`, atau `possible_duplicate`
|
||||
sesuai hasil pemeriksaan identitas dan kemiripan data pasien di HIS.
|
||||
|
||||
Contoh payload registrasi laboratorium:
|
||||
|
||||
```json
|
||||
|
||||
Reference in New Issue
Block a user