private ArrayList<TagDefinition> toTagList(IBaseMetaType theMeta) { ArrayList<TagDefinition> retVal = new ArrayList<TagDefinition>(); for (IBaseCoding next : theMeta.getTag()) { retVal.add(new TagDefinition(TagTypeEnum.TAG, next.getSystem(), next.getCode(), next.getDisplay())); } for (IBaseCoding next : theMeta.getSecurity()) { retVal.add(new TagDefinition(TagTypeEnum.SECURITY_LABEL, next.getSystem(), next.getCode(), next.getDisplay())); } for (IPrimitiveType<String> next : theMeta.getProfile()) { retVal.add(new TagDefinition(TagTypeEnum.PROFILE, BaseHapiFhirDao.NS_JPA_PROFILE, next.getValue(), null)); } return retVal; }
filterCodingsWithNoCodeOrSystem(metaValue.getSecurity());
totalMetaCount += res.getMeta().getTag().size(); totalMetaCount += res.getMeta().getProfile().size(); totalMetaCount += res.getMeta().getSecurity().size();
List<? extends IBaseCoding> securityLabels = theResource.getMeta().getSecurity(); if (securityLabels != null) { for (IBaseCoding next : securityLabels) {
res.getMeta().getSecurity().clear(); res.getMeta().setLastUpdated(null); res.getMeta().setVersionId(null);
private ArrayList<TagDefinition> toTagList(IBaseMetaType theMeta) { ArrayList<TagDefinition> retVal = new ArrayList<TagDefinition>(); for (IBaseCoding next : theMeta.getTag()) { retVal.add(new TagDefinition(TagTypeEnum.TAG, next.getSystem(), next.getCode(), next.getDisplay())); } for (IBaseCoding next : theMeta.getSecurity()) { retVal.add(new TagDefinition(TagTypeEnum.SECURITY_LABEL, next.getSystem(), next.getCode(), next.getDisplay())); } for (IPrimitiveType<String> next : theMeta.getProfile()) { retVal.add(new TagDefinition(TagTypeEnum.PROFILE, BaseHapiFhirDao.NS_JPA_PROFILE, next.getValue(), null)); } return retVal; }
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()); } } }
filterCodingsWithNoCodeOrSystem(metaValue.getSecurity());
totalMetaCount += res.getMeta().getTag().size(); totalMetaCount += res.getMeta().getProfile().size(); totalMetaCount += res.getMeta().getSecurity().size();
List<? extends IBaseCoding> securityLabels = theResource.getMeta().getSecurity(); if (securityLabels != null) { for (IBaseCoding next : securityLabels) {
res.getMeta().getSecurity().clear(); res.getMeta().setLastUpdated(null); res.getMeta().setVersionId(null);