private Reference readAsReference(Element item) { Reference r = new Reference(); r.setDisplay(item.getNamedChildValue("display")); r.setReference(item.getNamedChildValue("reference")); List<Element> identifier = item.getChildrenByName("identifier"); if (identifier.isEmpty() == false) { r.setIdentifier(readAsIdentifier(identifier.get(0))); } return r; } private Identifier readAsIdentifier(Element item) {
public org.hl7.fhir.dstu3.model.Reference convertReference(org.hl7.fhir.instance.model.Reference src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Reference tgt = new org.hl7.fhir.dstu3.model.Reference(); copyElement(src, tgt); tgt.setReference(src.getReference()); tgt.setDisplay(src.getDisplay()); return tgt; }
public static org.hl7.fhir.dstu3.model.Reference convertReference(org.hl7.fhir.dstu2016may.model.Reference src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Reference tgt = new org.hl7.fhir.dstu3.model.Reference(); copyElement(src, tgt); if (src.hasReference()) tgt.setReference(src.getReference()); if (src.hasDisplay()) tgt.setDisplay(src.getDisplay()); return tgt; }
public org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent convertProvenanceEntityComponent(org.hl7.fhir.instance.model.Provenance.ProvenanceEntityComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent tgt = new org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent(); copyElement(src, tgt); tgt.setRole(convertProvenanceEntityRole(src.getRole())); if (src.hasReference()) tgt.setWhat(new org.hl7.fhir.dstu3.model.Reference().setReference(src.getReference())); tgt.addAgent(convertProvenanceAgentComponent(src.getAgent())); return tgt; }
public Reference addUdi() { //3 Reference t = new Reference(); if (this.udi == null) this.udi = new ArrayList<Reference>(); this.udi.add(t); return t; }
public Reference addSupportingInformation() { //3 Reference t = new Reference(); if (this.supportingInformation == null) this.supportingInformation = new ArrayList<Reference>(); this.supportingInformation.add(t); return t; }
public Reference addSlot() { //3 Reference t = new Reference(); if (this.slot == null) this.slot = new ArrayList<Reference>(); this.slot.add(t); return t; }
public Reference addGoal() { //3 Reference t = new Reference(); if (this.goal == null) this.goal = new ArrayList<Reference>(); this.goal.add(t); return t; }
public Reference addDetail() { //3 Reference t = new Reference(); if (this.detail == null) this.detail = new ArrayList<Reference>(); this.detail.add(t); return t; }
public Reference addSubject() { //3 Reference t = new Reference(); if (this.subject == null) this.subject = new ArrayList<Reference>(); this.subject.add(t); return t; }
if (this.library == null) this.library = new ArrayList<Reference>(); this.library.add(t); return t; } public ActivityDefinition addLibrary(Reference t) { //3 if (t == null)
@Override public Base addChild(String name) throws FHIRException { if (name.equals("coverage")) { this.coverage = new Reference(); return this.coverage; } else if (name.equals("priority")) { throw new FHIRException("Cannot call addChild on a primitive type Account.priority"); } else return super.addChild(name); }
/** * @return {@link #coverage} (Reference to the program or plan identification, underwriter or payor.) */ public Reference getCoverage() { if (this.coverage == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create InsuranceComponent.coverage"); else if (Configuration.doAutoCreate()) this.coverage = new Reference(); // cc return this.coverage; }
/** * @return {@link #patient} (Patient Resource.) */ public Reference getPatient() { if (this.patient == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ClaimResponse.patient"); else if (Configuration.doAutoCreate()) this.patient = new Reference(); // cc return this.patient; }
/** * @return {@link #coverage} (The party(s) that are responsible for payment (or part of) of charges applied to this account (including self-pay). A coverage may only be resposible for specific types of charges, and the sequence of the coverages in the account could be important when processing billing.) */ public Reference getCoverage() { if (this.coverage == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CoverageComponent.coverage"); else if (Configuration.doAutoCreate()) this.coverage = new Reference(); // cc return this.coverage; }
/** * @return {@link #subject} (Identifies the patient, device, practitioner, location or other object the account is associated with.) */ public Reference getSubject() { if (this.subject == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Account.subject"); else if (Configuration.doAutoCreate()) this.subject = new Reference(); // cc return this.subject; }
/** * @return {@link #actor} (The device, practitioner, etc. who performed or participated in the service.) */ public Reference getActor() { if (this.actor == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ChargeItemParticipantComponent.actor"); else if (Configuration.doAutoCreate()) this.actor = new Reference(); // cc return this.actor; }
/** * @return {@link #actor} (A Person, Location/HealthcareService or Device that is participating in the appointment.) */ public Reference getActor() { if (this.actor == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create AppointmentParticipantComponent.actor"); else if (Configuration.doAutoCreate()) this.actor = new Reference(); // cc return this.actor; }
/** * @return {@link #party} (Party which is a signator to this Contract.) */ public Reference getParty() { if (this.party == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create SignatoryComponent.party"); else if (Configuration.doAutoCreate()) this.party = new Reference(); // cc return this.party; }
/** * @return {@link #patient} (The patient/healthcare consumer to whom this consent applies.) */ public Reference getPatient() { if (this.patient == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Consent.patient"); else if (Configuration.doAutoCreate()) this.patient = new Reference(); // cc return this.patient; }