From ef5af322bb3921530be8d872b1818df40918ee02 Mon Sep 17 00:00:00 2001 From: reagan-meant Date: Wed, 12 Jun 2024 00:29:10 +0300 Subject: [PATCH 1/2] Separate the CR search operation from default --- .../providers/r4/FhirCRPatientResourceProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/main/java/org/openmrs/module/clientregistry/providers/r4/FhirCRPatientResourceProvider.java b/api/src/main/java/org/openmrs/module/clientregistry/providers/r4/FhirCRPatientResourceProvider.java index 7460570..9f8d5e6 100644 --- a/api/src/main/java/org/openmrs/module/clientregistry/providers/r4/FhirCRPatientResourceProvider.java +++ b/api/src/main/java/org/openmrs/module/clientregistry/providers/r4/FhirCRPatientResourceProvider.java @@ -91,7 +91,8 @@ public List getCRPatientById( return patients; } - @Search + + @Operation(name = "$search", idempotent = true) public List searchClientRegistryPatients() { throw new NotImplementedOperationException("search client registry is not yet implemented"); } From 5df41308cffa6d8d8f73a25851517be7f9e0667c Mon Sep 17 00:00:00 2001 From: reagan-meant Date: Mon, 12 Aug 2024 11:24:20 +0300 Subject: [PATCH 2/2] Remove space and unused import --- .../providers/r4/FhirCRPatientResourceProvider.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/api/src/main/java/org/openmrs/module/clientregistry/providers/r4/FhirCRPatientResourceProvider.java b/api/src/main/java/org/openmrs/module/clientregistry/providers/r4/FhirCRPatientResourceProvider.java index 9f8d5e6..206e9d2 100644 --- a/api/src/main/java/org/openmrs/module/clientregistry/providers/r4/FhirCRPatientResourceProvider.java +++ b/api/src/main/java/org/openmrs/module/clientregistry/providers/r4/FhirCRPatientResourceProvider.java @@ -1,7 +1,6 @@ package org.openmrs.module.clientregistry.providers.r4; import ca.uhn.fhir.model.valueset.BundleTypeEnum; -import ca.uhn.fhir.rest.annotation.Search; import ca.uhn.fhir.rest.param.StringParam; import ca.uhn.fhir.rest.param.StringOrListParam; import ca.uhn.fhir.rest.param.TokenParam; @@ -91,7 +90,6 @@ public List getCRPatientById( return patients; } - @Operation(name = "$search", idempotent = true) public List searchClientRegistryPatients() { throw new NotImplementedOperationException("search client registry is not yet implemented");