@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -925155509: return (Base) getReferenceElement(); case 3575610: return getTypeElement(); case -1618432855: return getIdentifier(); case 1671764162: return getDisplayElement(); default: return super.makeProperty(hash, name); } }
public org.hl7.fhir.instance.model.DocumentReference.DocumentReferenceContextRelatedComponent convertDocumentReferenceContextRelatedComponent(org.hl7.fhir.r4.model.Reference src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.DocumentReference.DocumentReferenceContextRelatedComponent tgt = new org.hl7.fhir.instance.model.DocumentReference.DocumentReferenceContextRelatedComponent(); copyElement(src, tgt); tgt.setIdentifier(convertIdentifier(src.getIdentifier())); tgt.setRef(convertReference(src)); return tgt; }
public org.hl7.fhir.instance.model.AuditEvent.AuditEventSourceComponent convertAuditEventSourceComponent(org.hl7.fhir.r4.model.AuditEvent.AuditEventSourceComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.instance.model.AuditEvent.AuditEventSourceComponent(); copyElement(src, tgt); tgt.setSite(src.getSite()); if (src.hasObserver()) tgt.setIdentifier(convertIdentifier(src.getObserver().getIdentifier())); for (org.hl7.fhir.r4.model.Coding t : src.getType()) tgt.addType(convertCoding(t)); return tgt; }
if (Utilities.noString(reference.getIdentifier().getSystem()) && Utilities.noString(reference.getIdentifier().getValue())) { warning(errors, IssueType.STRUCTURE, element.line(), element.col(), path, !Utilities.noString(element.getNamedChildValue("display")), "A Reference without an actual reference or identifier should have a display");
public org.hl7.fhir.instance.model.AuditEvent.AuditEventObjectComponent convertAuditEventEntityComponent(org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.AuditEvent.AuditEventObjectComponent tgt = new org.hl7.fhir.instance.model.AuditEvent.AuditEventObjectComponent(); copyElement(src, tgt); if (src.hasWhat()) { if (src.getWhat().hasIdentifier()) tgt.setIdentifier(convertIdentifier(src.getWhat().getIdentifier())); if (src.getWhat().hasReference() || src.getWhat().hasDisplay() || src.getWhat().hasExtension() || src.getWhat().hasId()) tgt.setReference(convertReference(src.getWhat())); } tgt.setType(convertCoding(src.getType())); tgt.setRole(convertCoding(src.getRole())); tgt.setLifecycle(convertCoding(src.getLifecycle())); for (org.hl7.fhir.r4.model.Coding t : src.getSecurityLabel()) tgt.addSecurityLabel(convertCoding(t)); tgt.setName(src.getName()); tgt.setDescription(src.getDescription()); tgt.setQuery(src.getQuery()); for (org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityDetailComponent t : src.getDetail()) tgt.addDetail(convertAuditEventEntityDetailComponent(t)); return tgt; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -925155509: return (Base) getReferenceElement(); case 3575610: return getTypeElement(); case -1618432855: return getIdentifier(); case 1671764162: return getDisplayElement(); default: return super.makeProperty(hash, name); } }
public org.hl7.fhir.instance.model.AuditEvent.AuditEventParticipantComponent convertAuditEventAgentComponent(org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.AuditEvent.AuditEventParticipantComponent tgt = new org.hl7.fhir.instance.model.AuditEvent.AuditEventParticipantComponent(); copyElement(src, tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getRole()) tgt.addRole(convertCodeableConcept(t)); if (src.hasWho()) { if (src.getWho().hasIdentifier()) tgt.setUserId(convertIdentifier(src.getWho().getIdentifier())); if (src.getWho().hasReference() || src.getWho().hasDisplay() || src.getWho().hasExtension() || src.getWho().hasId()) tgt.setReference(convertReference(src.getWho())); } tgt.setAltId(src.getAltId()); tgt.setName(src.getName()); tgt.setRequestor(src.getRequestor()); tgt.setLocation(convertReference(src.getLocation())); for (org.hl7.fhir.r4.model.UriType t : src.getPolicy()) tgt.addPolicy(t.getValue()); tgt.setMedia(convertCoding(src.getMedia())); tgt.setNetwork(convertAuditEventAgentNetworkComponent(src.getNetwork())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getPurposeOfUse()) for (org.hl7.fhir.r4.model.Coding cc : t.getCoding()) tgt.addPurposeOfUse(convertCoding(cc)); return tgt; }
public org.hl7.fhir.instance.model.DocumentReference.DocumentReferenceContextRelatedComponent convertDocumentReferenceContextRelatedComponent(org.hl7.fhir.r4.model.Reference src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.DocumentReference.DocumentReferenceContextRelatedComponent tgt = new org.hl7.fhir.instance.model.DocumentReference.DocumentReferenceContextRelatedComponent(); copyElement(src, tgt); tgt.setIdentifier(convertIdentifier(src.getIdentifier())); tgt.setRef(convertReference(src)); return tgt; }
public org.hl7.fhir.instance.model.AuditEvent.AuditEventSourceComponent convertAuditEventSourceComponent(org.hl7.fhir.r4.model.AuditEvent.AuditEventSourceComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.AuditEvent.AuditEventSourceComponent tgt = new org.hl7.fhir.instance.model.AuditEvent.AuditEventSourceComponent(); copyElement(src, tgt); tgt.setSite(src.getSite()); if (src.hasObserver()) tgt.setIdentifier(convertIdentifier(src.getObserver().getIdentifier())); for (org.hl7.fhir.r4.model.Coding t : src.getType()) tgt.addType(convertCoding(t)); return tgt; }
if (Utilities.noString(reference.getIdentifier().getSystem()) && Utilities.noString(reference.getIdentifier().getValue())) { warning(errors, IssueType.STRUCTURE, element.line(), element.col(), path, !Utilities.noString(element.getNamedChildValue("display")), "A Reference without an actual reference or identifier should have a display");
public org.hl7.fhir.instance.model.AuditEvent.AuditEventObjectComponent convertAuditEventEntityComponent(org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.AuditEvent.AuditEventObjectComponent tgt = new org.hl7.fhir.instance.model.AuditEvent.AuditEventObjectComponent(); copyElement(src, tgt); if (src.hasWhat()) { if (src.getWhat().hasIdentifier()) tgt.setIdentifier(convertIdentifier(src.getWhat().getIdentifier())); if (src.getWhat().hasReference() || src.getWhat().hasDisplay() || src.getWhat().hasExtension() || src.getWhat().hasId()) tgt.setReference(convertReference(src.getWhat())); } tgt.setType(convertCoding(src.getType())); tgt.setRole(convertCoding(src.getRole())); tgt.setLifecycle(convertCoding(src.getLifecycle())); for (org.hl7.fhir.r4.model.Coding t : src.getSecurityLabel()) tgt.addSecurityLabel(convertCoding(t)); tgt.setName(src.getName()); tgt.setDescription(src.getDescription()); tgt.setQuery(src.getQuery()); for (org.hl7.fhir.r4.model.AuditEvent.AuditEventEntityDetailComponent t : src.getDetail()) tgt.addDetail(convertAuditEventEntityDetailComponent(t)); return tgt; }
public org.hl7.fhir.instance.model.AuditEvent.AuditEventParticipantComponent convertAuditEventAgentComponent(org.hl7.fhir.r4.model.AuditEvent.AuditEventAgentComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.AuditEvent.AuditEventParticipantComponent tgt = new org.hl7.fhir.instance.model.AuditEvent.AuditEventParticipantComponent(); copyElement(src, tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getRole()) tgt.addRole(convertCodeableConcept(t)); if (src.hasWho()) { if (src.getWho().hasIdentifier()) tgt.setUserId(convertIdentifier(src.getWho().getIdentifier())); if (src.getWho().hasReference() || src.getWho().hasDisplay() || src.getWho().hasExtension() || src.getWho().hasId()) tgt.setReference(convertReference(src.getWho())); } tgt.setAltId(src.getAltId()); tgt.setName(src.getName()); tgt.setRequestor(src.getRequestor()); tgt.setLocation(convertReference(src.getLocation())); for (org.hl7.fhir.r4.model.UriType t : src.getPolicy()) tgt.addPolicy(t.getValue()); tgt.setMedia(convertCoding(src.getMedia())); tgt.setNetwork(convertAuditEventAgentNetworkComponent(src.getNetwork())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getPurposeOfUse()) for (org.hl7.fhir.r4.model.Coding cc : t.getCoding()) tgt.addPurposeOfUse(convertCoding(cc)); return tgt; }