/** * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist */ public Identifier getIdentifierFirstRep() { if (getIdentifier().isEmpty()) { addIdentifier(); } return getIdentifier().get(0); }
public org.hl7.fhir.instance.model.Account convertAccount(org.hl7.fhir.dstu3.model.Account src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Account tgt = new org.hl7.fhir.instance.model.Account(); copyDomainResource(src, tgt); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); tgt.setName(src.getName()); tgt.setType(convertCodeableConcept(src.getType())); tgt.setStatus(convertAccountStatus(src.getStatus())); tgt.setActivePeriod(convertPeriod(src.getActive())); 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; }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("identifier")) { this.getIdentifier().add(castToIdentifier(value)); } else if (name.equals("status")) { value = new AccountStatusEnumFactory().fromType(castToCode(value));
switch (hash) { case -1618432855: // identifier this.getIdentifier().add(castToIdentifier(value)); // Identifier return value; case -892481550: // status
public org.hl7.fhir.instance.model.Account convertAccount(org.hl7.fhir.dstu3.model.Account src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Account tgt = new org.hl7.fhir.instance.model.Account(); copyDomainResource(src, tgt); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); tgt.setName(src.getName()); tgt.setType(convertCodeableConcept(src.getType())); tgt.setStatus(convertAccountStatus(src.getStatus())); tgt.setActivePeriod(convertPeriod(src.getActive())); 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; }