--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To post to this group, send email to hapi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/9fc6734e-65d0-40c2-a80c-2daaeb45ef68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
String system = "urn:ietf:rfc:3986"; String identifierWithUrnPrefix = "urn:uuid:"+identifier;
try { SearchParameterMap paramMap = new SearchParameterMap(); StringParam param = new StringParam(); param.setValue(system + "|" + identifierWithUrnPrefix); paramMap.add("identifier", param); IBundleProvider bundle = myPatientDao.search(paramMap); logger.info("Did internal patient call. Got " + bundle.size() + " results." + bundle.toString()); if (bundle.size() > 0) { List<IBaseResource> resources = bundle.getResources(0,1); logger.info("Id of found resource:"+resources.get(0).getIdElement().getIdPart()); } } catch(Exception e) { logger.error("While doing internal call:"+e,e); }
if (patientMapping == null) { patientMapping = new LinkedHashMap<>(); }
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/e6fc7c0d-3cda-4271-8925-4b5c0be76d9a%40googlegroups.com.