=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/help_content.xml' --- dhis-2/dhis-services/dhis-service-core/src/main/resources/help_content.xml 2012-02-16 03:02:51 +0000 +++ dhis-2/dhis-services/dhis-service-core/src/main/resources/help_content.xml 2012-03-14 02:11:09 +0000 @@ -2552,31 +2552,30 @@ To access "Beneficiary Aggregation" module, choose Services->Name Based Data Records->Beneficiary Aggregation. For instance, find the number of the children vaccinated BCG by defining a linking rule between the data elements of aggregate dataset named "Number of children - BCG" and the data element of a program stage named "BCG dose given date". 1. Choose Maintenance->Data Element and Indicators->Data Element, define two new data elements. One is "Number of children - BCG" with "Aggregate" Domain Type. Two is "BCG dose give date" with "Patient" Domain Type. - 2. Choose Maintenance->Data Element and Indicators->Data Element Group, create a new data element group named "BCG DataElement Group" and add "Number of children - BCG" data element into the group. - 3. Choose Maintenance->Datasets->Dataset, create a new dataset named "BCG Report" and add "Number of children - BCG" data element into the dataset. - 4. Choose Maintenance->Beneficiaries and Programs->Program, create a program named "Child Health Program" with a stage named "Birth Details" and add the "BCG dose give date" data element into this stage. Then assign it to "Ho Chi Minh city" facility. - 5. Choose Maintenance->Beneficiaries and Program->Beneficiary, select "Ho Chi Minh city" and create three beneficiaries named "Micheal", "Alice" and "Tom" and enroll them into "Child Health Program". - 6. Create a new beneficiary aggregation query builder named "Number of children - BCG Builder" to linking between the data elements. - 6.1. Choose Maintenance->Beneficiaries and Programs->Beneficiary Aggregation Query Builder, click the "Add new" button. - 6.2. Fill in "The number of children - BCG Builder" for the description field. - 6.3. In the Data Element Group combobox, select "BCG DataElement Group". - 6.4. In the Data Element combobox, select "Number of children - BCG (default)" - 6.5. In the Program combobox, select "Child Health Program". - 6.6. In the Program Stage combobox, select "Birth Details". - 6.7. In the Data Element list box, double click the "BCG dose give date". And click the "Is not null" button - 6.8. Click the "is not null" operator button. - 6.9. Click "Add" button. - 7. Choose Services->Name-Based Data Records->Data Entry, click the "List All Beneficiaries" button. - 7.1. Select beneficiary with name "Micheal" and open the "Birth Details" stage of "Child Health Program". Enter value "2011-02-18" for "BCG dose give date" data element. - 7.2. Select beneficiary with name "Alice" and open the "Birth Details" stage of "Child Health Program". Enter value "2011-02-18" for "BCG dose give date" data element. - 7.3. Select beneficiary with name "Tom" and open the "Birth Details" stage of "Child Health Program". No enter value for "Birth Details" stage. + 2. Choose Maintenance->Datasets->Dataset, create a new dataset named "BCG Report" and add "Number of children - BCG" data element into the dataset. + 3. Choose Maintenance->Beneficiaries and Programs->Program, create a program named "Child Health Program" with a stage named "Birth Details" and add the "BCG dose give date" data element into this stage. Then assign it to "Ho Chi Minh city" facility. + 4. Choose Maintenance->Beneficiaries and Program->Beneficiary, select "Ho Chi Minh city" and create three beneficiaries named "Micheal", "Alice" and "Tom" and enroll them into "Child Health Program". + 5. Create a new beneficiary aggregation query builder named "Number of children - BCG Builder" to linking between the data elements. + 5.1. Choose Maintenance->Beneficiaries and Programs->Beneficiary Aggregation Query Builder, click the "Add new" button. + 5.2. Fill in "The number of children - BCG Builder" for the description field. + 5.3. In the Dataset combobox, select "BCG Report". + 5.4. In the Data Element combobox, select "Number of children - BCG (default)" + 5.5. In the Program combobox, select "Child Health Program". + 5.6. In the Program Stage combobox, select "Birth Details". + 5.7. In the Data Element list box, double click the "BCG dose give date". And click the "Is not null" button + 5.8. Click the "is not null" operator button. + 5.9. Click "Add" button. + 6. Choose Services->Name-Based Data Records->Data Entry, click the "List All Beneficiaries" button. + 6.1. Select beneficiary with name "Micheal" and open the "Birth Details" stage of "Child Health Program". Enter value "2011-02-18" for "BCG dose give date" data element. + 6.2. Select beneficiary with name "Alice" and open the "Birth Details" stage of "Child Health Program". Enter value "2011-02-18" for "BCG dose give date" data element. + 6.3. Select beneficiary with name "Tom" and open the "Birth Details" stage of "Child Health Program". No enter value for "Birth Details" stage. Before entering patient data value of the beneficiaries for the stage, choose "Report Date" as "2011-02-28". - 8. Choose Services->Name-Based Data Records->Case Aggregation - 8.1. In Dataset list combo box, select "BCG Report". - 8.2. In From combo box, select "January 2011". - 8.2. In To combo box, select "February 2011". - 8.3. In Organisation Unit Tree Section box, select "Ho Chi Minh city". - 8.4. Click the "Aggregate" button. The result will be shown after running successfully. + 7. Choose Services->Name-Based Data Records->Case Aggregation + 7.1. In Dataset list combo box, select "BCG Report". + 7.2. In From combo box, select "January 2011". + 7.3. In To combo box, select "February 2011". + 7.4. In Organisation Unit Tree Section box, select "Ho Chi Minh city". + 7.5. Click the "Aggregate" button. The result will be shown after running successfully.
Validation criteria === modified file 'dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/DefaultProgramInstanceService.java' --- dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/DefaultProgramInstanceService.java 2012-03-09 08:19:09 +0000 +++ dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/DefaultProgramInstanceService.java 2012-03-14 02:11:09 +0000 @@ -222,7 +222,7 @@ attrGrid.addRow(); attrGrid.addValue( i18n.getString( "blood_group" ) ); - attrGrid.addValue( i18n.getString( patient.getBloodGroup() ) ); + attrGrid.addValue( (patient.getBloodGroup() == "") ? PatientAttributeValue.UNKNOWN : patient.getBloodGroup() ); // --------------------------------------------------------------------- // Add dynamic attribues