public Account addAccountTarget() { Account r = new Account(); if (this.accountTarget == null) this.accountTarget = new ArrayList<Account>(); this.accountTarget.add(r); return r; } /** * @return {@link #hospitalization} (Details about the admission to a healthcare service.) */ public EncounterHospitalizationComponent getHospitalization() {
/** * @deprecated Use Reference#setResource(IBaseResource) instead */ @Deprecated public Account addAccountTarget() { Account r = new Account(); if (this.accountTarget == null) this.accountTarget = new ArrayList<Account>(); this.accountTarget.add(r); return r; }
/** * @deprecated Use Reference#setResource(IBaseResource) instead */ @Deprecated public Account addAccountTarget() { Account r = new Account(); if (this.accountTarget == null) this.accountTarget = new ArrayList<Account>(); this.accountTarget.add(r); return r; }
public org.hl7.fhir.dstu3.model.Account convertAccount(org.hl7.fhir.instance.model.Account src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Account tgt = new org.hl7.fhir.dstu3.model.Account(); copyDomainResource(src, tgt); for (org.hl7.fhir.instance.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); if (src.hasName()) tgt.setName(src.getName()); if (src.hasType()) tgt.setType(convertCodeableConcept(src.getType())); tgt.setStatus(convertAccountStatus(src.getStatus())); tgt.setActive(convertPeriod(src.getActivePeriod())); tgt.setBalance(convertMoney(src.getBalance())); // tgt.setCoveragePeriod(convertPeriod(src.getCoveragePeriod())); tgt.setSubject(convertReference(src.getSubject())); tgt.setOwner(convertReference(src.getOwner())); tgt.setDescription(src.getDescription()); return tgt; }
public Account copy() { Account dst = new Account(); copyValues(dst); if (identifier != null) { dst.identifier = new ArrayList<Identifier>(); for (Identifier i : identifier) dst.identifier.add(i.copy()); }; dst.status = status == null ? null : status.copy(); dst.type = type == null ? null : type.copy(); dst.name = name == null ? null : name.copy(); dst.subject = subject == null ? null : subject.copy(); dst.period = period == null ? null : period.copy(); dst.active = active == null ? null : active.copy(); dst.balance = balance == null ? null : balance.copy(); if (coverage != null) { dst.coverage = new ArrayList<CoverageComponent>(); for (CoverageComponent i : coverage) dst.coverage.add(i.copy()); }; dst.owner = owner == null ? null : owner.copy(); dst.description = description == null ? null : description.copy(); if (guarantor != null) { dst.guarantor = new ArrayList<GuarantorComponent>(); for (GuarantorComponent i : guarantor) dst.guarantor.add(i.copy()); }; return dst; }
return new ReferralRequest(); if ("Account".equals(name)) return new Account(); if ("DocumentManifest".equals(name)) return new DocumentManifest();
public org.hl7.fhir.dstu3.model.Account convertAccount(org.hl7.fhir.instance.model.Account src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Account tgt = new org.hl7.fhir.dstu3.model.Account(); copyDomainResource(src, tgt); for (org.hl7.fhir.instance.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); if (src.hasName()) tgt.setName(src.getName()); if (src.hasType()) tgt.setType(convertCodeableConcept(src.getType())); tgt.setStatus(convertAccountStatus(src.getStatus())); tgt.setActive(convertPeriod(src.getActivePeriod())); tgt.setBalance(convertMoney(src.getBalance())); // tgt.setCoveragePeriod(convertPeriod(src.getCoveragePeriod())); tgt.setSubject(convertReference(src.getSubject())); tgt.setOwner(convertReference(src.getOwner())); tgt.setDescription(src.getDescription()); return tgt; }
public static Base createResourceOrType(String name) throws FHIRException { switch (name.hashCode()) { case 487334413: return new Account(); case 851278306: return new ActivityDefinition(); case 516961236: return new Address();