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) Implement Search API and consolidate the CR Patient Resource provider #18

Merged
merged 6 commits into from
Sep 23, 2024

Conversation

samuelmale
Copy link
Member

@samuelmale samuelmale commented Sep 2, 2024

Overview

This pull request implements key enhancements to the client registry and providing a RESTful API

Major Changes

  • Implemented Search API:

    • Added functionality to search for patients based on various criteria
  • Implemented CRUD Operations:

    • Developed Create, Read, Update, and Delete (CRUD) operations for patient records

Examples

  • Get by ID:

    GET openmrs/ws/fhir2/R4/Patient/123/$cr
  • Search:

    GET openmrs/ws/fhir2/R4/Patient/$cr-search?name=Smith
  • Create/Update:

    POST openmrs/ws/fhir2/R4/Patient/$cr
  • Delete:

    POST openmrs/ws/fhir2/R4/Patient/$cr-delete

Unit Testing

  • Done

Related Issues

@mherman22 mherman22 marked this pull request as ready for review September 9, 2024 20:23
.filter(param -> Objects.equals(param.getName(), "targetId")).map(param -> param.getValue().toString())
.collect(Collectors.toList());
List<String> crIdentifiers = crMatchingParams.getParameter().stream().filter(param -> Objects.equals(param.getName(), "targetId"))
.map(param -> ((Reference) param.getValue()).getReference()).collect(Collectors.toList());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is mainly because of https://profiles.ihe.net/ITI/PIXm/Parameters-pixm-response-mohralice-red-all.json.html which doesn't seem to have been correctly implemented in opencr hence this.

@samuelmale
Copy link
Member Author

Ping @reagan-meant

@samuelmale samuelmale merged commit f065f1d into main Sep 23, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants