Skip to content

Commit

Permalink
Merge pull request #402 from pfschwartz/oe4.2
Browse files Browse the repository at this point in the history
Bug fix -- patient report by subject number was broken.  Uped build to 4...
  • Loading branch information
pfschwartz committed Oct 28, 2014
2 parents 4c872ac + 708a569 commit e767b09
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 17 deletions.
2 changes: 1 addition & 1 deletion app/src/build.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#The build number for this instance should be set by the ant build process
release=4.2
release=4.2.1
build=--
39 changes: 23 additions & 16 deletions app/src/us/mn/state/health/lims/common/services/PatientService.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,77 +81,84 @@ public class PatientService implements IPatientService {
private PersonService personService;

static{
PatientIdentityType patientType = new PatientIdentityTypeDAOImpl().getNamedIdentityType("GUID");
PatientIdentityTypeDAOImpl identityTypeDAOImpl = new PatientIdentityTypeDAOImpl();

PatientIdentityType patientType = identityTypeDAOImpl.getNamedIdentityType("GUID");
if( patientType != null){
PATIENT_GUID_IDENTITY = patientType.getId();
}

patientType = new PatientIdentityTypeDAOImpl().getNamedIdentityType("NATIONAL");

patientType = identityTypeDAOImpl.getNamedIdentityType("SUBJECT");
if( patientType != null){
PATIENT_SUBJECT_IDENTITY = patientType.getId();
}

patientType = identityTypeDAOImpl.getNamedIdentityType("NATIONAL");
if( patientType != null){
PATIENT_NATIONAL_IDENTITY = patientType.getId();
}

patientType = new PatientIdentityTypeDAOImpl().getNamedIdentityType("ST");
patientType = identityTypeDAOImpl.getNamedIdentityType("ST");
if( patientType != null){
PATIENT_ST_IDENTITY = patientType.getId();
}

patientType = new PatientIdentityTypeDAOImpl().getNamedIdentityType("AKA");
patientType = identityTypeDAOImpl.getNamedIdentityType("AKA");
if( patientType != null){
PATIENT_AKA_IDENTITY = patientType.getId();
}

patientType = new PatientIdentityTypeDAOImpl().getNamedIdentityType("MOTHER");
patientType = identityTypeDAOImpl.getNamedIdentityType("MOTHER");
if( patientType != null){
PATIENT_MOTHER_IDENTITY = patientType.getId();
}

patientType = new PatientIdentityTypeDAOImpl().getNamedIdentityType("INSURANCE");
patientType = identityTypeDAOImpl.getNamedIdentityType("INSURANCE");
if( patientType != null){
PATIENT_INSURANCE_IDENTITY = patientType.getId();
}

patientType = new PatientIdentityTypeDAOImpl().getNamedIdentityType("OCCUPATION");
patientType = identityTypeDAOImpl.getNamedIdentityType("OCCUPATION");
if( patientType != null){
PATIENT_OCCUPATION_IDENTITY = patientType.getId();
}

patientType = new PatientIdentityTypeDAOImpl().getNamedIdentityType("ORG_SITE");
patientType = identityTypeDAOImpl.getNamedIdentityType("ORG_SITE");
if( patientType != null){
PATIENT_ORG_SITE_IDENTITY = patientType.getId();
}

patientType = new PatientIdentityTypeDAOImpl().getNamedIdentityType("MOTHERS_INITIAL");
patientType = identityTypeDAOImpl.getNamedIdentityType("MOTHERS_INITIAL");
if( patientType != null){
PATIENT_MOTHERS_INITIAL_IDENTITY = patientType.getId();
}

patientType = new PatientIdentityTypeDAOImpl().getNamedIdentityType("EDUCATION");
patientType = identityTypeDAOImpl.getNamedIdentityType("EDUCATION");
if( patientType != null){
PATIENT_EDUCATION_IDENTITY = patientType.getId();
}

patientType = new PatientIdentityTypeDAOImpl().getNamedIdentityType("MARITIAL");
patientType = identityTypeDAOImpl.getNamedIdentityType("MARITIAL");
if( patientType != null){
PATIENT_MARITAL_IDENTITY = patientType.getId();
}

patientType = new PatientIdentityTypeDAOImpl().getNamedIdentityType("HEALTH_DISTRICT");
patientType = identityTypeDAOImpl.getNamedIdentityType("HEALTH_DISTRICT");
if( patientType != null){
PATIENT_HEALTH_DISTRICT_IDENTITY = patientType.getId();
}

patientType = new PatientIdentityTypeDAOImpl().getNamedIdentityType("HEALTH_REGION");
patientType = identityTypeDAOImpl.getNamedIdentityType("HEALTH_REGION");
if( patientType != null){
PATIENT_HEALTH_REGION_IDENTITY = patientType.getId();
}

patientType = new PatientIdentityTypeDAOImpl().getNamedIdentityType("OB_NUMBER");
patientType = identityTypeDAOImpl.getNamedIdentityType("OB_NUMBER");
if( patientType != null){
PATIENT_OB_NUMBER_IDENTITY = patientType.getId();
}

patientType = new PatientIdentityTypeDAOImpl().getNamedIdentityType("PC_NUMBER");
patientType = identityTypeDAOImpl.getNamedIdentityType("PC_NUMBER");
if( patientType != null){
PATIENT_PC_NUMBER_IDENTITY = patientType.getId();
}
Expand Down

0 comments on commit e767b09

Please sign in to comment.