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() {
public static boolean isPrepared(Encounter encounter) { return encounter != null && !encounter.getLocation().isEmpty() && !encounter.getParticipant().isEmpty() && getServiceCategory(encounter) != null; }
this.serviceProvider = castToReference(value); // Reference } else if (name.equals("partOf")) { this.partOf = castToReference(value); // Reference } else return super.setProperty(name, value);
/** * Returns an encounter location with the specified physical type. * * @param encounter An encounter. * @param physicalType The physical location type sought. * @return The encounter location corresponding to the specified physical type, or null if none * found. */ public static EncounterLocationComponent getLocationByPhysicalType(Encounter encounter, String physicalType) { for (EncounterLocationComponent encounterLocation : encounter.getLocation()) { Location location = ClientUtil.getResource(encounterLocation.getLocation(), Location.class); if (physicalType.equals(FhirUtil.getFirst(location.getPhysicalType().getCoding()).getCode())) { return encounterLocation; } } return null; }
tgt.addReason(convertCodeableConcept(t)); tgt.setHospitalization(convertEncounterHospitalizationComponent(src.getHospitalization())); for (org.hl7.fhir.dstu3.model.Encounter.EncounterLocationComponent t : src.getLocation()) tgt.addLocation(convertEncounterLocationComponent(t)); tgt.setServiceProvider(convertReference(src.getServiceProvider()));
case 243182534: // serviceProvider this.serviceProvider = castToReference(value); // Reference return value; case -995410646: // partOf this.partOf = castToReference(value); // Reference
tgt.addReason(convertCodeableConcept(t)); tgt.setHospitalization(convertEncounterHospitalizationComponent(src.getHospitalization())); for (org.hl7.fhir.dstu3.model.Encounter.EncounterLocationComponent t : src.getLocation()) tgt.addLocation(convertEncounterLocationComponent(t)); tgt.setServiceProvider(convertReference(src.getServiceProvider()));