@Override public Base addChild(String name) throws FHIRException { if (name.equals("entity")) { this.entity = new Reference(); return this.entity; } else if (name.equals("role")) { return addRole(); } else return super.addChild(name); }
/** * @return {@link #subject} (Who or what the composition is about. The composition can be about a person, (patient or healthcare practitioner), a device (e.g. a machine) or even a group of subjects (such as a document about a herd of livestock, or a set of patients that share a common exposure).) */ public Reference getSubject() { if (this.subject == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Composition.subject"); else if (Configuration.doAutoCreate()) this.subject = new Reference(); // cc return this.subject; }
/** * @return {@link #custodian} (Identifies the organization or group who is responsible for ongoing maintenance of and access to the composition/document information.) */ public Reference getCustodian() { if (this.custodian == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Composition.custodian"); else if (Configuration.doAutoCreate()) this.custodian = new Reference(); // cc return this.custodian; }
/** * @return {@link #actor} (The person responsible for performing or recording the action.) */ public Reference getActor() { if (this.actor == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create DiagnosticOrderEventComponent.actor"); else if (Configuration.doAutoCreate()) this.actor = new Reference(); // cc return this.actor; }
/** * @return {@link #claimResponse} (The Coverages adjudication details.) */ public Reference getClaimResponse() { if (this.claimResponse == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CoverageComponent.claimResponse"); else if (Configuration.doAutoCreate()) this.claimResponse = new Reference(); // cc return this.claimResponse; }
/** * @return {@link #person} (The person other than the subscriber who is to be reimbursed for the claim (the party to whom any benefit is assigned).) */ public Reference getPerson() { if (this.person == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create PayeeComponent.person"); else if (Configuration.doAutoCreate()) this.person = new Reference(); // cc return this.person; }
/** * @return {@link #claimResponse} (The Coverages adjudication details.) */ public Reference getClaimResponse() { if (this.claimResponse == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CoverageComponent.claimResponse"); else if (Configuration.doAutoCreate()) this.claimResponse = new Reference(); // cc return this.claimResponse; }
/** * @return {@link #provider} (The provider which is responsible for the bill, claim pre-determination, pre-authorization.) */ public Reference getProvider() { if (this.provider == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Claim.provider"); else if (Configuration.doAutoCreate()) this.provider = new Reference(); // cc return this.provider; }
/** * @return {@link #enterer} (Person who created the invoice/claim/pre-determination or pre-authorization.) */ public Reference getEnterer() { if (this.enterer == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Claim.enterer"); else if (Configuration.doAutoCreate()) this.enterer = new Reference(); // cc return this.enterer; }
/** * @return {@link #performer} (The diagnostic service that is responsible for issuing the report.) */ public Reference getPerformer() { if (this.performer == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create DiagnosticReport.performer"); else if (Configuration.doAutoCreate()) this.performer = new Reference(); // cc return this.performer; }
/** * @return {@link #location} (The location where this healthcare service may be provided.) */ public Reference getLocation() { if (this.location == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create HealthcareService.location"); else if (Configuration.doAutoCreate()) this.location = new Reference(); // cc return this.location; }
/** * @return {@link #author} (Individual or device responsible for the issue being raised. For example, a decision support application or a pharmacist conducting a medication review.) */ public Reference getAuthor() { if (this.author == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create DetectedIssue.author"); else if (Configuration.doAutoCreate()) this.author = new Reference(); // cc return this.author; }
/** * @return {@link #sourcePatientInfo} (The Patient Information as known when the document was published. May be a reference to a version specific, or contained.) */ public Reference getSourcePatientInfo() { if (this.sourcePatientInfo == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create DocumentReferenceContextComponent.sourcePatientInfo"); else if (Configuration.doAutoCreate()) this.sourcePatientInfo = new Reference(); // cc return this.sourcePatientInfo; }
/** * @return {@link #ref} (Related Resource to this DocumentReference. If both id and ref are present they shall refer to the same thing.) */ public Reference getRef() { if (this.ref == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create DocumentReferenceContextRelatedComponent.ref"); else if (Configuration.doAutoCreate()) this.ref = new Reference(); // cc return this.ref; }
/** * @return {@link #request} (Information about the request for this event.) */ public Reference getRequest() { if (this.request == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ConformanceMessagingEventComponent.request"); else if (Configuration.doAutoCreate()) this.request = new Reference(); // cc return this.request; }
/** * @return {@link #sender} (The entity (e.g. person, organization, clinical information system, or device) which is to be the source of the communication.) */ public Reference getSender() { if (this.sender == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CommunicationRequest.sender"); else if (Configuration.doAutoCreate()) this.sender = new Reference(); // cc return this.sender; }
/** * @return {@link #encounter} (The encounter within which the communication request was created.) */ public Reference getEncounter() { if (this.encounter == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CommunicationRequest.encounter"); else if (Configuration.doAutoCreate()) this.encounter = new Reference(); // cc return this.encounter; }
/** * @return {@link #subject} (The patient who will use the device.) */ public Reference getSubject() { if (this.subject == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create DeviceUseRequest.subject"); else if (Configuration.doAutoCreate()) this.subject = new Reference(); // cc return this.subject; }
/** * @return {@link #appointment} (Appointment that this response is replying to.) */ public Reference getAppointment() { if (this.appointment == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create AppointmentResponse.appointment"); else if (Configuration.doAutoCreate()) this.appointment = new Reference(); // cc return this.appointment; }
public org.hl7.fhir.instance.model.Reference convertReference(org.hl7.fhir.dstu3.model.Reference src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Reference tgt = new org.hl7.fhir.instance.model.Reference(); copyElement(src, tgt); tgt.setReference(src.getReference()); tgt.setDisplay(src.getDisplay()); return tgt; }