Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Patient Insurance Policy rest endpoint for updating a specific policy #7143

Closed
adunsulag opened this issue Jan 4, 2024 · 1 comment
Assignees
Milestone

Comments

@adunsulag
Copy link
Sponsor Member

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:

  • 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}
@adunsulag adunsulag self-assigned this Jan 4, 2024
@adunsulag
Copy link
Sponsor Member Author

Fixed here: #7197

@adunsulag adunsulag added this to the 7.0.2.1 milestone Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant