本文整理汇总了Java中org.hl7.fhir.dstu3.model.Practitioner类的典型用法代码示例。如果您正苦于以下问题:Java Practitioner类的具体用法?Java Practitioner怎么用?Java Practitioner使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Practitioner类属于org.hl7.fhir.dstu3.model包,在下文中一共展示了Practitioner类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: triggerPractitionerOrchestrator
import org.hl7.fhir.dstu3.model.Practitioner; //导入依赖的package包/类
private void triggerPractitionerOrchestrator(List<Practitioner> listPractitionerToProcess,
PractitionerOrchestratorActor.ResolvePractitionerRequest practitionerRequest)
{
this.listOfValidPractitioner=listPractitionerToProcess;
nbrOfSearchRequestToWaitFor=this.listOfValidPractitioner.size();
List<String> listOfId=new ArrayList<>();
for(Practitioner oPractitionerToIdentify:listOfValidPractitioner)
{
listOfId.add(oPractitionerToIdentify.getId().getIdPart());
}
listIdsPractitionerUsedForSearch=listOfId;
practitionerRequest=new PractitionerOrchestratorActor.ResolvePractitionerRequest(
originalRequest.getRequestHandler(),
getSelf(),
listOfId
);
ActorRef practitionerRequestOrchestrator=getContext().actorOf(
Props.create(PractitionerOrchestratorActor.class,config));
practitionerRequestOrchestrator.tell(practitionerRequest,getSelf());
}
开发者ID:gerard-bisama,项目名称:DHIS2-fhir-lab-app,代码行数:22,代码来源:DefaultOrchestrator.java
示例2: setPractitionerProvider
import org.hl7.fhir.dstu3.model.Practitioner; //导入依赖的package包/类
private Practitioner setPractitionerProvider(Set<IndividualProvider> individualProviders) {
Practitioner sourcePractitionerResource = new Practitioner();
individualProviders.forEach((IndividualProvider individualProvider) ->
{
sourcePractitionerResource.setId(new IdType(individualProvider.getNpi()));
sourcePractitionerResource.addIdentifier().setSystem(fhirProperties.getNpi().getSystem()).setValue(individualProvider.getNpi());
//setting the name element
HumanName indName = new HumanName();
indName.setFamily(individualProvider.getLastName());
indName.addGiven(individualProvider.getFirstName());
sourcePractitionerResource.addName(indName);
//setting the address
sourcePractitionerResource.addAddress().addLine(individualProvider.getFirstLinePracticeLocationAddress())
.setCity(individualProvider.getPracticeLocationAddressCityName())
.setState(individualProvider.getPracticeLocationAddressStateName())
.setPostalCode(individualProvider.getPracticeLocationAddressPostalCode());
});
return sourcePractitionerResource;
}
开发者ID:bhits,项目名称:pcm-api,代码行数:23,代码来源:FhirConsentServiceImpl.java
示例3: getInterpreterAdapterTarget
import org.hl7.fhir.dstu3.model.Practitioner; //导入依赖的package包/类
public List<qicorepractitionerAdapter> getInterpreterAdapterTarget()
{
List<Reference> interpreter = adaptedClass.getInterpreter();
List<qicorepractitionerAdapter> list = new ArrayList<qicorepractitionerAdapter>();
if ( !interpreter.isEmpty() ){
for (Reference reference : interpreter){
qicorepractitionerAdapter profiledType = new qicorepractitionerAdapter();
profiledType.setAdaptee((org.hl7.fhir.dstu3.model.Practitioner) reference.getResource());
list.add(profiledType);
}
return list;
}
else
{
return null;
}
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:18,代码来源:qicoreimagingstudyAdapter.java
示例4: identifyPractitionerToUpdate
import org.hl7.fhir.dstu3.model.Practitioner; //导入依赖的package包/类
void identifyPractitionerToUpdate(List<String> bundleSearchResultSet,String serverRepoURI)
{
//List<Practitioner> ListIdentifiedForUpdateTarget=new ArrayList<>();
try
{
for (String oBundleSearchResult:bundleSearchResultSet)
{
for (Practitioner oPractitioner :resourceBundle.extractPractitionerFromBundleString(oBundleSearchResult,serverRepoURI))
{
if(listIdsPractitionerUsedForSearch.contains(oPractitioner.getId().getIdPart()))
{
//this.listOfPractitionerToUpdate.add(oPractitioner);
Practitioner tempPractitioner=getPractitionerFromValidList(oPractitioner.getId().getIdPart());
if(tempPractitioner!=null)
{
this.listOfPractitionerToUpdate.add(tempPractitioner);
}
}
else
{
continue;
}
}
//ListIdentifiedForUpdateTarget.addAll(resourceBundle.extractPractitionerFromBundleString(oBundleSearchResult));
}
}
catch (Exception exc)
{
log.error(exc.getMessage());
//return ;
}
}
开发者ID:gerard-bisama,项目名称:DHIS2-fhir-lab-app,代码行数:34,代码来源:DefaultOrchestrator.java
示例5: getPractitionerFromValidList
import org.hl7.fhir.dstu3.model.Practitioner; //导入依赖的package包/类
Practitioner getPractitionerFromValidList(String id)
{
for (Practitioner oPracitioner:this.listOfValidPractitioner) {
if(oPracitioner.getId().getIdPart().equals(id))
{
return oPracitioner;
}
else
{
continue;
}
}
return null;
}
开发者ID:gerard-bisama,项目名称:DHIS2-fhir-lab-app,代码行数:15,代码来源:DefaultOrchestrator.java
示例6: testTransformer
import org.hl7.fhir.dstu3.model.Practitioner; //导入依赖的package包/类
@Test
public void testTransformer(){
PractitionerEntity practitionerEntity = new PractitionerEntityBuilder()
.addName("Dr", "Jenny", "Jones")
.addAddress("Church Lane Surgery", "Holmfirth", null,
"Halifax", "West Yorkshire", "HX1 2TT")
.build();
Practitioner practitioner = transformer.transform(practitionerEntity);
assertThat(practitioner, not(nullValue()));
assertThat(practitioner.getId(), not(nullValue()));
assertThat(practitioner.getId(), equalTo((new Long(PractitionerEntityBuilder.DEFAULT_ID)).toString()));
assertThat(practitioner.getActive(), equalTo(true));
List<HumanName> practitionerNames = practitioner.getName();
assertThat(practitionerNames, not(nullValue()));
assertThat(practitionerNames.size(), equalTo(1));
//assertThat(practitionerNames.get(0).getUse(), equalTo(HumanName.NameUse.USUAL));
HumanName name = practitionerNames.get(0);
assertThat(name.getPrefixAsSingleString(), equalTo("Dr"));
assertThat(name.getGivenAsSingleString(), equalTo("Jenny"));
assertThat(name.getFamily(), equalTo("Jones"));
assertThat(practitioner.getAddress(), not(nullValue()));
List<Address> addresses = practitioner.getAddress();
assertThat(addresses.size(), equalTo(1));
Address address = addresses.get(0);
assertThat(address.getLine().get(0).getValue(), equalTo("Church Lane Surgery"));
assertThat(address.getLine().get(1).getValue(), equalTo("Holmfirth"));
assertThat(address.getLine().size(), equalTo(2));
assertThat(address.getDistrict(), equalTo("West Yorkshire"));
assertThat(address.getCity(), equalTo("Halifax"));
assertThat(address.getPostalCode(), equalTo("HX1 2TT"));
assertThat(address.getUse(), equalTo(Address.AddressUse.WORK));
}
开发者ID:nhsconnect,项目名称:careconnect-reference-implementation,代码行数:38,代码来源:PractitionerEntityToFHIRPractitionerTransformerTest.java
示例7: getInformationSourcePractitionerAdapterTarget
import org.hl7.fhir.dstu3.model.Practitioner; //导入依赖的package包/类
public qicorepractitionerAdapter getInformationSourcePractitionerAdapterTarget()
{
if (adaptedClass.getInformationSource().getResource() instanceof org.hl7.fhir.dstu3.model.Practitioner)
{
qicorepractitionerAdapter profiledType = new qicorepractitionerAdapter();
profiledType
.setAdaptee((org.hl7.fhir.dstu3.model.Practitioner) adaptedClass
.getInformationSource().getResource());
return profiledType;
}
else
{
return null;
}
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:16,代码来源:qicoremedicationstatementAdapter.java
示例8: getSenderPractitionerAdapterTarget
import org.hl7.fhir.dstu3.model.Practitioner; //导入依赖的package包/类
public qicorepractitionerAdapter getSenderPractitionerAdapterTarget()
{
if (adaptedClass.getSender().getResource() instanceof org.hl7.fhir.dstu3.model.Practitioner)
{
qicorepractitionerAdapter profiledType = new qicorepractitionerAdapter();
profiledType
.setAdaptee((org.hl7.fhir.dstu3.model.Practitioner) adaptedClass
.getSender().getResource());
return profiledType;
}
else
{
return null;
}
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:16,代码来源:qicorecommunicationrequestAdapter.java
示例9: getRecipientPractitionerTarget
import org.hl7.fhir.dstu3.model.Practitioner; //导入依赖的package包/类
public List<Practitioner> getRecipientPractitionerTarget() {
List<org.hl7.fhir.dstu3.model.Practitioner> items = new java.util.ArrayList<>();
List<org.hl7.fhir.dstu3.model.Resource> resources = adaptedClass
.getRecipientTarget();
for (org.hl7.fhir.dstu3.model.Resource resource : resources) {
items.add((org.hl7.fhir.dstu3.model.Practitioner) resource);
}
return items;
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:10,代码来源:qicorecommunicationrequestAdapter.java
示例10: getRole
import org.hl7.fhir.dstu3.model.Practitioner; //导入依赖的package包/类
public List<Practitioner.PractitionerRoleComponent> getRole()
{
try
{
return adaptedClass.getRole();
}
catch (Exception e)
{
throw new RuntimeException("Error getting Role", e);
}
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:12,代码来源:qicorepractitionerAdapter.java
示例11: getPerformerPractitionerAdapterTarget
import org.hl7.fhir.dstu3.model.Practitioner; //导入依赖的package包/类
public qicorepractitionerAdapter getPerformerPractitionerAdapterTarget()
{
if (adaptedClass.getPerformer().getResource() instanceof org.hl7.fhir.dstu3.model.Practitioner)
{
qicorepractitionerAdapter profiledType = new qicorepractitionerAdapter();
profiledType
.setAdaptee((org.hl7.fhir.dstu3.model.Practitioner) adaptedClass
.getPerformer().getResource());
return profiledType;
}
else
{
return null;
}
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:16,代码来源:qicoremedicationadministrationAdapter.java
示例12: getRecorderPractitionerAdapterTarget
import org.hl7.fhir.dstu3.model.Practitioner; //导入依赖的package包/类
public qicorepractitionerAdapter getRecorderPractitionerAdapterTarget()
{
if (adaptedClass.getRecorder().getResource() instanceof org.hl7.fhir.dstu3.model.Practitioner)
{
qicorepractitionerAdapter profiledType = new qicorepractitionerAdapter();
profiledType
.setAdaptee((org.hl7.fhir.dstu3.model.Practitioner) adaptedClass
.getRecorder().getResource());
return profiledType;
}
else
{
return null;
}
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:16,代码来源:qicoreallergyintoleranceAdapter.java
示例13: getRequesterAdapterTarget
import org.hl7.fhir.dstu3.model.Practitioner; //导入依赖的package包/类
public qicorepractitionerAdapter getRequesterAdapterTarget()
{
if (adaptedClass.getRequester().getResource() instanceof org.hl7.fhir.dstu3.model.Practitioner)
{
qicorepractitionerAdapter profiledType = new qicorepractitionerAdapter();
profiledType
.setAdaptee((org.hl7.fhir.dstu3.model.Practitioner) adaptedClass
.getRequester().getResource());
return profiledType;
}
else
{
return null;
}
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:16,代码来源:qicorediagnosticrequestAdapter.java
示例14: getOrdererPractitionerAdapterTarget
import org.hl7.fhir.dstu3.model.Practitioner; //导入依赖的package包/类
public qicorepractitionerAdapter getOrdererPractitionerAdapterTarget()
{
if (adaptedClass.getOrderer().getResource() instanceof org.hl7.fhir.dstu3.model.Practitioner)
{
qicorepractitionerAdapter profiledType = new qicorepractitionerAdapter();
profiledType
.setAdaptee((org.hl7.fhir.dstu3.model.Practitioner) adaptedClass
.getOrderer().getResource());
return profiledType;
}
else
{
return null;
}
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:16,代码来源:qicoreprocedurerequestAdapter.java
示例15: extractNpiFromFhirProviderResource
import org.hl7.fhir.dstu3.model.Practitioner; //导入依赖的package包/类
@Override
public String extractNpiFromFhirProviderResource(DomainResource providerResource) throws ConsentGenException {
ResourceType providerResourceType = providerResource.getResourceType();
String providerNpi;
if (providerResourceType == ResourceType.Organization) {
Organization providerOrgResource = (Organization) providerResource;
providerNpi = providerOrgResource.getIdentifier().stream()
.filter(i -> (i.hasSystem()) && (i.getSystem().equalsIgnoreCase(PROVIDER_ID_CODE_SYSTEM)))
.findFirst()
.map(Identifier::getValue)
.orElseThrow(() ->
new ConsentGenException("Unable to find a provider identifier in the FHIR consent which is under the code system " + PROVIDER_ID_CODE_SYSTEM)
);
} else if (providerResourceType == ResourceType.Practitioner) {
Practitioner providerIndvResource = (Practitioner) providerResource;
providerNpi = providerIndvResource.getIdentifier().stream()
.filter(i -> (i.hasSystem()) && (i.getSystem().equalsIgnoreCase(PROVIDER_ID_CODE_SYSTEM)))
.findFirst()
.map(Identifier::getValue)
.orElseThrow(() ->
new ConsentGenException("Unable to find a provider identifier in the FHIR consent which is under the code system " + PROVIDER_ID_CODE_SYSTEM)
);
} else {
throw new ConsentGenException("Invalid provider resource type passed to extractNpiFromFhirProviderResource; ResourceType of providerResource must be either 'Organization' or 'Practitioner'");
}
return providerNpi;
}
开发者ID:bhits,项目名称:common-libraries,代码行数:32,代码来源:ConsentBuilderImpl.java
示例16: getDispenserAdapterTarget
import org.hl7.fhir.dstu3.model.Practitioner; //导入依赖的package包/类
public qicorepractitionerAdapter getDispenserAdapterTarget()
{
if (adaptedClass.getDispenser().getResource() instanceof org.hl7.fhir.dstu3.model.Practitioner)
{
qicorepractitionerAdapter profiledType = new qicorepractitionerAdapter();
profiledType
.setAdaptee((org.hl7.fhir.dstu3.model.Practitioner) adaptedClass
.getDispenser().getResource());
return profiledType;
}
else
{
return null;
}
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:16,代码来源:qicoremedicationdispenseAdapter.java
示例17: getReceiverPractitionerTarget
import org.hl7.fhir.dstu3.model.Practitioner; //导入依赖的package包/类
public List<Practitioner> getReceiverPractitionerTarget() {
List<org.hl7.fhir.dstu3.model.Practitioner> items = new java.util.ArrayList<>();
List<org.hl7.fhir.dstu3.model.Resource> resources = adaptedClass
.getReceiverTarget();
for (org.hl7.fhir.dstu3.model.Resource resource : resources) {
items.add((org.hl7.fhir.dstu3.model.Practitioner) resource);
}
return items;
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:10,代码来源:qicoremedicationdispenseAdapter.java
示例18: getRequesterPractitionerAdapterTarget
import org.hl7.fhir.dstu3.model.Practitioner; //导入依赖的package包/类
public qicorepractitionerAdapter getRequesterPractitionerAdapterTarget()
{
if (adaptedClass.getRequester().getResource() instanceof org.hl7.fhir.dstu3.model.Practitioner)
{
qicorepractitionerAdapter profiledType = new qicorepractitionerAdapter();
profiledType
.setAdaptee((org.hl7.fhir.dstu3.model.Practitioner) adaptedClass
.getRequester().getResource());
return profiledType;
}
else
{
return null;
}
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:16,代码来源:qicorecommunicationrequestAdapter.java
示例19: getAuthorPractitionerAdapterTarget
import org.hl7.fhir.dstu3.model.Practitioner; //导入依赖的package包/类
public qicorepractitionerAdapter getAuthorPractitionerAdapterTarget()
{
if (adaptedClass.getAuthor().getResource() instanceof org.hl7.fhir.dstu3.model.Practitioner)
{
qicorepractitionerAdapter profiledType = new qicorepractitionerAdapter();
profiledType
.setAdaptee((org.hl7.fhir.dstu3.model.Practitioner) adaptedClass
.getAuthor().getResource());
return profiledType;
}
else
{
return null;
}
}
开发者ID:cqframework,项目名称:qicore_model,代码行数:16,代码来源:qicoreadverseeventAdapter.java
示例20: removeDuplicateInTheList
import org.hl7.fhir.dstu3.model.Practitioner; //导入依赖的package包/类
public static List<Practitioner> removeDuplicateInTheList(List<Practitioner> listOfPractitioner)
{
int counter=0;
List<Practitioner> cleanedList=new ArrayList<>();
for(Practitioner oPractitioner :listOfPractitioner)
{
if(counter==0)
{
cleanedList.add(oPractitioner);
}
else
{
if(oPractitioner.getIdentifier().size()>0)
{
boolean isDuplicate=false;
for (Practitioner cleanedPractitioner: cleanedList)
{
if(cleanedPractitioner.getIdentifier().size()>0)
{
List<IdentifierDt> practitionerListIdentifier=oPractitioner.getIdentifier();
List<IdentifierDt> cleanedListIdentifier=cleanedPractitioner.getIdentifier();
for (IdentifierDt practitionerIdentifier:practitionerListIdentifier)
{
for (IdentifierDt cleanedIdentifier:cleanedListIdentifier)
{
if(practitionerIdentifier.getSystem().equals(cleanedIdentifier.getSystem())
&& practitionerIdentifier.getValue().equals(cleanedIdentifier.getValue()))
{
isDuplicate=true;
break;
}
}
if(isDuplicate)
{
break;
}
}
if(isDuplicate)
{
break;
}
}
else {
continue;
}
}
if(!isDuplicate)
{
cleanedList.add(oPractitioner);
continue;
}
}
else
{
cleanedList.add(oPractitioner);
}
}
counter++;
}
return cleanedList;
}
开发者ID:gerard-bisama,项目名称:DHIS2-fhir-lab-app,代码行数:63,代码来源:FhirMediatorUtilities.java
注:本文中的org.hl7.fhir.dstu3.model.Practitioner类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论