-
Notifications
You must be signed in to change notification settings - Fork 3
Implement Multiple practitioners details endpoint #43
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
Conversation
7146c4b to
daded4c
Compare
- Return Practitoner object in Practitioner Details
- Return Practitioners as Array List - Return OrganizationAffiliations - Migrate fhir-common-utils library
bce891a to
ddd8d9e
Compare
| import org.smartregister.utils.Constants; | ||
| import org.springframework.lang.Nullable; | ||
|
|
||
| public class OpenSRPHelper { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we rename this class with something more semantic? Like RelationshipManagementHelper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea was that it would be generic to contain other helper methods for extended functionality. Right now it only supports the multi-practitioner details endpoint so maybe for now we can re-name it to something that alludes to that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed it from OpenSRPHelper to PractitionerDetailsEndpointHelper
plugins/src/main/java/com/google/fhir/gateway/plugin/OpenSRPHelper.java
Outdated
Show resolved
Hide resolved
plugins/src/main/java/com/google/fhir/gateway/plugin/OpenSRPHelper.java
Outdated
Show resolved
Hide resolved
ee5b31a to
cb0f739
Compare
|
Yeah renaming to focus on that makes sense, I'd prefer multiple plug-ins specific to the issues they deal with
… On Aug 1, 2023, at 02:58, Martin Ndegwa ***@***.***> wrote:
@ndegwamartin commented on this pull request.
In plugins/src/main/java/com/google/fhir/gateway/plugin/OpenSRPHelper.java:
> +import org.hl7.fhir.r4.model.Location;
+import org.hl7.fhir.r4.model.Organization;
+import org.hl7.fhir.r4.model.OrganizationAffiliation;
+import org.hl7.fhir.r4.model.Practitioner;
+import org.hl7.fhir.r4.model.PractitionerRole;
+import org.jetbrains.annotations.NotNull;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.smartregister.model.location.LocationHierarchy;
+import org.smartregister.model.location.ParentChildrenMap;
+import org.smartregister.model.practitioner.FhirPractitionerDetails;
+import org.smartregister.model.practitioner.PractitionerDetails;
+import org.smartregister.utils.Constants;
+import org.springframework.lang.Nullable;
+
+public class OpenSRPHelper {
The idea was that it would be generic to contain other helper methods for extended functionality. Right now it only supports the multi-practitioner details endpoint so maybe for now we can re-name it to something that alludes to that.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool, so I know this is an existing class, but think it should be renamed to simply
SyncAccessDecision
I don't see this as OpenSRP specific
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, I can rename this on the PR cc @rehammuzzamil and @dubdabasoduba
Signed-off-by: Martin Ndegwa <[email protected]>
Closes opensrp/fhircore#2609