private Patient getPatientResourceFromBundle()

in src/com/amazonaws/lab/FHIRDataHandler.java [68:80]


	private Patient getPatientResourceFromBundle(Bundle bundle) {
		List<BundleEntryComponent> bundCompList = bundle.getEntry();
		Patient pat = null;
		for (BundleEntryComponent comp : bundCompList) {
			Resource res = comp.getResource();

			if (res.fhirType() == ResourceType.PATIENT.getDisplay()) {
				pat = (Patient) res;
				break;
			}
		}
		return pat;
	}