Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 1b17a0a1 authored by Franck Desaize's avatar Franck Desaize
Browse files

Refactor

parent 6dd06fa5
No related branches found
No related tags found
1 merge request!1Release
package net.ihe.gazelle.application;
public class PatientRegistryXRefSearchClient {
}
......@@ -16,6 +16,7 @@ import net.ihe.gazelle.app.patientregistryapi.business.EntityIdentifier;
import net.ihe.gazelle.app.patientregistryapi.business.PatientAliases;
import net.ihe.gazelle.app.patientregistryapi.business.PersonName;
import net.ihe.gazelle.app.patientregistryxrefsearchclient.adapter.XRefSearchClient;
import net.ihe.gazelle.application.PatientRegistryXRefSearchClient;
import org.hl7.fhir.instance.model.api.IBaseResource;
import org.hl7.fhir.r4.model.*;
import org.hl7.fhir.r4.model.Address.AddressUse;
......@@ -25,6 +26,7 @@ import org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.inject.Inject;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.*;
......@@ -35,6 +37,7 @@ import java.util.*;
* but it is useful to help illustrate how to build a fully-functional server.
*/
public class IhePatientResourceProvider implements IResourceProvider {
private PatientRegistryXRefSearchClient patientRegistryXRefSearchClient;
/**
* The getResourceType method comes from IResourceProvider, and must be overridden to indicate what type of resource this provider supplies.
*/
......@@ -43,6 +46,21 @@ public class IhePatientResourceProvider implements IResourceProvider {
return Patient.class;
}
/**
* constructor for async treatment
*/
public IhePatientResourceProvider() {
}
/**
* constructor for async treatment
*/
@Inject
public IhePatientResourceProvider(PatientRegistryXRefSearchClient patientRegistryXRefSearchClient) {
this.patientRegistryXRefSearchClient = patientRegistryXRefSearchClient;
}
private static final Logger patientLogger = LoggerFactory.getLogger(IhePatientResourceProvider.class);
/**
......
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