IDomainResource resource = (IDomainResource) theResource; try { String divAsString = resource.getText().getDivAsString(); List<XMLEvent> xmlEvents = XmlUtil.parse(divAsString); if (xmlEvents != null) {
if (next instanceof IDomainResource) { IDomainResource nextDomain = (IDomainResource) next; contained = nextDomain.getContained(); } else { contained = Collections.emptyList();
private void addResourceData(GenericFhirAuditDataset auditDataset, T resource) { auditDataset.setResourceId(resource.getIdElement()); if (resource.getIdElement().hasResourceType()) { auditDataset.setAffectedResourceType(resource.getIdElement().getResourceType()); } patientIdExtractor.apply(resource).ifPresent(patient -> auditDataset.getPatientIds().add(patient.getResource() != null ? patient.getResource().getIdElement().toUnqualifiedVersionless().getValue() : patient.getReference())); List<? extends IBaseCoding> securityLabels = resource.getMeta().getSecurity(); if (!securityLabels.isEmpty()) { auditDataset.setSecurityLabel(securityLabels.get(0).getCode()); } } }
private void addResourceData(GenericFhirAuditDataset auditDataset, T resource) { auditDataset.setResourceId(resource.getIdElement()); if (resource.getIdElement().hasResourceType()) { auditDataset.setAffectedResourceType(resource.getIdElement().getResourceType()); } patientIdExtractor.apply(resource).ifPresent(patient -> auditDataset.getPatientIds().add(patient.getResource() != null ? patient.getResource().getIdElement().toUnqualifiedVersionless().getValue() : patient.getReference())); List<? extends IBaseCoding> securityLabels = resource.getMeta().getSecurity(); if (!securityLabels.isEmpty()) { auditDataset.setSecurityLabel(securityLabels.get(0).getCode()); } } }
narr = ((IResource) theResource).getText(); } else if (theResource instanceof IDomainResource) { narr = ((IDomainResource) theResource).getText(); } else { narr = null;
IDomainResource next = (IDomainResource) nextBaseRes; Set<String> containedIds = new HashSet<String>(); for (IBaseResource nextContained : next.getContained()) { if (nextContained.getIdElement().isEmpty() == false) { containedIds.add(nextContained.getIdElement().getValue());
narr = ((IResource) theResource).getText(); } else if (theResource instanceof IDomainResource) { narr = ((IDomainResource) theResource).getText(); } else { narr = null;
List<? extends IAnyResource> containedResources = ((IDomainResource) theTarget).getContained(); for (IAnyResource next : containedResources) { String nextId = next.getIdElement().getValue();
writer.append(((IDomainResource) theResource).getText().getDivAsString()); } catch (Exception e) { throw new InternalErrorException(e);
if (next instanceof IDomainResource) { IDomainResource nextDomain = (IDomainResource) next; contained = nextDomain.getContained(); } else { contained = Collections.emptyList();
IDomainResource resource = (IDomainResource) theResource; try { String divAsString = resource.getText().getDivAsString(); List<XMLEvent> xmlEvents = XmlUtil.parse(divAsString); if (xmlEvents != null) {
IDomainResource next = (IDomainResource) nextBaseRes; Set<String> containedIds = new HashSet<String>(); for (IBaseResource nextContained : next.getContained()) { if (nextContained.getIdElement().isEmpty() == false) { containedIds.add(nextContained.getIdElement().getValue());
narr = ((IResource) theResource).getText(); } else if (theResource instanceof IDomainResource) { narr = ((IDomainResource) theResource).getText(); } else { narr = null;
List<? extends IAnyResource> containedResources = ((IDomainResource) theTarget).getContained(); for (IAnyResource next : containedResources) { String nextId = next.getIdElement().getValue();
narr = ((IResource) theResource).getText(); } else if (theResource instanceof IDomainResource) { narr = ((IDomainResource) theResource).getText(); } else { narr = null;
writer.append(((IDomainResource) theResource).getText().getDivAsString()); } catch (Exception e) { throw new InternalErrorException(e);