You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there is no way to edit a specific insurance policy record in the REST api. You can insert new insurance policy records for a specific type (primary/secondary/tertiary) of insurance policy but there is no way to edit existing patient insurance coverage policies.
Describe the solution you'd like
We should implement an endpoint that follows standard rest. Ideally we would use /api/patient/{pid}/insurance/{insuranceId} but the way our APIs are written this would also match the /api/patient/{pid}/insurance/{type} and we can't get rid of that yet for backwards compatibility with API consumers. The following endpoints should be implemented:
PUT /api/patient/{pid}/insurance/{type}/{insuranceId} replaces a specific insurance policy as retrieved from GET /api/patient/{pid}/insurance/
POST /api/patient/{pid}/insurance/ inserts a new insurance policy for a patient
We should mark as deprecated the following API endpoints to be removed at a later release of OpenEMR
PUT /api/patient/{pid}/insurance/{type}
POST /api/patient/{pid}/insurance/{type}
The text was updated successfully, but these errors were encountered:
Describe the problem
Currently there is no way to edit a specific insurance policy record in the REST api. You can insert new insurance policy records for a specific type (primary/secondary/tertiary) of insurance policy but there is no way to edit existing patient insurance coverage policies.
Describe the solution you'd like
We should implement an endpoint that follows standard rest. Ideally we would use /api/patient/{pid}/insurance/{insuranceId} but the way our APIs are written this would also match the /api/patient/{pid}/insurance/{type} and we can't get rid of that yet for backwards compatibility with API consumers. The following endpoints should be implemented:
We should mark as deprecated the following API endpoints to be removed at a later release of OpenEMR
The text was updated successfully, but these errors were encountered: