feat: add package creation and clone validation
This commit is contained in:
54
README.md
54
README.md
@@ -7,6 +7,10 @@ GET /api/cpone/paket
|
||||
GET /api/cpone/paket/{id}
|
||||
Authorization: Bearer <your-secure-token>
|
||||
|
||||
POST /api/cpone/paket
|
||||
Authorization: Bearer <your-secure-token>
|
||||
Content-Type: application/json
|
||||
|
||||
GET /api/cpone/layanan?page=1
|
||||
Authorization: Bearer <your-secure-token>
|
||||
X-RS-Code: <kode-rs>
|
||||
@@ -68,6 +72,56 @@ Content-Type: application/json
|
||||
|
||||
Format payload dan response dibuat mengikuti controller PHP CPONE terkait.
|
||||
|
||||
Contoh payload pembuatan paket beserta layanan:
|
||||
|
||||
```json
|
||||
{
|
||||
"nama": "PAKET MCU CPONE TES 2",
|
||||
"jenis_paket": "MCU",
|
||||
"rawat_inap": false,
|
||||
"rawat_jalan": true,
|
||||
"multi_visit": false,
|
||||
"tanggal_mulai": "2026-09-01",
|
||||
"tanggal_selesai": "2026-09-30",
|
||||
"kelas_id": "Default",
|
||||
"header_paket_id": "",
|
||||
"keterangan": "",
|
||||
"layanan": [
|
||||
{
|
||||
"layanan_id": "1200",
|
||||
"departemen_id": "MED-PNJ-LAB",
|
||||
"jumlah": 1,
|
||||
"jumlah_hari": 1,
|
||||
"harga": "130000.00",
|
||||
"tipe_diskon": "Percentage",
|
||||
"diskon": "0.00",
|
||||
"tipe_share": "Absolute",
|
||||
"share_rs": "65000.00",
|
||||
"share_dokter": "0.00",
|
||||
"share_external": "65000.00",
|
||||
"share_lain": "0.00"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Endpoint mengembalikan HTTP 201 dengan format standar middleware:
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"status": "created",
|
||||
"message": "Paket berhasil dibuat",
|
||||
"data": {
|
||||
"paket_id": "DISP-260900022",
|
||||
"nama": "PAKET MCU CPONE TES 2",
|
||||
"total_harga": "130000.00",
|
||||
"total_diskon": "0.00",
|
||||
"jumlah_layanan": 1
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Contoh payload pembuatan pasien HIS:
|
||||
|
||||
```json
|
||||
|
||||
Reference in New Issue
Block a user