if (getLocation().isEmpty()) { addLocation(); } return getLocation().get(0); } /** * @return {@link #serviceProvider} (An organization that is in charge of maintaining the information of this Encounter (e.g. who maintains the report or the master service catalog item, etc.). This MAY be the same as the organization on the Patient record, however it could be different. This MAY not be not the Service Delivery Location's Organization.) */ public Reference getServiceProvider() {
return this.serviceProvider;
tgt.setHospitalization(convertEncounterHospitalizationComponent(src.getHospitalization())); for (org.hl7.fhir.instance.model.Encounter.EncounterLocationComponent t : src.getLocation()) tgt.addLocation(convertEncounterLocationComponent(t)); tgt.setServiceProvider(convertReference(src.getServiceProvider())); tgt.setPartOf(convertReference(src.getPartOf()));
public static Encounter create(Patient patient, Date date, Location location, String sc) { Encounter encounter = new Encounter(); Reference pat = new Reference(patient); encounter.setSubject(pat); Period period = new Period(); period.setStart(date); encounter.setPeriod(period); Reference loc = new Reference(location); EncounterLocationComponent encloc = encounter.addLocation(); encloc.setPeriod(period); encloc.setLocation(loc); CodeableConcept type = encounter.addType(); CodeableConcept cat = getServiceCategory(sc); type.setText(cat.getText()); type.getCoding().addAll(cat.getCoding()); return encounter; }
case -892481550: return getStatusElement(); case -986695614: return addStatusHistory(); case 94742904: return getClass_(); case 962575356: return addClassHistory(); case 3575610: return addType(); case -1165461084: return getPriority(); case -1867885268: return getSubject(); case -1892140189: return addEpisodeOfCare(); case -1258204701: return addIncomingReferral(); case 767422259: return addParticipant(); case -1474995297: return getAppointment(); case -991726143: return getPeriod(); case -1106363674: return getLength(); case -934964668: return addReason(); case 1196993265: return addDiagnosis(); case -1177318867: return addAccount(); case 1057894634: return getHospitalization(); case 1901043637: return addLocation(); case 243182534: return getServiceProvider(); case -995410646: return getPartOf(); default: return super.makeProperty(hash, name); } } @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { case -1618432855: /*identifier*/ return new String[] {"Identifier"};
tgt.setHospitalization(convertEncounterHospitalizationComponent(src.getHospitalization())); for (org.hl7.fhir.instance.model.Encounter.EncounterLocationComponent t : src.getLocation()) tgt.addLocation(convertEncounterLocationComponent(t)); tgt.setServiceProvider(convertReference(src.getServiceProvider())); tgt.setPartOf(convertReference(src.getPartOf()));