Mentions légales du service

Skip to content
Snippets Groups Projects
Commit b8dbca8d authored by pm's avatar pm
Browse files

qualitygate

parent 6ff1b30e
No related branches found
No related tags found
2 merge requests!5Release/2.0.0,!4Pixm
...@@ -22,6 +22,7 @@ import java.util.List; ...@@ -22,6 +22,7 @@ import java.util.List;
@WebServlet(urlPatterns = {"/fhir_ch/*"}, displayName = "FHIR Server CH") @WebServlet(urlPatterns = {"/fhir_ch/*"}, displayName = "FHIR Server CH")
public class ChHapiFhirServer extends RestfulServer { public class ChHapiFhirServer extends RestfulServer {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@Inject @Inject
private ChPatientResourceProvider chPatientResourceProvider; private ChPatientResourceProvider chPatientResourceProvider;
......
package net.ihe.gazelle.application; package net.ihe.gazelle.application;
import java.net.InetAddress; import ca.uhn.fhir.rest.server.exceptions.*;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.UnknownHostException;
import javax.inject.Inject;
import javax.inject.Named;
import javax.xml.ws.WebServiceException;
import org.hl7.fhir.r4.model.Bundle;
import ca.uhn.fhir.rest.server.exceptions.InternalErrorException;
import ca.uhn.fhir.rest.server.exceptions.InvalidRequestException;
import ca.uhn.fhir.rest.server.exceptions.ResourceGoneException;
import ca.uhn.fhir.rest.server.exceptions.ResourceNotFoundException;
import ca.uhn.fhir.rest.server.exceptions.UnprocessableEntityException;
import net.ihe.gazelle.adapter.connector.BusinessToFhirConverter; import net.ihe.gazelle.adapter.connector.BusinessToFhirConverter;
import net.ihe.gazelle.adapter.connector.DeletionBundle; import net.ihe.gazelle.adapter.connector.DeletionBundle;
import net.ihe.gazelle.adapter.connector.UpdateBundle; import net.ihe.gazelle.adapter.connector.UpdateBundle;
...@@ -29,6 +14,13 @@ import net.ihe.gazelle.framework.preferencesmodelapi.application.NamespaceExcept ...@@ -29,6 +14,13 @@ import net.ihe.gazelle.framework.preferencesmodelapi.application.NamespaceExcept
import net.ihe.gazelle.framework.preferencesmodelapi.application.OperationalPreferencesService; import net.ihe.gazelle.framework.preferencesmodelapi.application.OperationalPreferencesService;
import net.ihe.gazelle.framework.preferencesmodelapi.application.PreferenceException; import net.ihe.gazelle.framework.preferencesmodelapi.application.PreferenceException;
import net.ihe.gazelle.lib.annotations.Package; import net.ihe.gazelle.lib.annotations.Package;
import org.hl7.fhir.r4.model.Bundle;
import javax.inject.Inject;
import javax.inject.Named;
import javax.xml.ws.WebServiceException;
import java.net.MalformedURLException;
import java.net.URL;
@Named("PatientRegistryFeedClient") @Named("PatientRegistryFeedClient")
public class PatientRegistryFeedClient { public class PatientRegistryFeedClient {
...@@ -200,7 +192,7 @@ public class PatientRegistryFeedClient { ...@@ -200,7 +192,7 @@ public class PatientRegistryFeedClient {
*/ */
public Bundle mergePatient(String uuidOriginal, String uuidDuplicated) throws PatientFeedException { public Bundle mergePatient(String uuidOriginal, String uuidDuplicated) throws PatientFeedException {
if (client == null) { if (client == null) {
logger.info("client not set"); logger.info(CLIENT_NOT_SET);
initializeClient(); initializeClient();
} }
if (uuidOriginal == null || uuidOriginal.isBlank()) { if (uuidOriginal == null || uuidOriginal.isBlank()) {
...@@ -229,7 +221,7 @@ public class PatientRegistryFeedClient { ...@@ -229,7 +221,7 @@ public class PatientRegistryFeedClient {
*/ */
public Bundle delete(String uuid) throws PatientFeedException { public Bundle delete(String uuid) throws PatientFeedException {
if (client == null) { if (client == null) {
logger.info("client not set"); logger.info(CLIENT_NOT_SET);
initializeClient(); initializeClient();
} }
if (uuid == null || uuid.isBlank()) { if (uuid == null || uuid.isBlank()) {
......
package net.ihe.gazelle.application; package net.ihe.gazelle.application;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import javax.inject.Inject;
import javax.inject.Named;
import javax.xml.ws.WebServiceException;
import org.hl7.fhir.r4.model.OperationOutcome;
import com.gitb.ps.ProcessingService;
import ca.uhn.fhir.rest.server.exceptions.InternalErrorException; import ca.uhn.fhir.rest.server.exceptions.InternalErrorException;
import ca.uhn.fhir.rest.server.exceptions.InvalidRequestException; import ca.uhn.fhir.rest.server.exceptions.InvalidRequestException;
import ca.uhn.fhir.rest.server.exceptions.ResourceNotFoundException; import ca.uhn.fhir.rest.server.exceptions.ResourceNotFoundException;
import com.gitb.ps.ProcessingService;
import net.ihe.gazelle.adapter.connector.BusinessToFhirConverter; import net.ihe.gazelle.adapter.connector.BusinessToFhirConverter;
import net.ihe.gazelle.adapter.connector.ConversionException; import net.ihe.gazelle.adapter.connector.ConversionException;
import net.ihe.gazelle.adapter.preferences.Preferences; import net.ihe.gazelle.adapter.preferences.Preferences;
...@@ -33,6 +20,15 @@ import net.ihe.gazelle.lib.searchmodelapi.business.SearchCriteria; ...@@ -33,6 +20,15 @@ import net.ihe.gazelle.lib.searchmodelapi.business.SearchCriteria;
import net.ihe.gazelle.lib.searchmodelapi.business.exception.SearchException; import net.ihe.gazelle.lib.searchmodelapi.business.exception.SearchException;
import net.ihe.gazelle.lib.searchmodelapi.business.searchcriterion.SearchCriterion; import net.ihe.gazelle.lib.searchmodelapi.business.searchcriterion.SearchCriterion;
import net.ihe.gazelle.lib.searchmodelapi.business.searchcriterion.StringSearchCriterion; import net.ihe.gazelle.lib.searchmodelapi.business.searchcriterion.StringSearchCriterion;
import org.hl7.fhir.r4.model.OperationOutcome;
import javax.inject.Inject;
import javax.inject.Named;
import javax.xml.ws.WebServiceException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
@Named("patientRegistrySearchClient") @Named("patientRegistrySearchClient")
public class PatientRegistrySearchClient { public class PatientRegistrySearchClient {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment