Changeset 5314
- Timestamp:
- 08/19/08 13:54:01 (3 months ago)
- Files:
-
- openmrs/branches/logic-api-refactoring/test/api/org/openmrs/test/logic/LogicBasicTest.java (modified) (6 diffs)
- openmrs/branches/logic-api-refactoring/test/api/org/openmrs/test/logic/LogicCountTest.java (added)
- openmrs/branches/logic-api-refactoring/test/api/org/openmrs/test/logic/LogicEvalTest.java (modified) (2 diffs)
- openmrs/branches/logic-api-refactoring/test/api/org/openmrs/test/logic/LogicNTest.java (added)
- openmrs/branches/logic-api-refactoring/test/api/org/openmrs/test/logic/LogicQueryParserTest.java (modified) (1 diff)
- openmrs/branches/logic-api-refactoring/test/api/org/openmrs/test/logic/include/LogicEvalTest.testSimpleLogic.xml (modified) (1 diff)
- openmrs/branches/logic-api-refactoring/test/api/org/openmrs/test/logic/include/LogicNTest.xml (added)
- openmrs/branches/logic-api-refactoring/test/api/org/openmrs/test/logic/include/LogicTests-patients.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openmrs/branches/logic-api-refactoring/test/api/org/openmrs/test/logic/LogicBasicTest.java
r4752 r5314 35 35 protected void onSetUpInTransaction() throws Exception { 36 36 initializeInMemoryDatabase(); 37 //executeDataSet("org/openmrs/test/logic/include/LargeTestDatabase.xml");38 37 executeDataSet("org/openmrs/test/logic/include/LogicTests-patients.xml"); 39 38 … … 42 41 43 42 public void testCheckWhetherRecentResultsExist() throws Exception { 44 executeDataSet("org/openmrs/test/logic/include/LogicBasicTest.concepts.xml");45 43 46 44 // Result = NO CD4 COUNT IN LAST 6 MONTHS … … 60 58 */ 61 59 public void testFilterByNumericResult() throws Exception { 62 executeDataSet("org/openmrs/test/logic/include/LogicBasicTest.concepts.xml");63 60 // Result = LAST CD4 COUNT < 350 64 61 Patient patient = Context.getPatientService().getPatient(3); … … 78 75 */ 79 76 public void testFilterByNumericResultWithVoidedObs() throws Exception { 80 executeDataSet("org/openmrs/test/logic/include/LogicBasicTest.concepts.xml");81 77 // Result = LAST CD4 COUNT < 350 82 78 Patient patient = Context.getPatientService().getPatient(2); … … 90 86 91 87 public void testFetchActiveMedications() throws Exception { 92 executeDataSet("org/openmrs/test/logic/include/LogicBasicTest.concepts.xml");93 88 // Result = ACTIVE MEDICATIONS 94 89 Patient patient = Context.getPatientService().getPatient(2); … … 99 94 100 95 public void testFilterUsingComposition() throws Exception { 101 executeDataSet("org/openmrs/test/logic/include/LogicBasicTest.concepts.xml");102 96 // LAST CD4 COUNT < 350 AND NO ACTIVE MEDICATIONS 103 97 Patient patient = Context.getPatientService().getPatient(2); openmrs/branches/logic-api-refactoring/test/api/org/openmrs/test/logic/LogicEvalTest.java
r4752 r5314 35 35 initializeInMemoryDatabase(); 36 36 executeDataSet("org/openmrs/test/logic/include/LogicTests-patients.xml"); 37 37 executeDataSet("org/openmrs/test/logic/include/LogicEvalTest.testSimpleLogic.xml"); 38 38 authenticate(); 39 39 } … … 45 45 */ 46 46 public void testSimpleLogic() throws Exception { 47 48 // add temperature as a concept in the database 49 executeDataSet("org/openmrs/test/logic/include/LogicEvalTest.testSimpleLogic.xml"); 50 47 51 48 // RuleFactory needs to be cleaned up so that it picks up the new concepts 52 49 openmrs/branches/logic-api-refactoring/test/api/org/openmrs/test/logic/LogicQueryParserTest.java
r5167 r5314 70 70 71 71 } 72 73 @Override74 public Boolean useInMemoryDatabase() {75 return false;76 }77 78 72 79 73 } openmrs/branches/logic-api-refactoring/test/api/org/openmrs/test/logic/include/LogicEvalTest.testSimpleLogic.xml
r4752 r5314 1 1 <?xml version='1.0' encoding='UTF-8'?> 2 2 <dataset> 3 <concept concept_id="1" creator="1" date_created="2005-01-01 00:00:00.0" retired="false" is_set="false" class_id="1"/>4 <concept_name concept_name_id=" 1" concept_id="1" name="TEMPERATURE (C)" locale="en" description="Temperature" creator="1" date_created="2005-01-01 00:00:00.0"/>5 <concept_ class concept_class_id="1" name="Finding" description="A medical discovery" creator="1" date_created="2005-01-01 00:00:00.0" retired="false"/>3 <concept datatype_id="1" concept_id="1" creator="1" date_created="2005-01-01 00:00:00.0" retired="false" is_set="false" class_id="7"/> 4 <concept_name concept_name_id="3" concept_id="1" name="TEMPERATURE (C)" locale="en" description="Temperature" creator="1" date_created="2005-01-01 00:00:00.0"/> 5 <concept_numeric concept_id="1" units="IN" precise="false"/> 6 6 </dataset> openmrs/branches/logic-api-refactoring/test/api/org/openmrs/test/logic/include/LogicTests-patients.xml
r4752 r5314 13 13 <patient_identifier_type patient_identifier_type_id="1" name="Test Identifier Type" description="Test description" check_digit="false" creator="1" date_created="2005-01-01 00:00:00.0" required="false" retired="false"/> 14 14 <location location_id="1" name="Test Location" creator="1" date_created="2005-01-01 00:00:00.0" retired="false"/> 15 16 <concept_class concept_class_id="7" name="Question" description="Question (eg, patient history, SF36 items)" creator="1" date_created="2004-03-02 00:00:00.0" retired="false"/> 17 <concept_datatype concept_datatype_id="1" name="Numeric" hl7_abbreviation="NM" description="Numeric value, including integer or float (e.g., creatinine, weight)" creator="1" date_created="2004-02-02 00:00:00.0" retired="false"/> 18 <concept_datatype concept_datatype_id="2" name="Coded" hl7_abbreviation="CE" description="Coded value" creator="1" date_created="2004-02-02 00:00:00.0" retired="false"/> 19 20 <concept concept_id="5497" retired="false" datatype_id="1" class_id="7" is_set="false" creator="1" date_created="2004-08-12 00:00:00.0" version="0.1" changed_by="1" date_changed="2006-06-09 14:57:33.0"/> 21 <concept_name concept_name_id="1" concept_id="5497" name="CD4 COUNT" description="Measure of CD4 (T-helper cells) in blood" locale="en" creator="1" date_created="2004-08-12 00:00:00.0"/> 22 <concept_numeric concept_id="5497" hi_normal="1497.0" low_critical="99.0" low_normal="445.0" units="cells/L" precise="false"/> 23 24 <concept concept_id="1354" retired="false" datatype_id="1" class_id="7" is_set="false" creator="1" date_created="2007-11-06 11:02:43.0" version="1" changed_by="1" date_changed="2008-01-03 14:12:30.0"/> 25 <concept_name concept_name_id="2" concept_id="1354" name="WEIGHT (KG)" short_name="" description="" locale="en" creator="1" date_created="2007-11-06 11:02:43.0"/> 26 <concept_numeric concept_id="1354" precise="false"/> 27 28 <concept concept_id="1355" retired="false" datatype_id="2" class_id="7" is_set="false" creator="1" date_created="2007-11-06 11:02:43.0" version="1" changed_by="1" date_changed="2008-01-03 14:12:30.0"/> 29 <concept_name concept_name_id="4" concept_id="1355" name="CURRENT ANTIRETROVIRAL DRUGS USED FOR TREATMENT" short_name="" description="" locale="en" creator="1" date_created="2007-11-06 11:02:43.0"/> 15 30 </dataset>