-
Type:
Story
-
Resolution: Done
-
Priority:
High
-
None
-
Affects Version/s: None
-
None
-
5
-
AMRIT Sprint 22, AMRIT Sprint 23, AMRIT Sprint 24, AMRIT Sprint 26, AMRIT Sprint 27, AMRIT Sprint 28
In the HWC Application there is a need for API for downloading the master data for Lab module, like complete list of active Procedures and mapped active Components from a particular Provider Admin ("providerServiceMapID").
Refer to the attached API that has sample data needed for Lab module used in the prescription.
The API is expected to return List of procedure master DTO
@POST("/hwc-facility-service/labTechnician/get/masterData")
@JsonClass(generateAdapter = true)
data class ProcedureMasterDTO(
val benRegId: Long,
val procedureDesc: String,
val procedureType: String,
val procedureID: Long,
val procedureName: String,
var compListDetails: List<ComponentDetailMasterDTO>,
val isMandatory: Boolean
)
@JsonClass(generateAdapter = true)
data class ComponentDetailMasterDTO(
val id: Long,
val range_normal_min: Int? = null,
val range_normal_max: Int? = null,
val range_min: Int? = null,
val range_max: Int? = null,
val isDecimal: Boolean? = null,
val inputType: String,
val testComponentID: Long,
val measurementUnit: String? = null,
val testComponentName: String,
var testComponentDesc: String,
var compOpt: List<ComponentOptionsMasterDTO>
)
@JsonClass(generateAdapter = true)
data class ComponentOptionsMasterDTO(
val name: String?,
)
Note: Other parameters like LOINC code, etc that are missing in the above mentioned should be included.