We are trying to update the subscription request health locker but the API is returning error.
Request Body:
{
“hiuId”: “medixcel-demo-health-locker”,
“subscriptionEditAndApprovalRequest”: {
“isApplicableForAllHIPs”: false,
“includedSources”: [
{
“hip”: {
“id”: “medixcel-lohegaon-clinic-hip”,
“name”: null
},
“purpose”: {
“text”: “Self Requested”,
“code”: “PATRQT”,
“refUri”: “”
},
“hiTypes”: [
“DiagnosticReport”,
“Prescription”,
“ImmunizationRecord”,
“DischargeSummary”,
“OPConsultation”,
“HealthDocumentRecord”,
“WellnessRecord”
],
“period”: {
“from”: “2017-04-01T07:30:00.000Z”,
“to”: “2025-05-14T07:30:00.000Z”
},
“categories”: [
“LINK”,
“DATA”
]
},
{
“hip”: {
“id”: “medixcel-demo-health-locker”,
“name”: null
},
“purpose”: {
“text”: “Self Requested”,
“code”: “PATRQT”,
“refUri”: “”
},
“hiTypes”: [
“DiagnosticReport”,
“Prescription”,
“ImmunizationRecord”,
“DischargeSummary”,
“OPConsultation”,
“HealthDocumentRecord”,
“WellnessRecord”
],
“period”: {
“from”: “2017-04-01T07:30:00.000Z”,
“to”: “2025-05-14T07:30:00.000Z”
},
“categories”: [
“LINK”,
“DATA”
]
},
{
“hip”: {
“id”: “medixcel-district-heart-care-centre-hip”,
“name”: null
},
“purpose”: {
“text”: “Self Requested”,
“code”: “PATRQT”,
“refUri”: “”
},
“hiTypes”: [
“DiagnosticReport”,
“Prescription”,
“ImmunizationRecord”,
“DischargeSummary”,
“OPConsultation”,
“HealthDocumentRecord”,
“WellnessRecord”
],
“period”: {
“from”: “2017-04-01T07:30:00.000Z”,
“to”: “2025-05-14T07:30:00.000Z”
},
“categories”: [
“LINK”,
“DATA”
]
},
{
“hip”: {
“id”: “mxcel-hip-mycare”,
“name”: null
},
“purpose”: {
“text”: “Self Requested”,
“code”: “PATRQT”,
“refUri”: “”
},
“hiTypes”: [
“DiagnosticReport”,
“Prescription”,
“ImmunizationRecord”,
“DischargeSummary”,
“OPConsultation”,
“HealthDocumentRecord”,
“WellnessRecord”
],
“period”: {
“from”: “2017-04-01T07:30:00.000Z”,
“to”: “2025-05-14T07:30:00.000Z”
},
“categories”: [
“LINK”,
“DATA”
]
}
]
}
}
API is returning “unknown error occurred” error message