Download OpenAPI specification:
All responses are wrapped in a common envelope:
{ "status": "SUCCESS" | "FAIL", "errorCode": string|null, "message": string|null, "data": ... }.
| patientId required | string The unique identifier of the patient. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "ingredients": [
- {
- "severity": "severe",
- "reactions": [
- {
- "id": "string",
- "code": "string",
- "name": "string"
}
], - "remarks": "string",
- "ingredientName": "string"
}
]
}
}Replaces the patient's entire ADR record with a list of ingredient-based adverse drug reactions.
| patientId required | string The unique identifier of the patient. |
Array of objects (AdrIngredient) Ingredient-based adverse drug reactions recorded for this patient. |
{- "ingredients": [
- {
- "severity": "severe",
- "reactions": [
- {
- "id": "string",
- "code": "string",
- "name": "string"
}
], - "remarks": "string",
- "ingredientName": "string"
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "ingredients": [
- {
- "severity": "severe",
- "reactions": [
- {
- "id": "string",
- "code": "string",
- "name": "string"
}
], - "remarks": "string",
- "ingredientName": "string"
}
]
}
}| patientId required | string The unique identifier of the patient. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "isNkda": false,
- "ingredients": [
- {
- "certainty": "certain",
- "clinicalManifestations": [
- {
- "id": "string",
- "code": "string",
- "name": "string"
}
], - "remarks": "string",
- "ingredientName": "string"
}
]
}
}Replaces the patient's entire allergy record with a list of ingredient-based allergens.
| patientId required | string The unique identifier of the patient. |
| isNkda | boolean Default: false No Known Drug Allergy flag. |
Array of objects (AllergenIngredient) Ingredient-based allergens recorded for this patient. |
{- "isNkda": false,
- "ingredients": [
- {
- "certainty": "certain",
- "clinicalManifestations": [
- {
- "id": "string",
- "code": "string",
- "name": "string"
}
], - "remarks": "string",
- "ingredientName": "string"
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "isNkda": false,
- "ingredients": [
- {
- "certainty": "certain",
- "clinicalManifestations": [
- {
- "id": "string",
- "code": "string",
- "name": "string"
}
], - "remarks": "string",
- "ingredientName": "string"
}
]
}
}| email required | string <email> |
| password required | string <password> |
{- "email": "user@example.com",
- "password": "pa$$word"
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "accessToken": "string",
- "refreshToken": "string",
- "tokenType": "Bearer"
}
}| refreshToken required | string |
{- "refreshToken": "string"
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "accessToken": "string",
- "refreshToken": "string",
- "tokenType": "Bearer"
}
}| externalId | string |
| code | string |
required | object (LocalizedText) A localized text value |
| phone | string |
| fax | string |
string | |
| website | string |
object (LocalizedText) A localized text value |
{- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "phone": "string",
- "fax": "string",
- "email": "string",
- "website": "string",
- "address": {
- "en": "string",
- "zh": "string"
}
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "phone": "string",
- "fax": "string",
- "email": "string",
- "website": "string",
- "address": {
- "en": "string",
- "zh": "string"
}
}
}| page | integer >= 1 Default: 1 The page number to retrieve (1-based index). |
| limit | integer [ 1 .. 100 ] Default: 20 The number of items to return per page. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "items": [
- {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "phone": "string",
- "fax": "string",
- "email": "string",
- "website": "string",
- "address": {
- "en": "string",
- "zh": "string"
}
}
], - "pagination": {
- "page": 1,
- "limit": 20,
- "total": 143,
- "totalPages": 8
}
}
}Create up to 1000 clinic profiles in a single request. Each item is processed independently; the response reports per-item success or failure so partial success is possible.
required | Array of objects (Clinic) [ 1 .. 1000 ] items List of clinic profiles to create. Maximum 1000 items per request. |
{- "items": [
- {
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "phone": "string",
- "fax": "string",
- "email": "string",
- "website": "string",
- "address": {
- "en": "string",
- "zh": "string"
}
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "totalRequested": 5,
- "totalSucceeded": 4,
- "totalFailed": 1,
- "results": [
- {
- "index": 0,
- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "phone": "string",
- "fax": "string",
- "email": "string",
- "website": "string",
- "address": {
- "en": "string",
- "zh": "string"
}
}
}
]
}
}| clinicId required | string The unique identifier of the clinic. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "phone": "string",
- "fax": "string",
- "email": "string",
- "website": "string",
- "address": {
- "en": "string",
- "zh": "string"
}
}
}| clinicId required | string The unique identifier of the clinic. |
| externalId | string |
| code | string |
required | object (LocalizedText) A localized text value |
| phone | string |
| fax | string |
string | |
| website | string |
object (LocalizedText) A localized text value |
{- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "phone": "string",
- "fax": "string",
- "email": "string",
- "website": "string",
- "address": {
- "en": "string",
- "zh": "string"
}
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "phone": "string",
- "fax": "string",
- "email": "string",
- "website": "string",
- "address": {
- "en": "string",
- "zh": "string"
}
}
}| externalId | string External system identifier for this drug. |
| code required | string Unique drug code within the clinic system. |
| name required | string |
| hkRegisterNo | string Registered drug number. |
| hkRegisterName | string Registered drug name. |
| ingredients | Array of strings Drug ingredient codes or names from the drug office registration. |
| legalClassification | string Legal classification of the drug. |
| manufacturer | string Manufacturer of the drug. |
| certHolder | string Certificate holder of the drug. |
| doseForm | string Dosage form of the drug. |
| doseFormExtraInfo | string Extra information about the dosage form. |
| strength | string Strength of the drug. |
| strengthExtraInfo | string Extra information about the strength. |
| allergenGroups | Array of strings Allergen groups associated with this drug. |
| tradeName | string Trade or brand name of the drug. |
| drugLabel | string Label display text for the drug. |
| clinicIds | Array of strings IDs of the clinics where this drug is available (references Clinic). |
| practitionerIds | Array of strings IDs of the practitioners authorized to use this drug (references Practitioner). |
| isSyrup | boolean Default: false |
| isDangerous | boolean Default: false |
| isInjection | boolean Default: false |
| isVaccine | boolean Default: false |
Array of objects (DrugUnitSetting) Unit conversion and usage configurations for this drug. | |
Array of objects (DrugVendor) Vendor and purchasing configurations for this drug. | |
| remarks | string |
| conflictDrugIds | Array of strings IDs of drugs known to have interactions with this drug (references Drug). |
| supportDrugIds | Array of strings IDs of support drugs associated with this drug (references Drug). |
| alternativeDrugIds | Array of strings IDs of alternative drugs for this drug (references Drug). |
{- "externalId": "string",
- "code": "string",
- "name": "string",
- "hkRegisterNo": "string",
- "hkRegisterName": "string",
- "ingredients": [
- "string"
], - "legalClassification": "string",
- "manufacturer": "string",
- "certHolder": "string",
- "doseForm": "string",
- "doseFormExtraInfo": "string",
- "strength": "string",
- "strengthExtraInfo": "string",
- "allergenGroups": [
- "string"
], - "tradeName": "string",
- "drugLabel": "string",
- "clinicIds": [
- "string"
], - "practitionerIds": [
- "string"
], - "isSyrup": false,
- "isDangerous": false,
- "isInjection": false,
- "isVaccine": false,
- "unitSettings": [
- {
- "unitId": "string",
- "isBaseUnit": false,
- "isPurchaseUnit": false,
- "isSalesUnit": false,
- "isDosageUnit": false,
- "isInteger": false,
- "isDeductOne": false,
- "conversionToBaseNumerator": 0,
- "conversionToBaseDenominator": 0
}
], - "vendors": [
- {
- "vendorId": "string",
- "packSize": 0,
- "packUnitId": "string",
- "minimumOrderQuantity": 0,
- "minimumOrderUnitId": "string",
- "isActive": true
}
], - "remarks": "string",
- "conflictDrugIds": [
- "string"
], - "supportDrugIds": [
- "string"
], - "alternativeDrugIds": [
- "string"
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": "string",
- "hkRegisterNo": "string",
- "hkRegisterName": "string",
- "ingredients": [
- "string"
], - "legalClassification": "string",
- "manufacturer": "string",
- "certHolder": "string",
- "doseForm": "string",
- "doseFormExtraInfo": "string",
- "strength": "string",
- "strengthExtraInfo": "string",
- "allergenGroups": [
- "string"
], - "tradeName": "string",
- "drugLabel": "string",
- "clinicIds": [
- "string"
], - "practitionerIds": [
- "string"
], - "isSyrup": false,
- "isDangerous": false,
- "isInjection": false,
- "isVaccine": false,
- "unitSettings": [
- {
- "unitId": "string",
- "isBaseUnit": false,
- "isPurchaseUnit": false,
- "isSalesUnit": false,
- "isDosageUnit": false,
- "isInteger": false,
- "isDeductOne": false,
- "conversionToBaseNumerator": 0,
- "conversionToBaseDenominator": 0
}
], - "vendors": [
- {
- "vendorId": "string",
- "packSize": 0,
- "packUnitId": "string",
- "minimumOrderQuantity": 0,
- "minimumOrderUnitId": "string",
- "isActive": true
}
], - "remarks": "string",
- "conflictDrugIds": [
- "string"
], - "supportDrugIds": [
- "string"
], - "alternativeDrugIds": [
- "string"
]
}
}| page | integer >= 1 Default: 1 The page number to retrieve (1-based index). |
| limit | integer [ 1 .. 100 ] Default: 20 The number of items to return per page. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "items": [
- {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": "string",
- "hkRegisterNo": "string",
- "hkRegisterName": "string",
- "ingredients": [
- "string"
], - "legalClassification": "string",
- "manufacturer": "string",
- "certHolder": "string",
- "doseForm": "string",
- "doseFormExtraInfo": "string",
- "strength": "string",
- "strengthExtraInfo": "string",
- "allergenGroups": [
- "string"
], - "tradeName": "string",
- "drugLabel": "string",
- "clinicIds": [
- "string"
], - "practitionerIds": [
- "string"
], - "isSyrup": false,
- "isDangerous": false,
- "isInjection": false,
- "isVaccine": false,
- "unitSettings": [
- {
- "unitId": "string",
- "isBaseUnit": false,
- "isPurchaseUnit": false,
- "isSalesUnit": false,
- "isDosageUnit": false,
- "isInteger": false,
- "isDeductOne": false,
- "conversionToBaseNumerator": 0,
- "conversionToBaseDenominator": 0
}
], - "vendors": [
- {
- "vendorId": "string",
- "packSize": 0,
- "packUnitId": "string",
- "minimumOrderQuantity": 0,
- "minimumOrderUnitId": "string",
- "isActive": true
}
], - "remarks": "string",
- "conflictDrugIds": [
- "string"
], - "supportDrugIds": [
- "string"
], - "alternativeDrugIds": [
- "string"
]
}
], - "pagination": {
- "page": 1,
- "limit": 20,
- "total": 143,
- "totalPages": 8
}
}
}Create up to 1000 drug records in a single request. Each item is processed independently; the response reports per-item success or failure.
required | Array of objects (Drug) [ 1 .. 1000 ] items List of drug records to create. Maximum 1000 items per request. |
{- "items": [
- {
- "externalId": "string",
- "code": "string",
- "name": "string",
- "hkRegisterNo": "string",
- "hkRegisterName": "string",
- "ingredients": [
- "string"
], - "legalClassification": "string",
- "manufacturer": "string",
- "certHolder": "string",
- "doseForm": "string",
- "doseFormExtraInfo": "string",
- "strength": "string",
- "strengthExtraInfo": "string",
- "allergenGroups": [
- "string"
], - "tradeName": "string",
- "drugLabel": "string",
- "clinicIds": [
- "string"
], - "practitionerIds": [
- "string"
], - "isSyrup": false,
- "isDangerous": false,
- "isInjection": false,
- "isVaccine": false,
- "unitSettings": [
- {
- "unitId": "string",
- "isBaseUnit": false,
- "isPurchaseUnit": false,
- "isSalesUnit": false,
- "isDosageUnit": false,
- "isInteger": false,
- "isDeductOne": false,
- "conversionToBaseNumerator": 0,
- "conversionToBaseDenominator": 0
}
], - "vendors": [
- {
- "vendorId": "string",
- "packSize": 0,
- "packUnitId": "string",
- "minimumOrderQuantity": 0,
- "minimumOrderUnitId": "string",
- "isActive": true
}
], - "remarks": "string",
- "conflictDrugIds": [
- "string"
], - "supportDrugIds": [
- "string"
], - "alternativeDrugIds": [
- "string"
]
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "totalRequested": 5,
- "totalSucceeded": 4,
- "totalFailed": 1,
- "results": [
- {
- "index": 0,
- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": "string",
- "hkRegisterNo": "string",
- "hkRegisterName": "string",
- "ingredients": [
- "string"
], - "legalClassification": "string",
- "manufacturer": "string",
- "certHolder": "string",
- "doseForm": "string",
- "doseFormExtraInfo": "string",
- "strength": "string",
- "strengthExtraInfo": "string",
- "allergenGroups": [
- "string"
], - "tradeName": "string",
- "drugLabel": "string",
- "clinicIds": [
- "string"
], - "practitionerIds": [
- "string"
], - "isSyrup": false,
- "isDangerous": false,
- "isInjection": false,
- "isVaccine": false,
- "unitSettings": [
- {
- "unitId": "string",
- "isBaseUnit": false,
- "isPurchaseUnit": false,
- "isSalesUnit": false,
- "isDosageUnit": false,
- "isInteger": false,
- "isDeductOne": false,
- "conversionToBaseNumerator": 0,
- "conversionToBaseDenominator": 0
}
], - "vendors": [
- {
- "vendorId": "string",
- "packSize": 0,
- "packUnitId": "string",
- "minimumOrderQuantity": 0,
- "minimumOrderUnitId": "string",
- "isActive": true
}
], - "remarks": "string",
- "conflictDrugIds": [
- "string"
], - "supportDrugIds": [
- "string"
], - "alternativeDrugIds": [
- "string"
]
}
}
]
}
}| drugId required | string The unique identifier of the drug record. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": "string",
- "hkRegisterNo": "string",
- "hkRegisterName": "string",
- "ingredients": [
- "string"
], - "legalClassification": "string",
- "manufacturer": "string",
- "certHolder": "string",
- "doseForm": "string",
- "doseFormExtraInfo": "string",
- "strength": "string",
- "strengthExtraInfo": "string",
- "allergenGroups": [
- "string"
], - "tradeName": "string",
- "drugLabel": "string",
- "clinicIds": [
- "string"
], - "practitionerIds": [
- "string"
], - "isSyrup": false,
- "isDangerous": false,
- "isInjection": false,
- "isVaccine": false,
- "unitSettings": [
- {
- "unitId": "string",
- "isBaseUnit": false,
- "isPurchaseUnit": false,
- "isSalesUnit": false,
- "isDosageUnit": false,
- "isInteger": false,
- "isDeductOne": false,
- "conversionToBaseNumerator": 0,
- "conversionToBaseDenominator": 0
}
], - "vendors": [
- {
- "vendorId": "string",
- "packSize": 0,
- "packUnitId": "string",
- "minimumOrderQuantity": 0,
- "minimumOrderUnitId": "string",
- "isActive": true
}
], - "remarks": "string",
- "conflictDrugIds": [
- "string"
], - "supportDrugIds": [
- "string"
], - "alternativeDrugIds": [
- "string"
]
}
}| drugId required | string The unique identifier of the drug record. |
| externalId | string External system identifier for this drug. |
| code required | string Unique drug code within the clinic system. |
| name required | string |
| hkRegisterNo | string Registered drug number. |
| hkRegisterName | string Registered drug name. |
| ingredients | Array of strings Drug ingredient codes or names from the drug office registration. |
| legalClassification | string Legal classification of the drug. |
| manufacturer | string Manufacturer of the drug. |
| certHolder | string Certificate holder of the drug. |
| doseForm | string Dosage form of the drug. |
| doseFormExtraInfo | string Extra information about the dosage form. |
| strength | string Strength of the drug. |
| strengthExtraInfo | string Extra information about the strength. |
| allergenGroups | Array of strings Allergen groups associated with this drug. |
| tradeName | string Trade or brand name of the drug. |
| drugLabel | string Label display text for the drug. |
| clinicIds | Array of strings IDs of the clinics where this drug is available (references Clinic). |
| practitionerIds | Array of strings IDs of the practitioners authorized to use this drug (references Practitioner). |
| isSyrup | boolean Default: false |
| isDangerous | boolean Default: false |
| isInjection | boolean Default: false |
| isVaccine | boolean Default: false |
Array of objects (DrugUnitSetting) Unit conversion and usage configurations for this drug. | |
Array of objects (DrugVendor) Vendor and purchasing configurations for this drug. | |
| remarks | string |
| conflictDrugIds | Array of strings IDs of drugs known to have interactions with this drug (references Drug). |
| supportDrugIds | Array of strings IDs of support drugs associated with this drug (references Drug). |
| alternativeDrugIds | Array of strings IDs of alternative drugs for this drug (references Drug). |
{- "externalId": "string",
- "code": "string",
- "name": "string",
- "hkRegisterNo": "string",
- "hkRegisterName": "string",
- "ingredients": [
- "string"
], - "legalClassification": "string",
- "manufacturer": "string",
- "certHolder": "string",
- "doseForm": "string",
- "doseFormExtraInfo": "string",
- "strength": "string",
- "strengthExtraInfo": "string",
- "allergenGroups": [
- "string"
], - "tradeName": "string",
- "drugLabel": "string",
- "clinicIds": [
- "string"
], - "practitionerIds": [
- "string"
], - "isSyrup": false,
- "isDangerous": false,
- "isInjection": false,
- "isVaccine": false,
- "unitSettings": [
- {
- "unitId": "string",
- "isBaseUnit": false,
- "isPurchaseUnit": false,
- "isSalesUnit": false,
- "isDosageUnit": false,
- "isInteger": false,
- "isDeductOne": false,
- "conversionToBaseNumerator": 0,
- "conversionToBaseDenominator": 0
}
], - "vendors": [
- {
- "vendorId": "string",
- "packSize": 0,
- "packUnitId": "string",
- "minimumOrderQuantity": 0,
- "minimumOrderUnitId": "string",
- "isActive": true
}
], - "remarks": "string",
- "conflictDrugIds": [
- "string"
], - "supportDrugIds": [
- "string"
], - "alternativeDrugIds": [
- "string"
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": "string",
- "hkRegisterNo": "string",
- "hkRegisterName": "string",
- "ingredients": [
- "string"
], - "legalClassification": "string",
- "manufacturer": "string",
- "certHolder": "string",
- "doseForm": "string",
- "doseFormExtraInfo": "string",
- "strength": "string",
- "strengthExtraInfo": "string",
- "allergenGroups": [
- "string"
], - "tradeName": "string",
- "drugLabel": "string",
- "clinicIds": [
- "string"
], - "practitionerIds": [
- "string"
], - "isSyrup": false,
- "isDangerous": false,
- "isInjection": false,
- "isVaccine": false,
- "unitSettings": [
- {
- "unitId": "string",
- "isBaseUnit": false,
- "isPurchaseUnit": false,
- "isSalesUnit": false,
- "isDosageUnit": false,
- "isInteger": false,
- "isDeductOne": false,
- "conversionToBaseNumerator": 0,
- "conversionToBaseDenominator": 0
}
], - "vendors": [
- {
- "vendorId": "string",
- "packSize": 0,
- "packUnitId": "string",
- "minimumOrderQuantity": 0,
- "minimumOrderUnitId": "string",
- "isActive": true
}
], - "remarks": "string",
- "conflictDrugIds": [
- "string"
], - "supportDrugIds": [
- "string"
], - "alternativeDrugIds": [
- "string"
]
}
}| externalId | string |
| code | string |
required | object (LocalizedText) A localized text value |
{- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
}| page | integer >= 1 Default: 1 The page number to retrieve (1-based index). |
| limit | integer [ 1 .. 100 ] Default: 20 The number of items to return per page. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "items": [
- {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
], - "pagination": {
- "page": 1,
- "limit": 20,
- "total": 143,
- "totalPages": 8
}
}
}Create up to 1000 drug cautions in a single request. Each item is processed independently; the response reports per-item success or failure so partial success is possible.
required | Array of objects (DrugCaution) [ 1 .. 1000 ] items List of drug cautions to create. Maximum 1000 items per request. |
{- "items": [
- {
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "totalRequested": 5,
- "totalSucceeded": 4,
- "totalFailed": 1,
- "results": [
- {
- "index": 0,
- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
}
]
}
}| drugCautionId required | string The unique identifier of the drug caution. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
}| drugCautionId required | string The unique identifier of the drug caution. |
| externalId | string |
| code | string |
required | object (LocalizedText) A localized text value |
{- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
}| externalId | string |
| code | string |
required | object (LocalizedText) A localized text value |
| quantity required | number <double> |
{- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "quantity": 0.1
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "quantity": 0.1
}
}| page | integer >= 1 Default: 1 The page number to retrieve (1-based index). |
| limit | integer [ 1 .. 100 ] Default: 20 The number of items to return per page. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "items": [
- {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "quantity": 0.1
}
], - "pagination": {
- "page": 1,
- "limit": 20,
- "total": 143,
- "totalPages": 8
}
}
}Create up to 1000 drug dosages in a single request. Each item is processed independently; the response reports per-item success or failure so partial success is possible.
required | Array of objects (DrugDosage) [ 1 .. 1000 ] items List of drug dosages to create. Maximum 1000 items per request. |
{- "items": [
- {
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "quantity": 0.1
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "totalRequested": 5,
- "totalSucceeded": 4,
- "totalFailed": 1,
- "results": [
- {
- "index": 0,
- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "quantity": 0.1
}
}
]
}
}| drugDosageId required | string The unique identifier of the drug dosage. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "quantity": 0.1
}
}| drugDosageId required | string The unique identifier of the drug dosage. |
| externalId | string |
| code | string |
required | object (LocalizedText) A localized text value |
| quantity required | number <double> |
{- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "quantity": 0.1
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "quantity": 0.1
}
}| externalId | string |
| code | string |
required | object (LocalizedText) A localized text value |
| frequency required | integer Number of times per day the drug is administered. |
{- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "frequency": 0
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "frequency": 0
}
}| page | integer >= 1 Default: 1 The page number to retrieve (1-based index). |
| limit | integer [ 1 .. 100 ] Default: 20 The number of items to return per page. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "items": [
- {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "frequency": 0
}
], - "pagination": {
- "page": 1,
- "limit": 20,
- "total": 143,
- "totalPages": 8
}
}
}Create up to 1000 drug frequencies in a single request. Each item is processed independently; the response reports per-item success or failure so partial success is possible.
required | Array of objects (DrugFrequency) [ 1 .. 1000 ] items List of drug frequencies to create. Maximum 1000 items per request. |
{- "items": [
- {
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "frequency": 0
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "totalRequested": 5,
- "totalSucceeded": 4,
- "totalFailed": 1,
- "results": [
- {
- "index": 0,
- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "frequency": 0
}
}
]
}
}| drugFrequencyId required | string The unique identifier of the drug frequency. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "frequency": 0
}
}| drugFrequencyId required | string The unique identifier of the drug frequency. |
| externalId | string |
| code | string |
required | object (LocalizedText) A localized text value |
| frequency required | integer Number of times per day the drug is administered. |
{- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "frequency": 0
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "frequency": 0
}
}| externalId | string |
| code | string |
required | object (LocalizedText) A localized text value |
{- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
}| page | integer >= 1 Default: 1 The page number to retrieve (1-based index). |
| limit | integer [ 1 .. 100 ] Default: 20 The number of items to return per page. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "items": [
- {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
], - "pagination": {
- "page": 1,
- "limit": 20,
- "total": 143,
- "totalPages": 8
}
}
}Create up to 1000 drug instructions in a single request. Each item is processed independently; the response reports per-item success or failure so partial success is possible.
required | Array of objects (DrugInstruction) [ 1 .. 1000 ] items List of drug instructions to create. Maximum 1000 items per request. |
{- "items": [
- {
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "totalRequested": 5,
- "totalSucceeded": 4,
- "totalFailed": 1,
- "results": [
- {
- "index": 0,
- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
}
]
}
}| drugInstructionId required | string The unique identifier of the drug instruction. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
}| drugInstructionId required | string The unique identifier of the drug instruction. |
| externalId | string |
| code | string |
required | object (LocalizedText) A localized text value |
{- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
}| externalId | string |
| code | string |
required | object (LocalizedText) A localized text value |
{- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
}| page | integer >= 1 Default: 1 The page number to retrieve (1-based index). |
| limit | integer [ 1 .. 100 ] Default: 20 The number of items to return per page. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "items": [
- {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
], - "pagination": {
- "page": 1,
- "limit": 20,
- "total": 143,
- "totalPages": 8
}
}
}Create up to 1000 drug units in a single request. Each item is processed independently; the response reports per-item success or failure so partial success is possible.
required | Array of objects (DrugUnit) [ 1 .. 1000 ] items List of drug units to create. Maximum 1000 items per request. |
{- "items": [
- {
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "totalRequested": 5,
- "totalSucceeded": 4,
- "totalFailed": 1,
- "results": [
- {
- "index": 0,
- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
}
]
}
}| drugUnitId required | string The unique identifier of the drug unit. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
}| drugUnitId required | string The unique identifier of the drug unit. |
| externalId | string |
| code | string |
required | object (LocalizedText) A localized text value |
{- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
}Encounter (clinical visit) management — eHealth encounter record is generated nightly from each synced encounter
| externalId | string |
| patientId required | string Clinic patient code identifying the patient. |
| clinicId required | string ID of the clinic where the visit takes place (references Clinic). |
| practitionerId required | string ID of the attending practitioner (references Practitioner). Used by the eHealth service to determine encounter eligibility. |
| bookingTime required | string <date-time> Encounter start time. |
| bookingEndTime required | string <date-time> Encounter end time. |
| checkInTime | string <date-time> |
| status | string Enum: "booked" "arrived" "in_consultation" "dispensary" "checkout" "completed" "no_show" "rescheduled" "cancelled" |
| visitReasonIds required | Array of strings IDs of the visit reasons (references VisitReason). |
| remarks | string Doctor's remarks for the visit. |
{- "externalId": "string",
- "patientId": "string",
- "clinicId": "string",
- "practitionerId": "string",
- "bookingTime": "2000-01-01T00:00:00Z",
- "bookingEndTime": "2019-08-24T14:15:22Z",
- "checkInTime": "2019-08-24T14:15:22Z",
- "status": "booked",
- "visitReasonIds": [
- "string"
], - "remarks": "string"
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "patientId": "string",
- "clinicId": "string",
- "practitionerId": "string",
- "bookingTime": "2000-01-01T00:00:00Z",
- "bookingEndTime": "2019-08-24T14:15:22Z",
- "checkInTime": "2019-08-24T14:15:22Z",
- "status": "booked",
- "visitReasonIds": [
- "string"
], - "remarks": "string"
}
}| page | integer >= 1 Default: 1 The page number to retrieve (1-based index). |
| limit | integer [ 1 .. 100 ] Default: 20 The number of items to return per page. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "items": [
- {
- "id": "string",
- "externalId": "string",
- "patientId": "string",
- "clinicId": "string",
- "practitionerId": "string",
- "bookingTime": "2000-01-01T00:00:00Z",
- "bookingEndTime": "2019-08-24T14:15:22Z",
- "checkInTime": "2019-08-24T14:15:22Z",
- "status": "booked",
- "visitReasonIds": [
- "string"
], - "remarks": "string"
}
], - "pagination": {
- "page": 1,
- "limit": 20,
- "total": 143,
- "totalPages": 8
}
}
}Sync up to 1000 encounter records in a single request. Each item is processed independently; the response reports per-item success or failure so partial success is possible.
required | Array of objects (Encounter) [ 1 .. 1000 ] items List of encounter records to sync. Maximum 1000 items per request. |
{- "items": [
- {
- "externalId": "string",
- "patientId": "string",
- "clinicId": "string",
- "practitionerId": "string",
- "bookingTime": "2000-01-01T00:00:00Z",
- "bookingEndTime": "2019-08-24T14:15:22Z",
- "checkInTime": "2019-08-24T14:15:22Z",
- "status": "booked",
- "visitReasonIds": [
- "string"
], - "remarks": "string"
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "totalRequested": 5,
- "totalSucceeded": 4,
- "totalFailed": 1,
- "results": [
- {
- "index": 0,
- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "patientId": "string",
- "clinicId": "string",
- "practitionerId": "string",
- "bookingTime": "2000-01-01T00:00:00Z",
- "bookingEndTime": "2019-08-24T14:15:22Z",
- "checkInTime": "2019-08-24T14:15:22Z",
- "status": "booked",
- "visitReasonIds": [
- "string"
], - "remarks": "string"
}
}
]
}
}| encounterId required | string The unique identifier of the encounter record. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "patientId": "string",
- "clinicId": "string",
- "practitionerId": "string",
- "bookingTime": "2000-01-01T00:00:00Z",
- "bookingEndTime": "2019-08-24T14:15:22Z",
- "checkInTime": "2019-08-24T14:15:22Z",
- "status": "booked",
- "visitReasonIds": [
- "string"
], - "remarks": "string"
}
}| encounterId required | string The unique identifier of the encounter record. |
| externalId | string |
| patientId required | string Clinic patient code identifying the patient. |
| clinicId required | string ID of the clinic where the visit takes place (references Clinic). |
| practitionerId required | string ID of the attending practitioner (references Practitioner). Used by the eHealth service to determine encounter eligibility. |
| bookingTime required | string <date-time> Encounter start time. |
| bookingEndTime required | string <date-time> Encounter end time. |
| checkInTime | string <date-time> |
| status | string Enum: "booked" "arrived" "in_consultation" "dispensary" "checkout" "completed" "no_show" "rescheduled" "cancelled" |
| visitReasonIds required | Array of strings IDs of the visit reasons (references VisitReason). |
| remarks | string Doctor's remarks for the visit. |
{- "externalId": "string",
- "patientId": "string",
- "clinicId": "string",
- "practitionerId": "string",
- "bookingTime": "2000-01-01T00:00:00Z",
- "bookingEndTime": "2019-08-24T14:15:22Z",
- "checkInTime": "2019-08-24T14:15:22Z",
- "status": "booked",
- "visitReasonIds": [
- "string"
], - "remarks": "string"
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "patientId": "string",
- "clinicId": "string",
- "practitionerId": "string",
- "bookingTime": "2000-01-01T00:00:00Z",
- "bookingEndTime": "2019-08-24T14:15:22Z",
- "checkInTime": "2019-08-24T14:15:22Z",
- "status": "booked",
- "visitReasonIds": [
- "string"
], - "remarks": "string"
}
}| externalId | string |
| code required | string |
| englishName required | string |
| chineseName | string |
| documentType | string Enum: "HK_IDCARD" "BIRTH_CERT" "CH_2-WAY_PERMIT" "CH_PASS" "OVERSEA_PASS" "OTH" "MO_IDCARD" Document types supported by eHealth joining consent. HK_IDCARD=HKID, BIRTH_CERT=HK Birth Certificate, CH_2-WAY_PERMIT=Two-way Permit, CH_PASS=China Passport (Other PRC Travel Doc), OVERSEA_PASS=Overseas Passport (Other Travel Doc), OTH=Other (Other Travel Doc), MO_IDCARD=Macau ID |
| documentNo required | string |
| gender required | string Enum: "MALE" "FEMALE" "OTHER" |
| dateOfBirth required | string <date> |
| phone | string |
string | |
| residentialAddress | string |
| residentialDistrict | string |
| residentialArea | string |
| businessAddress | string |
| businessDistrict | string |
| businessArea | string |
| emergencyContact | string |
| emergencyPhone | string |
| emergencyRelation | string Enum: "PARENTS" "CHILDREN" "SIBLINGS" "SPOUSE" "COUSINS" "GRANDPARENTS" "GRANDCHILDREN" "OTHERS" |
Array of objects (FamilyMember) | |
Array of objects (Insurance) | |
Array of objects (Alert) | |
| otherAlert | string |
| medicalHistory | string |
object (Practitioner) | |
| group | string |
| referral | string |
| smokingHabit | string Enum: "never" "chronic" "social" "ex" |
| drinkingHabit | string Enum: "never" "chronic" "social" "ex" |
| bloodType | string |
| occupation | string |
| ehrNo | string |
| remarks | string |
{- "externalId": "string",
- "code": "string",
- "englishName": "string",
- "chineseName": "string",
- "documentType": "HK_IDCARD",
- "documentNo": "string",
- "gender": "MALE",
- "dateOfBirth": "2000-01-01",
- "phone": "string",
- "email": "string",
- "residentialAddress": "string",
- "residentialDistrict": "string",
- "residentialArea": "string",
- "businessAddress": "string",
- "businessDistrict": "string",
- "businessArea": "string",
- "emergencyContact": "string",
- "emergencyPhone": "string",
- "emergencyRelation": "PARENTS",
- "families": [
- {
- "name": "string"
}
], - "insurances": [
- {
- "insurer": "string",
- "plan": "string",
- "cardNo": "string"
}
], - "alert": [
- {
- "alert": "string",
- "remarks": "string"
}
], - "otherAlert": "string",
- "medicalHistory": "string",
- "inCharge": {
- "externalId": "string",
- "code": "string",
- "registerNo": "string",
- "prefix": {
- "en": "string",
- "zh": "string"
}, - "lastName": {
- "en": "string",
- "zh": "string"
}, - "firstName": {
- "en": "string",
- "zh": "string"
}, - "suffix": {
- "en": "string",
- "zh": "string"
}, - "displayName": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "address": {
- "en": "string",
- "zh": "string"
}, - "qualifications": "string",
- "specialty": "string",
- "isReferable": true
}, - "group": "string",
- "referral": "string",
- "smokingHabit": "never",
- "drinkingHabit": "never",
- "bloodType": "string",
- "occupation": "string",
- "ehrNo": "string",
- "remarks": "string"
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "englishName": "string",
- "chineseName": "string",
- "documentType": "HK_IDCARD",
- "documentNo": "string",
- "gender": "MALE",
- "dateOfBirth": "2000-01-01",
- "phone": "string",
- "email": "string",
- "residentialAddress": "string",
- "residentialDistrict": "string",
- "residentialArea": "string",
- "businessAddress": "string",
- "businessDistrict": "string",
- "businessArea": "string",
- "emergencyContact": "string",
- "emergencyPhone": "string",
- "emergencyRelation": "PARENTS",
- "families": [
- {
- "name": "string"
}
], - "insurances": [
- {
- "insurer": "string",
- "plan": "string",
- "cardNo": "string"
}
], - "alert": [
- {
- "alert": "string",
- "remarks": "string"
}
], - "otherAlert": "string",
- "medicalHistory": "string",
- "inCharge": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "registerNo": "string",
- "prefix": {
- "en": "string",
- "zh": "string"
}, - "lastName": {
- "en": "string",
- "zh": "string"
}, - "firstName": {
- "en": "string",
- "zh": "string"
}, - "suffix": {
- "en": "string",
- "zh": "string"
}, - "displayName": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "address": {
- "en": "string",
- "zh": "string"
}, - "qualifications": "string",
- "specialty": "string",
- "isReferable": true
}, - "group": "string",
- "referral": "string",
- "smokingHabit": "never",
- "drinkingHabit": "never",
- "bloodType": "string",
- "occupation": "string",
- "ehrNo": "string",
- "remarks": "string"
}
}| page | integer >= 1 Default: 1 The page number to retrieve (1-based index). |
| limit | integer [ 1 .. 100 ] Default: 20 The number of items to return per page. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "items": [
- {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "englishName": "string",
- "chineseName": "string",
- "documentType": "HK_IDCARD",
- "documentNo": "string",
- "gender": "MALE",
- "dateOfBirth": "2000-01-01",
- "phone": "string",
- "email": "string",
- "residentialAddress": "string",
- "residentialDistrict": "string",
- "residentialArea": "string",
- "businessAddress": "string",
- "businessDistrict": "string",
- "businessArea": "string",
- "emergencyContact": "string",
- "emergencyPhone": "string",
- "emergencyRelation": "PARENTS",
- "families": [
- {
- "name": "string"
}
], - "insurances": [
- {
- "insurer": "string",
- "plan": "string",
- "cardNo": "string"
}
], - "alert": [
- {
- "alert": "string",
- "remarks": "string"
}
], - "otherAlert": "string",
- "medicalHistory": "string",
- "inCharge": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "registerNo": "string",
- "prefix": {
- "en": "string",
- "zh": "string"
}, - "lastName": {
- "en": "string",
- "zh": "string"
}, - "firstName": {
- "en": "string",
- "zh": "string"
}, - "suffix": {
- "en": "string",
- "zh": "string"
}, - "displayName": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "address": {
- "en": "string",
- "zh": "string"
}, - "qualifications": "string",
- "specialty": "string",
- "isReferable": true
}, - "group": "string",
- "referral": "string",
- "smokingHabit": "never",
- "drinkingHabit": "never",
- "bloodType": "string",
- "occupation": "string",
- "ehrNo": "string",
- "remarks": "string"
}
], - "pagination": {
- "page": 1,
- "limit": 20,
- "total": 143,
- "totalPages": 8
}
}
}Create up to 1000 patient records in a single request. Each item is processed independently; the response reports per-item success or failure so partial success is possible.
required | Array of objects (Patient) [ 1 .. 1000 ] items List of patient records to create. Maximum 1000 items per request. |
{- "items": [
- {
- "externalId": "string",
- "code": "string",
- "englishName": "string",
- "chineseName": "string",
- "documentType": "HK_IDCARD",
- "documentNo": "string",
- "gender": "MALE",
- "dateOfBirth": "2000-01-01",
- "phone": "string",
- "email": "string",
- "residentialAddress": "string",
- "residentialDistrict": "string",
- "residentialArea": "string",
- "businessAddress": "string",
- "businessDistrict": "string",
- "businessArea": "string",
- "emergencyContact": "string",
- "emergencyPhone": "string",
- "emergencyRelation": "PARENTS",
- "families": [
- {
- "name": "string"
}
], - "insurances": [
- {
- "insurer": "string",
- "plan": "string",
- "cardNo": "string"
}
], - "alert": [
- {
- "alert": "string",
- "remarks": "string"
}
], - "otherAlert": "string",
- "medicalHistory": "string",
- "inCharge": {
- "externalId": "string",
- "code": "string",
- "registerNo": "string",
- "prefix": {
- "en": "string",
- "zh": "string"
}, - "lastName": {
- "en": "string",
- "zh": "string"
}, - "firstName": {
- "en": "string",
- "zh": "string"
}, - "suffix": {
- "en": "string",
- "zh": "string"
}, - "displayName": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "address": {
- "en": "string",
- "zh": "string"
}, - "qualifications": "string",
- "specialty": "string",
- "isReferable": true
}, - "group": "string",
- "referral": "string",
- "smokingHabit": "never",
- "drinkingHabit": "never",
- "bloodType": "string",
- "occupation": "string",
- "ehrNo": "string",
- "remarks": "string"
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "totalRequested": 5,
- "totalSucceeded": 4,
- "totalFailed": 1,
- "results": [
- {
- "index": 0,
- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "englishName": "string",
- "chineseName": "string",
- "documentType": "HK_IDCARD",
- "documentNo": "string",
- "gender": "MALE",
- "dateOfBirth": "2000-01-01",
- "phone": "string",
- "email": "string",
- "residentialAddress": "string",
- "residentialDistrict": "string",
- "residentialArea": "string",
- "businessAddress": "string",
- "businessDistrict": "string",
- "businessArea": "string",
- "emergencyContact": "string",
- "emergencyPhone": "string",
- "emergencyRelation": "PARENTS",
- "families": [
- {
- "name": "string"
}
], - "insurances": [
- {
- "insurer": "string",
- "plan": "string",
- "cardNo": "string"
}
], - "alert": [
- {
- "alert": "string",
- "remarks": "string"
}
], - "otherAlert": "string",
- "medicalHistory": "string",
- "inCharge": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "registerNo": "string",
- "prefix": {
- "en": "string",
- "zh": "string"
}, - "lastName": {
- "en": "string",
- "zh": "string"
}, - "firstName": {
- "en": "string",
- "zh": "string"
}, - "suffix": {
- "en": "string",
- "zh": "string"
}, - "displayName": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "address": {
- "en": "string",
- "zh": "string"
}, - "qualifications": "string",
- "specialty": "string",
- "isReferable": true
}, - "group": "string",
- "referral": "string",
- "smokingHabit": "never",
- "drinkingHabit": "never",
- "bloodType": "string",
- "occupation": "string",
- "ehrNo": "string",
- "remarks": "string"
}
}
]
}
}| patientId required | string The unique identifier of the patient. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "englishName": "string",
- "chineseName": "string",
- "documentType": "HK_IDCARD",
- "documentNo": "string",
- "gender": "MALE",
- "dateOfBirth": "2000-01-01",
- "phone": "string",
- "email": "string",
- "residentialAddress": "string",
- "residentialDistrict": "string",
- "residentialArea": "string",
- "businessAddress": "string",
- "businessDistrict": "string",
- "businessArea": "string",
- "emergencyContact": "string",
- "emergencyPhone": "string",
- "emergencyRelation": "PARENTS",
- "families": [
- {
- "name": "string"
}
], - "insurances": [
- {
- "insurer": "string",
- "plan": "string",
- "cardNo": "string"
}
], - "alert": [
- {
- "alert": "string",
- "remarks": "string"
}
], - "otherAlert": "string",
- "medicalHistory": "string",
- "inCharge": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "registerNo": "string",
- "prefix": {
- "en": "string",
- "zh": "string"
}, - "lastName": {
- "en": "string",
- "zh": "string"
}, - "firstName": {
- "en": "string",
- "zh": "string"
}, - "suffix": {
- "en": "string",
- "zh": "string"
}, - "displayName": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "address": {
- "en": "string",
- "zh": "string"
}, - "qualifications": "string",
- "specialty": "string",
- "isReferable": true
}, - "group": "string",
- "referral": "string",
- "smokingHabit": "never",
- "drinkingHabit": "never",
- "bloodType": "string",
- "occupation": "string",
- "ehrNo": "string",
- "remarks": "string"
}
}| patientId required | string The unique identifier of the patient. |
| externalId | string |
| code required | string |
| englishName required | string |
| chineseName | string |
| documentType | string Enum: "HK_IDCARD" "BIRTH_CERT" "CH_2-WAY_PERMIT" "CH_PASS" "OVERSEA_PASS" "OTH" "MO_IDCARD" Document types supported by eHealth joining consent. HK_IDCARD=HKID, BIRTH_CERT=HK Birth Certificate, CH_2-WAY_PERMIT=Two-way Permit, CH_PASS=China Passport (Other PRC Travel Doc), OVERSEA_PASS=Overseas Passport (Other Travel Doc), OTH=Other (Other Travel Doc), MO_IDCARD=Macau ID |
| documentNo required | string |
| gender required | string Enum: "MALE" "FEMALE" "OTHER" |
| dateOfBirth required | string <date> |
| phone | string |
string | |
| residentialAddress | string |
| residentialDistrict | string |
| residentialArea | string |
| businessAddress | string |
| businessDistrict | string |
| businessArea | string |
| emergencyContact | string |
| emergencyPhone | string |
| emergencyRelation | string Enum: "PARENTS" "CHILDREN" "SIBLINGS" "SPOUSE" "COUSINS" "GRANDPARENTS" "GRANDCHILDREN" "OTHERS" |
Array of objects (FamilyMember) | |
Array of objects (Insurance) | |
Array of objects (Alert) | |
| otherAlert | string |
| medicalHistory | string |
object (Practitioner) | |
| group | string |
| referral | string |
| smokingHabit | string Enum: "never" "chronic" "social" "ex" |
| drinkingHabit | string Enum: "never" "chronic" "social" "ex" |
| bloodType | string |
| occupation | string |
| ehrNo | string |
| remarks | string |
{- "externalId": "string",
- "code": "string",
- "englishName": "string",
- "chineseName": "string",
- "documentType": "HK_IDCARD",
- "documentNo": "string",
- "gender": "MALE",
- "dateOfBirth": "2000-01-01",
- "phone": "string",
- "email": "string",
- "residentialAddress": "string",
- "residentialDistrict": "string",
- "residentialArea": "string",
- "businessAddress": "string",
- "businessDistrict": "string",
- "businessArea": "string",
- "emergencyContact": "string",
- "emergencyPhone": "string",
- "emergencyRelation": "PARENTS",
- "families": [
- {
- "name": "string"
}
], - "insurances": [
- {
- "insurer": "string",
- "plan": "string",
- "cardNo": "string"
}
], - "alert": [
- {
- "alert": "string",
- "remarks": "string"
}
], - "otherAlert": "string",
- "medicalHistory": "string",
- "inCharge": {
- "externalId": "string",
- "code": "string",
- "registerNo": "string",
- "prefix": {
- "en": "string",
- "zh": "string"
}, - "lastName": {
- "en": "string",
- "zh": "string"
}, - "firstName": {
- "en": "string",
- "zh": "string"
}, - "suffix": {
- "en": "string",
- "zh": "string"
}, - "displayName": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "address": {
- "en": "string",
- "zh": "string"
}, - "qualifications": "string",
- "specialty": "string",
- "isReferable": true
}, - "group": "string",
- "referral": "string",
- "smokingHabit": "never",
- "drinkingHabit": "never",
- "bloodType": "string",
- "occupation": "string",
- "ehrNo": "string",
- "remarks": "string"
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "englishName": "string",
- "chineseName": "string",
- "documentType": "HK_IDCARD",
- "documentNo": "string",
- "gender": "MALE",
- "dateOfBirth": "2000-01-01",
- "phone": "string",
- "email": "string",
- "residentialAddress": "string",
- "residentialDistrict": "string",
- "residentialArea": "string",
- "businessAddress": "string",
- "businessDistrict": "string",
- "businessArea": "string",
- "emergencyContact": "string",
- "emergencyPhone": "string",
- "emergencyRelation": "PARENTS",
- "families": [
- {
- "name": "string"
}
], - "insurances": [
- {
- "insurer": "string",
- "plan": "string",
- "cardNo": "string"
}
], - "alert": [
- {
- "alert": "string",
- "remarks": "string"
}
], - "otherAlert": "string",
- "medicalHistory": "string",
- "inCharge": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "registerNo": "string",
- "prefix": {
- "en": "string",
- "zh": "string"
}, - "lastName": {
- "en": "string",
- "zh": "string"
}, - "firstName": {
- "en": "string",
- "zh": "string"
}, - "suffix": {
- "en": "string",
- "zh": "string"
}, - "displayName": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "address": {
- "en": "string",
- "zh": "string"
}, - "qualifications": "string",
- "specialty": "string",
- "isReferable": true
}, - "group": "string",
- "referral": "string",
- "smokingHabit": "never",
- "drinkingHabit": "never",
- "bloodType": "string",
- "occupation": "string",
- "ehrNo": "string",
- "remarks": "string"
}
}| externalId | string |
| code | string |
| registerNo | string |
object (LocalizedText) A localized text value | |
object (LocalizedText) A localized text value | |
object (LocalizedText) A localized text value | |
object (LocalizedText) A localized text value | |
| displayName required | string |
| phone | string |
| fax | string |
string | |
object (LocalizedText) A localized text value | |
| qualifications | string |
| specialty | string |
| isReferable | boolean |
{- "externalId": "string",
- "code": "string",
- "registerNo": "string",
- "prefix": {
- "en": "string",
- "zh": "string"
}, - "lastName": {
- "en": "string",
- "zh": "string"
}, - "firstName": {
- "en": "string",
- "zh": "string"
}, - "suffix": {
- "en": "string",
- "zh": "string"
}, - "displayName": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "address": {
- "en": "string",
- "zh": "string"
}, - "qualifications": "string",
- "specialty": "string",
- "isReferable": true
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "registerNo": "string",
- "prefix": {
- "en": "string",
- "zh": "string"
}, - "lastName": {
- "en": "string",
- "zh": "string"
}, - "firstName": {
- "en": "string",
- "zh": "string"
}, - "suffix": {
- "en": "string",
- "zh": "string"
}, - "displayName": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "address": {
- "en": "string",
- "zh": "string"
}, - "qualifications": "string",
- "specialty": "string",
- "isReferable": true
}
}| page | integer >= 1 Default: 1 The page number to retrieve (1-based index). |
| limit | integer [ 1 .. 100 ] Default: 20 The number of items to return per page. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "items": [
- {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "registerNo": "string",
- "prefix": {
- "en": "string",
- "zh": "string"
}, - "lastName": {
- "en": "string",
- "zh": "string"
}, - "firstName": {
- "en": "string",
- "zh": "string"
}, - "suffix": {
- "en": "string",
- "zh": "string"
}, - "displayName": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "address": {
- "en": "string",
- "zh": "string"
}, - "qualifications": "string",
- "specialty": "string",
- "isReferable": true
}
], - "pagination": {
- "page": 1,
- "limit": 20,
- "total": 143,
- "totalPages": 8
}
}
}Create up to 1000 practitioner profiles in a single request. Each item is processed independently; the response reports per-item success or failure so partial success is possible.
required | Array of objects (Practitioner) [ 1 .. 1000 ] items List of practitioner profiles to create. Maximum 1000 items per request. |
{- "items": [
- {
- "externalId": "string",
- "code": "string",
- "registerNo": "string",
- "prefix": {
- "en": "string",
- "zh": "string"
}, - "lastName": {
- "en": "string",
- "zh": "string"
}, - "firstName": {
- "en": "string",
- "zh": "string"
}, - "suffix": {
- "en": "string",
- "zh": "string"
}, - "displayName": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "address": {
- "en": "string",
- "zh": "string"
}, - "qualifications": "string",
- "specialty": "string",
- "isReferable": true
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "totalRequested": 5,
- "totalSucceeded": 4,
- "totalFailed": 1,
- "results": [
- {
- "index": 0,
- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "registerNo": "string",
- "prefix": {
- "en": "string",
- "zh": "string"
}, - "lastName": {
- "en": "string",
- "zh": "string"
}, - "firstName": {
- "en": "string",
- "zh": "string"
}, - "suffix": {
- "en": "string",
- "zh": "string"
}, - "displayName": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "address": {
- "en": "string",
- "zh": "string"
}, - "qualifications": "string",
- "specialty": "string",
- "isReferable": true
}
}
]
}
}| practitionerId required | string The unique identifier of the practitioner. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "registerNo": "string",
- "prefix": {
- "en": "string",
- "zh": "string"
}, - "lastName": {
- "en": "string",
- "zh": "string"
}, - "firstName": {
- "en": "string",
- "zh": "string"
}, - "suffix": {
- "en": "string",
- "zh": "string"
}, - "displayName": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "address": {
- "en": "string",
- "zh": "string"
}, - "qualifications": "string",
- "specialty": "string",
- "isReferable": true
}
}| practitionerId required | string The unique identifier of the practitioner. |
| externalId | string |
| code | string |
| registerNo | string |
object (LocalizedText) A localized text value | |
object (LocalizedText) A localized text value | |
object (LocalizedText) A localized text value | |
object (LocalizedText) A localized text value | |
| displayName required | string |
| phone | string |
| fax | string |
string | |
object (LocalizedText) A localized text value | |
| qualifications | string |
| specialty | string |
| isReferable | boolean |
{- "externalId": "string",
- "code": "string",
- "registerNo": "string",
- "prefix": {
- "en": "string",
- "zh": "string"
}, - "lastName": {
- "en": "string",
- "zh": "string"
}, - "firstName": {
- "en": "string",
- "zh": "string"
}, - "suffix": {
- "en": "string",
- "zh": "string"
}, - "displayName": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "address": {
- "en": "string",
- "zh": "string"
}, - "qualifications": "string",
- "specialty": "string",
- "isReferable": true
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "registerNo": "string",
- "prefix": {
- "en": "string",
- "zh": "string"
}, - "lastName": {
- "en": "string",
- "zh": "string"
}, - "firstName": {
- "en": "string",
- "zh": "string"
}, - "suffix": {
- "en": "string",
- "zh": "string"
}, - "displayName": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "address": {
- "en": "string",
- "zh": "string"
}, - "qualifications": "string",
- "specialty": "string",
- "isReferable": true
}
}| externalId | string |
| code required | string Unique code for this route/site. Used as |
required | object (LocalizedText) A localized text value |
{- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
}| page | integer >= 1 Default: 1 The page number to retrieve (1-based index). |
| limit | integer [ 1 .. 100 ] Default: 20 The number of items to return per page. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "items": [
- {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
], - "pagination": {
- "page": 1,
- "limit": 20,
- "total": 143,
- "totalPages": 8
}
}
}Create up to 1000 route/site records in a single request. Each item is processed independently; the response reports per-item success or failure.
required | Array of objects (RouteSite) [ 1 .. 1000 ] items List of route/site records to create. Maximum 1000 items per request. |
{- "items": [
- {
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "totalRequested": 5,
- "totalSucceeded": 4,
- "totalFailed": 1,
- "results": [
- {
- "index": 0,
- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
}
]
}
}| routeSiteId required | string The unique identifier of the route/site record. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
}| routeSiteId required | string The unique identifier of the route/site record. |
| externalId | string |
| code required | string Unique code for this route/site. Used as |
required | object (LocalizedText) A localized text value |
{- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
}| externalId | string |
| code | string |
required | object (LocalizedText) A localized text value |
{- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
}| page | integer >= 1 Default: 1 The page number to retrieve (1-based index). |
| limit | integer [ 1 .. 100 ] Default: 20 The number of items to return per page. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "items": [
- {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
], - "pagination": {
- "page": 1,
- "limit": 20,
- "total": 143,
- "totalPages": 8
}
}
}Create up to 1000 visit reasons in a single request. Each item is processed independently; the response reports per-item success or failure so partial success is possible.
required | Array of objects (VisitReason) [ 1 .. 1000 ] items List of visit reasons to create. Maximum 1000 items per request. |
{- "items": [
- {
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "totalRequested": 5,
- "totalSucceeded": 4,
- "totalFailed": 1,
- "results": [
- {
- "index": 0,
- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
}
]
}
}| visitReasonId required | string The unique identifier of the visit reason. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
}| visitReasonId required | string The unique identifier of the visit reason. |
| externalId | string |
| code | string |
required | object (LocalizedText) A localized text value |
{- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}
}
}| externalId | string |
| code | string Bill number/code. Auto-generated if omitted. |
| billTime required | string <date-time> Date and time the bill was created. |
| patientId required | string ID of the clinic patient being billed (references Patient). |
| clinicId required | string ID of the clinic where the bill was issued (references Clinic). |
| practitionerId | string ID of the attending practitioner responsible for the bill (references Practitioner). |
| grossAmount | number Total amount before discounts. |
| netAmount required | number Total amount after discounts. |
| paidAmount | number Total amount already paid. Derived from associated payments. |
| outstandingAmount | number Outstanding balance (totalAmount - paidAmount). |
| totalDiscount | number Total discount applied. |
| diagnosis | string Diagnosis recorded for this bill. |
| remarks | string General remarks for the bill. |
| isVoid | boolean Default: false Whether the payment has been voided. |
{- "externalId": "string",
- "code": "string",
- "billTime": "2000-01-01T00:00:00Z",
- "patientId": "string",
- "clinicId": "string",
- "practitionerId": "string",
- "grossAmount": 0,
- "netAmount": 0,
- "paidAmount": 0,
- "outstandingAmount": 0,
- "totalDiscount": 0,
- "diagnosis": "string",
- "remarks": "string",
- "isVoid": false
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "billTime": "2000-01-01T00:00:00Z",
- "patientId": "string",
- "clinicId": "string",
- "practitionerId": "string",
- "grossAmount": 0,
- "netAmount": 0,
- "paidAmount": 0,
- "outstandingAmount": 0,
- "totalDiscount": 0,
- "diagnosis": "string",
- "remarks": "string",
- "isVoid": false
}
}| page | integer >= 1 Default: 1 The page number to retrieve (1-based index). |
| limit | integer [ 1 .. 100 ] Default: 20 The number of items to return per page. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "items": [
- {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "billTime": "2000-01-01T00:00:00Z",
- "patientId": "string",
- "clinicId": "string",
- "practitionerId": "string",
- "grossAmount": 0,
- "netAmount": 0,
- "paidAmount": 0,
- "outstandingAmount": 0,
- "totalDiscount": 0,
- "diagnosis": "string",
- "remarks": "string",
- "isVoid": false
}
], - "pagination": {
- "page": 1,
- "limit": 20,
- "total": 143,
- "totalPages": 8
}
}
}Create up to 1000 bills in a single request. Each item is processed independently; the response reports per-item success or failure so partial success is possible.
required | Array of objects (Bill) [ 1 .. 1000 ] items List of bills to create. Maximum 1000 items per request. |
{- "items": [
- {
- "externalId": "string",
- "code": "string",
- "billTime": "2000-01-01T00:00:00Z",
- "patientId": "string",
- "clinicId": "string",
- "practitionerId": "string",
- "grossAmount": 0,
- "netAmount": 0,
- "paidAmount": 0,
- "outstandingAmount": 0,
- "totalDiscount": 0,
- "diagnosis": "string",
- "remarks": "string",
- "isVoid": false
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "totalRequested": 5,
- "totalSucceeded": 4,
- "totalFailed": 1,
- "results": [
- {
- "index": 0,
- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "billTime": "2000-01-01T00:00:00Z",
- "patientId": "string",
- "clinicId": "string",
- "practitionerId": "string",
- "grossAmount": 0,
- "netAmount": 0,
- "paidAmount": 0,
- "outstandingAmount": 0,
- "totalDiscount": 0,
- "diagnosis": "string",
- "remarks": "string",
- "isVoid": false
}
}
]
}
}| billId required | string The unique identifier of the bill record. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "billTime": "2000-01-01T00:00:00Z",
- "patientId": "string",
- "clinicId": "string",
- "practitionerId": "string",
- "grossAmount": 0,
- "netAmount": 0,
- "paidAmount": 0,
- "outstandingAmount": 0,
- "totalDiscount": 0,
- "diagnosis": "string",
- "remarks": "string",
- "isVoid": false
}
}| billId required | string The unique identifier of the bill record. |
| externalId | string |
| code | string Bill number/code. Auto-generated if omitted. |
| billTime required | string <date-time> Date and time the bill was created. |
| patientId required | string ID of the clinic patient being billed (references Patient). |
| clinicId required | string ID of the clinic where the bill was issued (references Clinic). |
| practitionerId | string ID of the attending practitioner responsible for the bill (references Practitioner). |
| grossAmount | number Total amount before discounts. |
| netAmount required | number Total amount after discounts. |
| paidAmount | number Total amount already paid. Derived from associated payments. |
| outstandingAmount | number Outstanding balance (totalAmount - paidAmount). |
| totalDiscount | number Total discount applied. |
| diagnosis | string Diagnosis recorded for this bill. |
| remarks | string General remarks for the bill. |
| isVoid | boolean Default: false Whether the payment has been voided. |
{- "externalId": "string",
- "code": "string",
- "billTime": "2000-01-01T00:00:00Z",
- "patientId": "string",
- "clinicId": "string",
- "practitionerId": "string",
- "grossAmount": 0,
- "netAmount": 0,
- "paidAmount": 0,
- "outstandingAmount": 0,
- "totalDiscount": 0,
- "diagnosis": "string",
- "remarks": "string",
- "isVoid": false
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "billTime": "2000-01-01T00:00:00Z",
- "patientId": "string",
- "clinicId": "string",
- "practitionerId": "string",
- "grossAmount": 0,
- "netAmount": 0,
- "paidAmount": 0,
- "outstandingAmount": 0,
- "totalDiscount": 0,
- "diagnosis": "string",
- "remarks": "string",
- "isVoid": false
}
}| externalId | string |
| code | string Payment code/number. Auto-generated if omitted. |
| paymentTime required | string <date-time> Date and time the payment was made. |
| billId required | string ID of the billing (references Bill). |
| clinicId required | string ID of the clinic where the payment was made (references Clinic). |
| amount required | number Total payment amount. |
| isVoid | boolean Default: false Whether the payment has been voided. |
{- "externalId": "string",
- "code": "string",
- "paymentTime": "2000-01-01T00:00:00Z",
- "billId": "string",
- "clinicId": "string",
- "amount": 0,
- "isVoid": false
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "paymentTime": "2000-01-01T00:00:00Z",
- "billId": "string",
- "clinicId": "string",
- "amount": 0,
- "isVoid": false
}
}| page | integer >= 1 Default: 1 The page number to retrieve (1-based index). |
| limit | integer [ 1 .. 100 ] Default: 20 The number of items to return per page. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "items": [
- {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "paymentTime": "2000-01-01T00:00:00Z",
- "billId": "string",
- "clinicId": "string",
- "amount": 0,
- "isVoid": false
}
], - "pagination": {
- "page": 1,
- "limit": 20,
- "total": 143,
- "totalPages": 8
}
}
}Create up to 1000 payments in a single request. Each item is processed independently; the response reports per-item success or failure so partial success is possible.
required | Array of objects (Payment) [ 1 .. 1000 ] items List of payments to create. Maximum 1000 items per request. |
{- "items": [
- {
- "externalId": "string",
- "code": "string",
- "paymentTime": "2000-01-01T00:00:00Z",
- "billId": "string",
- "clinicId": "string",
- "amount": 0,
- "isVoid": false
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "totalRequested": 5,
- "totalSucceeded": 4,
- "totalFailed": 1,
- "results": [
- {
- "index": 0,
- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "paymentTime": "2000-01-01T00:00:00Z",
- "billId": "string",
- "clinicId": "string",
- "amount": 0,
- "isVoid": false
}
}
]
}
}| paymentId required | string The unique identifier of the payment record. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "paymentTime": "2000-01-01T00:00:00Z",
- "billId": "string",
- "clinicId": "string",
- "amount": 0,
- "isVoid": false
}
}| paymentId required | string The unique identifier of the payment record. |
| externalId | string |
| code | string Payment code/number. Auto-generated if omitted. |
| paymentTime required | string <date-time> Date and time the payment was made. |
| billId required | string ID of the billing (references Bill). |
| clinicId required | string ID of the clinic where the payment was made (references Clinic). |
| amount required | number Total payment amount. |
| isVoid | boolean Default: false Whether the payment has been voided. |
{- "externalId": "string",
- "code": "string",
- "paymentTime": "2000-01-01T00:00:00Z",
- "billId": "string",
- "clinicId": "string",
- "amount": 0,
- "isVoid": false
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "paymentTime": "2000-01-01T00:00:00Z",
- "billId": "string",
- "clinicId": "string",
- "amount": 0,
- "isVoid": false
}
}Creates a default prescribing setting for a drug with clinic and practitioner scope.
| externalId | string |
| drugId required | string ID of the drug this setting applies to (references Drug). |
| name | string A label or name for this setting configuration. |
| practitionerSelectType | string Default: "ALL" Enum: "ALL" "INCLUDE" "EXCLUDE" Whether this setting applies to all practitioners, only those included, or all except those excluded. |
| includePractitionerIds | Array of strings IDs of practitioners (references Practitioner) this setting applies to when practitionerSelectType is INCLUDE. |
| excludePractitionerIds | Array of strings IDs of practitioners (references Practitioner) this setting excludes when practitionerSelectType is EXCLUDE. |
| clinicSelectType | string Default: "ALL" Enum: "ALL" "INCLUDE" "EXCLUDE" Whether this setting applies to all clinics, only those included, or all except those excluded. |
| includeClinicIds | Array of strings IDs of clinics (references Clinic) this setting applies to when clinicSelectType is INCLUDE. |
| excludeClinicIds | Array of strings IDs of clinics (references Clinic) this setting excludes when clinicSelectType is EXCLUDE. |
| defaultFrequencyId | string ID of the default drug frequency (references DrugFrequency). |
| defaultDosageId | string ID of the default dosage (references DrugDosage). |
| isFreeDosageInput | boolean Default: false Whether the dosage amount is entered as free text. |
| defaultDosage | number Default dosage amount. |
| defaultDurationUse | string Default usage duration. |
| defaultDurationUnit | string Unit for the default duration (e.g. day, week). |
| defaultInstructionIds | Array of strings IDs of default drug instructions (references DrugInstruction). |
| defaultCautionIds | Array of strings IDs of default drug cautions (references DrugCaution). |
| defaultRouteSiteId | string ID of the default administration route/site (references RouteSite). |
| isDefaultPRN | boolean Default: false Whether the default prescription is PRN (as needed). |
| defaultTotalDosage | number Default total dosage quantity. |
| defaultSalesUnitId | string ID of the default sales unit (references DrugUnit). |
| remarks | string Prescription remarks for this setting. |
{- "externalId": "string",
- "drugId": "string",
- "name": "string",
- "practitionerSelectType": "ALL",
- "includePractitionerIds": [
- "string"
], - "excludePractitionerIds": [
- "string"
], - "clinicSelectType": "ALL",
- "includeClinicIds": [
- "string"
], - "excludeClinicIds": [
- "string"
], - "defaultFrequencyId": "string",
- "defaultDosageId": "string",
- "isFreeDosageInput": false,
- "defaultDosage": 0,
- "defaultDurationUse": "string",
- "defaultDurationUnit": "string",
- "defaultInstructionIds": [
- "string"
], - "defaultCautionIds": [
- "string"
], - "defaultRouteSiteId": "string",
- "isDefaultPRN": false,
- "defaultTotalDosage": 0,
- "defaultSalesUnitId": "string",
- "remarks": "string"
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "drugId": "string",
- "name": "string",
- "practitionerSelectType": "ALL",
- "includePractitionerIds": [
- "string"
], - "excludePractitionerIds": [
- "string"
], - "clinicSelectType": "ALL",
- "includeClinicIds": [
- "string"
], - "excludeClinicIds": [
- "string"
], - "defaultFrequencyId": "string",
- "defaultDosageId": "string",
- "isFreeDosageInput": false,
- "defaultDosage": 0,
- "defaultDurationUse": "string",
- "defaultDurationUnit": "string",
- "defaultInstructionIds": [
- "string"
], - "defaultCautionIds": [
- "string"
], - "defaultRouteSiteId": "string",
- "isDefaultPRN": false,
- "defaultTotalDosage": 0,
- "defaultSalesUnitId": "string",
- "remarks": "string"
}
}Create up to 1000 drug usage records in a single request. Each item is processed independently; the response reports per-item success or failure so partial success is possible.
required | Array of objects (DrugUsage) [ 1 .. 1000 ] items List of drug usage records to create. Maximum 1000 items per request. |
{- "items": [
- {
- "externalId": "string",
- "drugId": "string",
- "name": "string",
- "practitionerSelectType": "ALL",
- "includePractitionerIds": [
- "string"
], - "excludePractitionerIds": [
- "string"
], - "clinicSelectType": "ALL",
- "includeClinicIds": [
- "string"
], - "excludeClinicIds": [
- "string"
], - "defaultFrequencyId": "string",
- "defaultDosageId": "string",
- "isFreeDosageInput": false,
- "defaultDosage": 0,
- "defaultDurationUse": "string",
- "defaultDurationUnit": "string",
- "defaultInstructionIds": [
- "string"
], - "defaultCautionIds": [
- "string"
], - "defaultRouteSiteId": "string",
- "isDefaultPRN": false,
- "defaultTotalDosage": 0,
- "defaultSalesUnitId": "string",
- "remarks": "string"
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "totalRequested": 5,
- "totalSucceeded": 4,
- "totalFailed": 1,
- "results": [
- {
- "index": 0,
- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "drugId": "string",
- "name": "string",
- "practitionerSelectType": "ALL",
- "includePractitionerIds": [
- "string"
], - "excludePractitionerIds": [
- "string"
], - "clinicSelectType": "ALL",
- "includeClinicIds": [
- "string"
], - "excludeClinicIds": [
- "string"
], - "defaultFrequencyId": "string",
- "defaultDosageId": "string",
- "isFreeDosageInput": false,
- "defaultDosage": 0,
- "defaultDurationUse": "string",
- "defaultDurationUnit": "string",
- "defaultInstructionIds": [
- "string"
], - "defaultCautionIds": [
- "string"
], - "defaultRouteSiteId": "string",
- "isDefaultPRN": false,
- "defaultTotalDosage": 0,
- "defaultSalesUnitId": "string",
- "remarks": "string"
}
}
]
}
}| drugId required | string The unique identifier of the drug record. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "drugId": "string",
- "name": "string",
- "practitionerSelectType": "ALL",
- "includePractitionerIds": [
- "string"
], - "excludePractitionerIds": [
- "string"
], - "clinicSelectType": "ALL",
- "includeClinicIds": [
- "string"
], - "excludeClinicIds": [
- "string"
], - "defaultFrequencyId": "string",
- "defaultDosageId": "string",
- "isFreeDosageInput": false,
- "defaultDosage": 0,
- "defaultDurationUse": "string",
- "defaultDurationUnit": "string",
- "defaultInstructionIds": [
- "string"
], - "defaultCautionIds": [
- "string"
], - "defaultRouteSiteId": "string",
- "isDefaultPRN": false,
- "defaultTotalDosage": 0,
- "defaultSalesUnitId": "string",
- "remarks": "string"
}
}| drugId required | string The unique identifier of the drug record. |
| externalId | string |
| drugId required | string ID of the drug this setting applies to (references Drug). |
| name | string A label or name for this setting configuration. |
| practitionerSelectType | string Default: "ALL" Enum: "ALL" "INCLUDE" "EXCLUDE" Whether this setting applies to all practitioners, only those included, or all except those excluded. |
| includePractitionerIds | Array of strings IDs of practitioners (references Practitioner) this setting applies to when practitionerSelectType is INCLUDE. |
| excludePractitionerIds | Array of strings IDs of practitioners (references Practitioner) this setting excludes when practitionerSelectType is EXCLUDE. |
| clinicSelectType | string Default: "ALL" Enum: "ALL" "INCLUDE" "EXCLUDE" Whether this setting applies to all clinics, only those included, or all except those excluded. |
| includeClinicIds | Array of strings IDs of clinics (references Clinic) this setting applies to when clinicSelectType is INCLUDE. |
| excludeClinicIds | Array of strings IDs of clinics (references Clinic) this setting excludes when clinicSelectType is EXCLUDE. |
| defaultFrequencyId | string ID of the default drug frequency (references DrugFrequency). |
| defaultDosageId | string ID of the default dosage (references DrugDosage). |
| isFreeDosageInput | boolean Default: false Whether the dosage amount is entered as free text. |
| defaultDosage | number Default dosage amount. |
| defaultDurationUse | string Default usage duration. |
| defaultDurationUnit | string Unit for the default duration (e.g. day, week). |
| defaultInstructionIds | Array of strings IDs of default drug instructions (references DrugInstruction). |
| defaultCautionIds | Array of strings IDs of default drug cautions (references DrugCaution). |
| defaultRouteSiteId | string ID of the default administration route/site (references RouteSite). |
| isDefaultPRN | boolean Default: false Whether the default prescription is PRN (as needed). |
| defaultTotalDosage | number Default total dosage quantity. |
| defaultSalesUnitId | string ID of the default sales unit (references DrugUnit). |
| remarks | string Prescription remarks for this setting. |
{- "externalId": "string",
- "drugId": "string",
- "name": "string",
- "practitionerSelectType": "ALL",
- "includePractitionerIds": [
- "string"
], - "excludePractitionerIds": [
- "string"
], - "clinicSelectType": "ALL",
- "includeClinicIds": [
- "string"
], - "excludeClinicIds": [
- "string"
], - "defaultFrequencyId": "string",
- "defaultDosageId": "string",
- "isFreeDosageInput": false,
- "defaultDosage": 0,
- "defaultDurationUse": "string",
- "defaultDurationUnit": "string",
- "defaultInstructionIds": [
- "string"
], - "defaultCautionIds": [
- "string"
], - "defaultRouteSiteId": "string",
- "isDefaultPRN": false,
- "defaultTotalDosage": 0,
- "defaultSalesUnitId": "string",
- "remarks": "string"
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "drugId": "string",
- "name": "string",
- "practitionerSelectType": "ALL",
- "includePractitionerIds": [
- "string"
], - "excludePractitionerIds": [
- "string"
], - "clinicSelectType": "ALL",
- "includeClinicIds": [
- "string"
], - "excludeClinicIds": [
- "string"
], - "defaultFrequencyId": "string",
- "defaultDosageId": "string",
- "isFreeDosageInput": false,
- "defaultDosage": 0,
- "defaultDurationUse": "string",
- "defaultDurationUnit": "string",
- "defaultInstructionIds": [
- "string"
], - "defaultCautionIds": [
- "string"
], - "defaultRouteSiteId": "string",
- "isDefaultPRN": false,
- "defaultTotalDosage": 0,
- "defaultSalesUnitId": "string",
- "remarks": "string"
}
}Creates a stock record for a drug item at a specific location.
| clinicId required | string The unique identifier of the clinic. |
| drugId required | string The unique identifier of the drug record. |
| clinicId required | string ID of the clinic where the stock is held (references Clinic). |
| drugId required | string ID of the drug (references Drug). |
| quantity | number Current stock quantity. |
| totalCost | number Total stock cost (quantity * averageCost). |
| averageCost | number Average cost per unit. |
| alertQuantity | number Low-stock alert threshold. Triggers notification when quantity falls below this value. |
| status | string Enum: "active" "inactive_in_rx" "inactive_in_stock" |
Array of objects (StockBatch) Batch/lot records for this stock. | |
Array of objects (StockUnitPrice) Unit price settings for this stock. |
{- "clinicId": "string",
- "drugId": "string",
- "quantity": 0,
- "totalCost": 0,
- "averageCost": 0,
- "alertQuantity": 0,
- "status": "active",
- "batches": [
- {
- "lotNo": "string",
- "expiryDate": "2019-08-24",
- "quantity": 0,
- "unitCost": 0,
- "totalCost": 0
}
], - "unitPrices": [
- {
- "unitId": "string",
- "unitPrice": 0
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "clinicId": "string",
- "drugId": "string",
- "quantity": 0,
- "totalCost": 0,
- "averageCost": 0,
- "alertQuantity": 0,
- "availableQuantity": 0,
- "reservedQuantity": 0,
- "status": "active",
- "batches": [
- {
- "id": "string",
- "lotNo": "string",
- "expiryDate": "2019-08-24",
- "quantity": 0,
- "unitCost": 0,
- "totalCost": 0
}
], - "unitPrices": [
- {
- "unitId": "string",
- "unitPrice": 0
}
]
}
}| clinicId required | string The unique identifier of the clinic. |
| drugId required | string The unique identifier of the drug record. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "clinicId": "string",
- "drugId": "string",
- "quantity": 0,
- "totalCost": 0,
- "averageCost": 0,
- "alertQuantity": 0,
- "availableQuantity": 0,
- "reservedQuantity": 0,
- "status": "active",
- "batches": [
- {
- "id": "string",
- "lotNo": "string",
- "expiryDate": "2019-08-24",
- "quantity": 0,
- "unitCost": 0,
- "totalCost": 0
}
], - "unitPrices": [
- {
- "unitId": "string",
- "unitPrice": 0
}
]
}
}| clinicId required | string The unique identifier of the clinic. |
| drugId required | string The unique identifier of the drug record. |
| clinicId required | string ID of the clinic where the stock is held (references Clinic). |
| drugId required | string ID of the drug (references Drug). |
| quantity | number Current stock quantity. |
| totalCost | number Total stock cost (quantity * averageCost). |
| averageCost | number Average cost per unit. |
| alertQuantity | number Low-stock alert threshold. Triggers notification when quantity falls below this value. |
| status | string Enum: "active" "inactive_in_rx" "inactive_in_stock" |
Array of objects (StockBatch) Batch/lot records for this stock. | |
Array of objects (StockUnitPrice) Unit price settings for this stock. |
{- "clinicId": "string",
- "drugId": "string",
- "quantity": 0,
- "totalCost": 0,
- "averageCost": 0,
- "alertQuantity": 0,
- "status": "active",
- "batches": [
- {
- "lotNo": "string",
- "expiryDate": "2019-08-24",
- "quantity": 0,
- "unitCost": 0,
- "totalCost": 0
}
], - "unitPrices": [
- {
- "unitId": "string",
- "unitPrice": 0
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "clinicId": "string",
- "drugId": "string",
- "quantity": 0,
- "totalCost": 0,
- "averageCost": 0,
- "alertQuantity": 0,
- "availableQuantity": 0,
- "reservedQuantity": 0,
- "status": "active",
- "batches": [
- {
- "id": "string",
- "lotNo": "string",
- "expiryDate": "2019-08-24",
- "quantity": 0,
- "unitCost": 0,
- "totalCost": 0
}
], - "unitPrices": [
- {
- "unitId": "string",
- "unitPrice": 0
}
]
}
}| clinicId required | string The unique identifier of the clinic. |
| drugId required | string The unique identifier of the drug record. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": null
}Create up to 1000 stock records in a single request. Each item is processed independently; the response reports per-item success or failure so partial success is possible.
| clinicId required | string The unique identifier of the clinic. |
required | Array of objects (DrugStock) [ 1 .. 1000 ] items List of stock records to create. Maximum 1000 items per request. |
{- "items": [
- {
- "clinicId": "string",
- "drugId": "string",
- "quantity": 0,
- "totalCost": 0,
- "averageCost": 0,
- "alertQuantity": 0,
- "status": "active",
- "batches": [
- {
- "lotNo": "string",
- "expiryDate": "2019-08-24",
- "quantity": 0,
- "unitCost": 0,
- "totalCost": 0
}
], - "unitPrices": [
- {
- "unitId": "string",
- "unitPrice": 0
}
]
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "totalRequested": 5,
- "totalSucceeded": 4,
- "totalFailed": 1,
- "results": [
- {
- "index": 0,
- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "clinicId": "string",
- "drugId": "string",
- "quantity": 0,
- "totalCost": 0,
- "averageCost": 0,
- "alertQuantity": 0,
- "availableQuantity": 0,
- "reservedQuantity": 0,
- "status": "active",
- "batches": [
- {
- "id": "string",
- "lotNo": "string",
- "expiryDate": "2019-08-24",
- "quantity": 0,
- "unitCost": 0,
- "totalCost": 0
}
], - "unitPrices": [
- {
- "unitId": "string",
- "unitPrice": 0
}
]
}
}
]
}
}| externalId | string |
| patientId required | string ID of the clinic patient (references Patient). |
| clinicId required | string ID of the clinic where the consultation took place (references Clinic). |
| practitionerId required | string ID of the attending practitioner (references Practitioner). |
| consultationTime required | string <date-time> Date and time of the consultation. |
| encounterId | string ID of the associated encounter record (references Encounter). |
| complaints | string The patient's chief complaints. |
| findings | string Clinical findings recorded by the practitioner. |
| diagnosis | string Diagnosis given to the patient. |
| actions | string Actions, treatments, or procedures planned or performed. |
{- "externalId": "string",
- "patientId": "string",
- "clinicId": "string",
- "practitionerId": "string",
- "consultationTime": "2000-01-01T00:00:00Z",
- "encounterId": "string",
- "complaints": "string",
- "findings": "string",
- "diagnosis": "string",
- "actions": "string"
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "patientId": "string",
- "clinicId": "string",
- "practitionerId": "string",
- "consultationTime": "2000-01-01T00:00:00Z",
- "encounterId": "string",
- "complaints": "string",
- "findings": "string",
- "diagnosis": "string",
- "actions": "string"
}
}| page | integer >= 1 Default: 1 The page number to retrieve (1-based index). |
| limit | integer [ 1 .. 100 ] Default: 20 The number of items to return per page. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "items": [
- {
- "id": "string",
- "externalId": "string",
- "patientId": "string",
- "clinicId": "string",
- "practitionerId": "string",
- "consultationTime": "2000-01-01T00:00:00Z",
- "encounterId": "string",
- "complaints": "string",
- "findings": "string",
- "diagnosis": "string",
- "actions": "string"
}
], - "pagination": {
- "page": 1,
- "limit": 20,
- "total": 143,
- "totalPages": 8
}
}
}Create up to 1000 consultation records in a single request. Each item is processed independently; the response reports per-item success or failure so partial success is possible.
required | Array of objects (Consultation) [ 1 .. 1000 ] items List of consultation records to create. Maximum 1000 items per request. |
{- "items": [
- {
- "externalId": "string",
- "patientId": "string",
- "clinicId": "string",
- "practitionerId": "string",
- "consultationTime": "2000-01-01T00:00:00Z",
- "encounterId": "string",
- "complaints": "string",
- "findings": "string",
- "diagnosis": "string",
- "actions": "string"
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "totalRequested": 5,
- "totalSucceeded": 4,
- "totalFailed": 1,
- "results": [
- {
- "index": 0,
- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "patientId": "string",
- "clinicId": "string",
- "practitionerId": "string",
- "consultationTime": "2000-01-01T00:00:00Z",
- "encounterId": "string",
- "complaints": "string",
- "findings": "string",
- "diagnosis": "string",
- "actions": "string"
}
}
]
}
}| consultationId required | string The unique identifier of the consultation record. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "patientId": "string",
- "clinicId": "string",
- "practitionerId": "string",
- "consultationTime": "2000-01-01T00:00:00Z",
- "encounterId": "string",
- "complaints": "string",
- "findings": "string",
- "diagnosis": "string",
- "actions": "string"
}
}| consultationId required | string The unique identifier of the consultation record. |
| externalId | string |
| patientId required | string ID of the clinic patient (references Patient). |
| clinicId required | string ID of the clinic where the consultation took place (references Clinic). |
| practitionerId required | string ID of the attending practitioner (references Practitioner). |
| consultationTime required | string <date-time> Date and time of the consultation. |
| encounterId | string ID of the associated encounter record (references Encounter). |
| complaints | string The patient's chief complaints. |
| findings | string Clinical findings recorded by the practitioner. |
| diagnosis | string Diagnosis given to the patient. |
| actions | string Actions, treatments, or procedures planned or performed. |
{- "externalId": "string",
- "patientId": "string",
- "clinicId": "string",
- "practitionerId": "string",
- "consultationTime": "2000-01-01T00:00:00Z",
- "encounterId": "string",
- "complaints": "string",
- "findings": "string",
- "diagnosis": "string",
- "actions": "string"
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "patientId": "string",
- "clinicId": "string",
- "practitionerId": "string",
- "consultationTime": "2000-01-01T00:00:00Z",
- "encounterId": "string",
- "complaints": "string",
- "findings": "string",
- "diagnosis": "string",
- "actions": "string"
}
}| consultationId required | string ID of the consultation (references Consultation). |
| drugId required | string ID of the prescribed drug (references Drug). |
| remarks | string General remarks for this prescription. |
| drugCautionIds | Array of strings IDs of applicable drug cautions (references DrugCaution). |
| drugInstructionIds | Array of strings IDs of applicable drug instructions (references DrugInstruction). |
| unitCost | number Unit cost of the prescribed drug. |
| totalAmount | number Total billed amount for this prescription. |
| totalCost | number Total calculated cost for this prescription. |
| duration | number Duration for which the drug is prescribed. |
| drugFrequencyId | string ID of the drug frequency (references DrugFrequency). |
| drugDosageId | string ID of the drug dosage (references DrugDosage). |
| quantity | number Total prescribed quantity to be dispensed. |
| isPrn | boolean Default: false Indicates if the medication is to be taken as needed (Pro re nata). |
| dosageUnitId | string ID of the unit used for the dosage (references DrugUnit). |
| salesUnitId | string ID of the unit used for dispensing/billing (references DrugUnit). |
| unitPrice | number Selling price per sales unit. |
| routeSiteId | string ID of the administration route and site (references RouteSite). |
Array of objects (DispenseLot) Information about the specific inventory batches dispensed. |
{- "consultationId": "string",
- "drugId": "string",
- "remarks": "string",
- "drugCautionIds": [
- "string"
], - "drugInstructionIds": [
- "string"
], - "unitCost": 0,
- "totalAmount": 0,
- "totalCost": 0,
- "duration": 0,
- "drugFrequencyId": "string",
- "drugDosageId": "string",
- "quantity": 0,
- "isPrn": false,
- "dosageUnitId": "string",
- "salesUnitId": "string",
- "unitPrice": 0,
- "routeSiteId": "string",
- "dispenseLots": [
- {
- "dispenseTime": "2000-01-01T00:00:00Z",
- "lotNo": "string",
- "expiryDate": "2019-08-24",
- "quantity": 0
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "consultationId": "string",
- "drugId": "string",
- "remarks": "string",
- "drugCautionIds": [
- "string"
], - "drugInstructionIds": [
- "string"
], - "unitCost": 0,
- "totalAmount": 0,
- "totalCost": 0,
- "duration": 0,
- "drugFrequencyId": "string",
- "drugDosageId": "string",
- "quantity": 0,
- "isPrn": false,
- "dosageUnitId": "string",
- "salesUnitId": "string",
- "unitPrice": 0,
- "routeSiteId": "string",
- "dispenseLots": [
- {
- "id": "string",
- "dispenseTime": "2000-01-01T00:00:00Z",
- "lotNo": "string",
- "expiryDate": "2019-08-24",
- "quantity": 0
}
]
}
}Create up to 1000 prescription records in a single request. Each item is processed independently; the response reports per-item success or failure so partial success is possible.
required | Array of objects (Prescription) [ 1 .. 1000 ] items List of prescription records to create. Maximum 1000 items per request. |
{- "items": [
- {
- "consultationId": "string",
- "drugId": "string",
- "remarks": "string",
- "drugCautionIds": [
- "string"
], - "drugInstructionIds": [
- "string"
], - "unitCost": 0,
- "totalAmount": 0,
- "totalCost": 0,
- "duration": 0,
- "drugFrequencyId": "string",
- "drugDosageId": "string",
- "quantity": 0,
- "isPrn": false,
- "dosageUnitId": "string",
- "salesUnitId": "string",
- "unitPrice": 0,
- "routeSiteId": "string",
- "dispenseLots": [
- {
- "dispenseTime": "2000-01-01T00:00:00Z",
- "lotNo": "string",
- "expiryDate": "2019-08-24",
- "quantity": 0
}
]
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "totalRequested": 5,
- "totalSucceeded": 4,
- "totalFailed": 1,
- "results": [
- {
- "index": 0,
- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "consultationId": "string",
- "drugId": "string",
- "remarks": "string",
- "drugCautionIds": [
- "string"
], - "drugInstructionIds": [
- "string"
], - "unitCost": 0,
- "totalAmount": 0,
- "totalCost": 0,
- "duration": 0,
- "drugFrequencyId": "string",
- "drugDosageId": "string",
- "quantity": 0,
- "isPrn": false,
- "dosageUnitId": "string",
- "salesUnitId": "string",
- "unitPrice": 0,
- "routeSiteId": "string",
- "dispenseLots": [
- {
- "id": "string",
- "dispenseTime": "2000-01-01T00:00:00Z",
- "lotNo": "string",
- "expiryDate": "2019-08-24",
- "quantity": 0
}
]
}
}
]
}
}| consultationId required | string The unique identifier of the consultation record. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": [
- {
- "id": "string",
- "consultationId": "string",
- "drugId": "string",
- "remarks": "string",
- "drugCautionIds": [
- "string"
], - "drugInstructionIds": [
- "string"
], - "unitCost": 0,
- "totalAmount": 0,
- "totalCost": 0,
- "duration": 0,
- "drugFrequencyId": "string",
- "drugDosageId": "string",
- "quantity": 0,
- "isPrn": false,
- "dosageUnitId": "string",
- "salesUnitId": "string",
- "unitPrice": 0,
- "routeSiteId": "string",
- "dispenseLots": [
- {
- "id": "string",
- "dispenseTime": "2000-01-01T00:00:00Z",
- "lotNo": "string",
- "expiryDate": "2019-08-24",
- "quantity": 0
}
]
}
]
}| consultationId required | string The unique identifier of the consultation record. |
| prescriptionId required | string The unique identifier of the prescription record. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "consultationId": "string",
- "drugId": "string",
- "remarks": "string",
- "drugCautionIds": [
- "string"
], - "drugInstructionIds": [
- "string"
], - "unitCost": 0,
- "totalAmount": 0,
- "totalCost": 0,
- "duration": 0,
- "drugFrequencyId": "string",
- "drugDosageId": "string",
- "quantity": 0,
- "isPrn": false,
- "dosageUnitId": "string",
- "salesUnitId": "string",
- "unitPrice": 0,
- "routeSiteId": "string",
- "dispenseLots": [
- {
- "id": "string",
- "dispenseTime": "2000-01-01T00:00:00Z",
- "lotNo": "string",
- "expiryDate": "2019-08-24",
- "quantity": 0
}
]
}
}| consultationId required | string The unique identifier of the consultation record. |
| prescriptionId required | string The unique identifier of the prescription record. |
| consultationId required | string ID of the consultation (references Consultation). |
| drugId required | string ID of the prescribed drug (references Drug). |
| remarks | string General remarks for this prescription. |
| drugCautionIds | Array of strings IDs of applicable drug cautions (references DrugCaution). |
| drugInstructionIds | Array of strings IDs of applicable drug instructions (references DrugInstruction). |
| unitCost | number Unit cost of the prescribed drug. |
| totalAmount | number Total billed amount for this prescription. |
| totalCost | number Total calculated cost for this prescription. |
| duration | number Duration for which the drug is prescribed. |
| drugFrequencyId | string ID of the drug frequency (references DrugFrequency). |
| drugDosageId | string ID of the drug dosage (references DrugDosage). |
| quantity | number Total prescribed quantity to be dispensed. |
| isPrn | boolean Default: false Indicates if the medication is to be taken as needed (Pro re nata). |
| dosageUnitId | string ID of the unit used for the dosage (references DrugUnit). |
| salesUnitId | string ID of the unit used for dispensing/billing (references DrugUnit). |
| unitPrice | number Selling price per sales unit. |
| routeSiteId | string ID of the administration route and site (references RouteSite). |
Array of objects (DispenseLot) Information about the specific inventory batches dispensed. |
{- "consultationId": "string",
- "drugId": "string",
- "remarks": "string",
- "drugCautionIds": [
- "string"
], - "drugInstructionIds": [
- "string"
], - "unitCost": 0,
- "totalAmount": 0,
- "totalCost": 0,
- "duration": 0,
- "drugFrequencyId": "string",
- "drugDosageId": "string",
- "quantity": 0,
- "isPrn": false,
- "dosageUnitId": "string",
- "salesUnitId": "string",
- "unitPrice": 0,
- "routeSiteId": "string",
- "dispenseLots": [
- {
- "dispenseTime": "2000-01-01T00:00:00Z",
- "lotNo": "string",
- "expiryDate": "2019-08-24",
- "quantity": 0
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "consultationId": "string",
- "drugId": "string",
- "remarks": "string",
- "drugCautionIds": [
- "string"
], - "drugInstructionIds": [
- "string"
], - "unitCost": 0,
- "totalAmount": 0,
- "totalCost": 0,
- "duration": 0,
- "drugFrequencyId": "string",
- "drugDosageId": "string",
- "quantity": 0,
- "isPrn": false,
- "dosageUnitId": "string",
- "salesUnitId": "string",
- "unitPrice": 0,
- "routeSiteId": "string",
- "dispenseLots": [
- {
- "id": "string",
- "dispenseTime": "2000-01-01T00:00:00Z",
- "lotNo": "string",
- "expiryDate": "2019-08-24",
- "quantity": 0
}
]
}
}| consultationId required | string The unique identifier of the consultation record. |
| prescriptionId required | string The unique identifier of the prescription record. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": null
}| externalId | string |
| code | string |
| name required | string |
| fee | number <double> |
| status | string Enum: "active" "inactive" |
{- "externalId": "string",
- "code": "string",
- "name": "string",
- "fee": 0.1,
- "status": "active"
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": "string",
- "fee": 0.1,
- "status": "active"
}
}| page | integer >= 1 Default: 1 The page number to retrieve (1-based index). |
| limit | integer [ 1 .. 100 ] Default: 20 The number of items to return per page. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "items": [
- {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": "string",
- "fee": 0.1,
- "status": "active"
}
], - "pagination": {
- "page": 1,
- "limit": 20,
- "total": 143,
- "totalPages": 8
}
}
}Create up to 1000 service items in a single request.
required | Array of objects (ServiceItem) [ 1 .. 1000 ] items List of service items to create. Maximum 1000 items per request. |
{- "items": [
- {
- "externalId": "string",
- "code": "string",
- "name": "string",
- "fee": 0.1,
- "status": "active"
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "totalRequested": 5,
- "totalSucceeded": 4,
- "totalFailed": 1,
- "results": [
- {
- "index": 0,
- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": "string",
- "fee": 0.1,
- "status": "active"
}
}
]
}
}| serviceItemId required | string The unique identifier of the service item. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": "string",
- "fee": 0.1,
- "status": "active"
}
}| serviceItemId required | string The unique identifier of the service item. |
| externalId | string |
| code | string |
| name required | string |
| fee | number <double> |
| status | string Enum: "active" "inactive" |
{- "externalId": "string",
- "code": "string",
- "name": "string",
- "fee": 0.1,
- "status": "active"
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": "string",
- "fee": 0.1,
- "status": "active"
}
}| externalId | string |
| code | string |
| name required | string |
| isAccReceivable | boolean |
| status | string Enum: "active" "inactive" |
{- "externalId": "string",
- "code": "string",
- "name": "string",
- "isAccReceivable": true,
- "status": "active"
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": "string",
- "isAccReceivable": true,
- "status": "active"
}
}| page | integer >= 1 Default: 1 The page number to retrieve (1-based index). |
| limit | integer [ 1 .. 100 ] Default: 20 The number of items to return per page. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "items": [
- {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": "string",
- "isAccReceivable": true,
- "status": "active"
}
], - "pagination": {
- "page": 1,
- "limit": 20,
- "total": 143,
- "totalPages": 8
}
}
}Create up to 1000 payment methods in a single request.
required | Array of objects (PaymentMethod) [ 1 .. 1000 ] items List of payment methods to create. Maximum 1000 items per request. |
{- "items": [
- {
- "externalId": "string",
- "code": "string",
- "name": "string",
- "isAccReceivable": true,
- "status": "active"
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "totalRequested": 5,
- "totalSucceeded": 4,
- "totalFailed": 1,
- "results": [
- {
- "index": 0,
- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": "string",
- "isAccReceivable": true,
- "status": "active"
}
}
]
}
}| paymentMethodId required | string The unique identifier of the payment method. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": "string",
- "isAccReceivable": true,
- "status": "active"
}
}| paymentMethodId required | string The unique identifier of the payment method. |
| externalId | string |
| code | string |
| name required | string |
| isAccReceivable | boolean |
| status | string Enum: "active" "inactive" |
{- "externalId": "string",
- "code": "string",
- "name": "string",
- "isAccReceivable": true,
- "status": "active"
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": "string",
- "isAccReceivable": true,
- "status": "active"
}
}Creates a single bill item. The associated billId must be provided in the request body.
| billId required | string ID of the billing (references Bill). |
| serviceItemId required | string ID of the fee item being billed (references ServiceItem). |
| unitPrice required | number Price per unit. |
| quantity required | number Quantity of the item. |
| discountPercent | number Discount percentage applied to this line item. Either percentage or amount is accepted. |
| discountAmount | number Discount amount applied to this line item. Either percentage or amount is accepted. |
| totalAmount required | number Line item total after discount. |
{- "billId": "string",
- "serviceItemId": "string",
- "unitPrice": 0,
- "quantity": 0,
- "discountPercent": 0,
- "discountAmount": 0,
- "totalAmount": 0
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "billId": "string",
- "serviceItemId": "string",
- "unitPrice": 0,
- "quantity": 0,
- "discountPercent": 0,
- "discountAmount": 0,
- "totalAmount": 0
}
}Create up to 1000 bill items across any number of bills in a single request. Each item is processed independently; the response reports per-item success or failure so partial success is possible.
required | Array of objects (BillItem) [ 1 .. 1000 ] items List of bill line items to create. Maximum 1000 items per request. |
{- "items": [
- {
- "billId": "string",
- "serviceItemId": "string",
- "unitPrice": 0,
- "quantity": 0,
- "discountPercent": 0,
- "discountAmount": 0,
- "totalAmount": 0
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "totalRequested": 5,
- "totalSucceeded": 4,
- "totalFailed": 1,
- "results": [
- {
- "index": 0,
- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "billId": "string",
- "serviceItemId": "string",
- "unitPrice": 0,
- "quantity": 0,
- "discountPercent": 0,
- "discountAmount": 0,
- "totalAmount": 0
}
}
]
}
}| billId required | string The unique identifier of the bill record. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": [
- {
- "id": "string",
- "billId": "string",
- "serviceItemId": "string",
- "unitPrice": 0,
- "quantity": 0,
- "discountPercent": 0,
- "discountAmount": 0,
- "totalAmount": 0
}
]
}| billId required | string The unique identifier of the bill record. |
| billItemId required | string The unique identifier of the bill item. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "billId": "string",
- "serviceItemId": "string",
- "unitPrice": 0,
- "quantity": 0,
- "discountPercent": 0,
- "discountAmount": 0,
- "totalAmount": 0
}
}| billId required | string The unique identifier of the bill record. |
| billItemId required | string The unique identifier of the bill item. |
| billId required | string ID of the billing (references Bill). |
| serviceItemId required | string ID of the fee item being billed (references ServiceItem). |
| unitPrice required | number Price per unit. |
| quantity required | number Quantity of the item. |
| discountPercent | number Discount percentage applied to this line item. Either percentage or amount is accepted. |
| discountAmount | number Discount amount applied to this line item. Either percentage or amount is accepted. |
| totalAmount required | number Line item total after discount. |
{- "billId": "string",
- "serviceItemId": "string",
- "unitPrice": 0,
- "quantity": 0,
- "discountPercent": 0,
- "discountAmount": 0,
- "totalAmount": 0
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "billId": "string",
- "serviceItemId": "string",
- "unitPrice": 0,
- "quantity": 0,
- "discountPercent": 0,
- "discountAmount": 0,
- "totalAmount": 0
}
}| billId required | string The unique identifier of the bill record. |
| billItemId required | string The unique identifier of the bill item. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": null
}Creates a single payment item. The associated paymentId must be provided in the request body.
| paymentId required | string ID of the payment (references Payment). |
| paymentMethodId required | string ID of the payment method (references PaymentMethod). |
| amount required | number Amount paid via this payment method. |
| remarks | string Remarks for this allocation. |
| voucherNo | string Voucher or reference number for this payment method allocation. |
{- "paymentId": "string",
- "paymentMethodId": "string",
- "amount": 0,
- "remarks": "string",
- "voucherNo": "string"
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "paymentId": "string",
- "paymentMethodId": "string",
- "amount": 0,
- "remarks": "string",
- "voucherNo": "string"
}
}Create up to 1000 payment items across any number of payments in a single request. Each item is processed independently; the response reports per-item success or failure so partial success is possible.
required | Array of objects (PaymentItem) [ 1 .. 1000 ] items List of payment method allocations to create. Maximum 1000 items per request. |
{- "items": [
- {
- "paymentId": "string",
- "paymentMethodId": "string",
- "amount": 0,
- "remarks": "string",
- "voucherNo": "string"
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "totalRequested": 5,
- "totalSucceeded": 4,
- "totalFailed": 1,
- "results": [
- {
- "index": 0,
- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "paymentId": "string",
- "paymentMethodId": "string",
- "amount": 0,
- "remarks": "string",
- "voucherNo": "string"
}
}
]
}
}| paymentId required | string The unique identifier of the payment record. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": [
- {
- "id": "string",
- "paymentId": "string",
- "paymentMethodId": "string",
- "amount": 0,
- "remarks": "string",
- "voucherNo": "string"
}
]
}| paymentId required | string The unique identifier of the payment record. |
| paymentItemId required | string The unique identifier of the payment item. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "paymentId": "string",
- "paymentMethodId": "string",
- "amount": 0,
- "remarks": "string",
- "voucherNo": "string"
}
}| paymentId required | string The unique identifier of the payment record. |
| paymentItemId required | string The unique identifier of the payment item. |
| paymentId required | string ID of the payment (references Payment). |
| paymentMethodId required | string ID of the payment method (references PaymentMethod). |
| amount required | number Amount paid via this payment method. |
| remarks | string Remarks for this allocation. |
| voucherNo | string Voucher or reference number for this payment method allocation. |
{- "paymentId": "string",
- "paymentMethodId": "string",
- "amount": 0,
- "remarks": "string",
- "voucherNo": "string"
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "paymentId": "string",
- "paymentMethodId": "string",
- "amount": 0,
- "remarks": "string",
- "voucherNo": "string"
}
}| paymentId required | string The unique identifier of the payment record. |
| paymentItemId required | string The unique identifier of the payment item. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": null
}| externalId | string External system identifier for this vendor. |
| code required | string Unique vendor code. |
required | object (LocalizedText) A localized text value |
| contactPerson | string Name of the primary contact person. |
| phone | string |
| fax | string |
string | |
object (LocalizedText) A localized text value | |
| status | string Default: "active" Enum: "active" "inactive" |
| remarks | string |
{- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "contactPerson": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "address": {
- "en": "string",
- "zh": "string"
}, - "status": "active",
- "remarks": "string"
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "contactPerson": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "address": {
- "en": "string",
- "zh": "string"
}, - "status": "active",
- "remarks": "string"
}
}| page | integer >= 1 Default: 1 The page number to retrieve (1-based index). |
| limit | integer [ 1 .. 100 ] Default: 20 The number of items to return per page. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "items": [
- {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "contactPerson": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "address": {
- "en": "string",
- "zh": "string"
}, - "status": "active",
- "remarks": "string"
}
], - "pagination": {
- "page": 1,
- "limit": 20,
- "total": 143,
- "totalPages": 8
}
}
}Create up to 1000 vendor records in a single request. Each item is processed independently; the response reports per-item success or failure.
required | Array of objects (Vendor) [ 1 .. 1000 ] items List of vendor records to create. Maximum 1000 items per request. |
{- "items": [
- {
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "contactPerson": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "address": {
- "en": "string",
- "zh": "string"
}, - "status": "active",
- "remarks": "string"
}
]
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "totalRequested": 5,
- "totalSucceeded": 4,
- "totalFailed": 1,
- "results": [
- {
- "index": 0,
- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "contactPerson": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "address": {
- "en": "string",
- "zh": "string"
}, - "status": "active",
- "remarks": "string"
}
}
]
}
}| vendorId required | string The unique identifier of the vendor record. |
{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "contactPerson": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "address": {
- "en": "string",
- "zh": "string"
}, - "status": "active",
- "remarks": "string"
}
}| vendorId required | string The unique identifier of the vendor record. |
| externalId | string External system identifier for this vendor. |
| code required | string Unique vendor code. |
required | object (LocalizedText) A localized text value |
| contactPerson | string Name of the primary contact person. |
| phone | string |
| fax | string |
string | |
object (LocalizedText) A localized text value | |
| status | string Default: "active" Enum: "active" "inactive" |
| remarks | string |
{- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "contactPerson": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "address": {
- "en": "string",
- "zh": "string"
}, - "status": "active",
- "remarks": "string"
}{- "status": "SUCCESS",
- "errorCode": "string",
- "message": "string",
- "data": {
- "id": "string",
- "externalId": "string",
- "code": "string",
- "name": {
- "en": "string",
- "zh": "string"
}, - "contactPerson": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "address": {
- "en": "string",
- "zh": "string"
}, - "status": "active",
- "remarks": "string"
}
}