Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
05/06/08 00:36:37 (8 months ago)
Author:
djazayeri
Message:

Allow voiding the obs that exits a patient from care. Added global property listeners and supporting infrastructure. The xml for this needs to be changed slightly, but the method signatures are fine.
Also fixing CR/LF issue in a few files

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/trunk/src/api/org/openmrs/util/OpenmrsConstants.java

    r4095 r4113  
    362362        public static final String GLOBAL_PROPERTY_GZIP_ENABLED                = "gzip.enabled"; 
    363363        public static final String GLOBAL_PROPERTY_MEDICAL_RECORD_OBSERVATIONS = "concept.medicalRecordObservations"; 
     364        public static final String GLOBAL_PROPERTY_STANDARD_DRUG_REGIMENS      = "dashboard.regimen.standardRegimens";   
    364365         
    365366        // These properties (and default values) are set if not found in the database on startup 
     
    381382                props.add(new GlobalProperty("dashboard.relationships.show_types", "", "Types of relationships separated by commas.  Doctor/Patient,Parent/Child")); 
    382383                props.add(new GlobalProperty("dashboard.regimen.displayDrugSetIds", "ANTIRETROVIRAL DRUGS,TUBERCULOSIS TREATMENT DRUGS", "Drug sets that appear on the Patient Dashboard Regimen tab. Comma separated list of name of concepts that are defined as drug sets.")); 
     384                 
     385                String standardRegimens = "<list>" + 
     386                        "  <regimenSuggestion>" + 
     387                        "    <drugComponents>" + 
     388                        "      <drugSuggestion>" + 
     389                        "        <drugId>2</drugId>" + 
     390                        "        <dose>1</dose>" + 
     391                        "        <units>tab(s)</units>" + 
     392                        "        <frequency>2/day x 7 days/week</frequency>" + 
     393                        "        <instructions></instructions>" + 
     394                        "      </drugSuggestion>" + 
     395                        "    </drugComponents>" + 
     396                        "    <displayName>3TC + d4T(30) + NVP (Triomune-30)</displayName>" + 
     397                        "    <codeName>standardTri30</codeName>" + 
     398                        "    <canReplace>ANTIRETROVIRAL DRUGS</canReplace>" + 
     399                        "  </regimenSuggestion>" + 
     400                        "  <regimenSuggestion>" + 
     401                        "    <drugComponents>" + 
     402                        "      <drugSuggestion>" + 
     403                        "        <drugId>3</drugId>" + 
     404                        "        <dose>1</dose>" + 
     405                        "        <units>tab(s)</units>" + 
     406                        "        <frequency>2/day x 7 days/week</frequency>" + 
     407                        "        <instructions></instructions>" + 
     408                        "      </drugSuggestion>" + 
     409                        "    </drugComponents>" + 
     410                        "    <displayName>3TC + d4T(40) + NVP (Triomune-40)</displayName>" + 
     411                        "    <codeName>standardTri40</codeName>" + 
     412                        "    <canReplace>ANTIRETROVIRAL DRUGS</canReplace>" + 
     413                        "  </regimenSuggestion>" + 
     414                        "  <regimenSuggestion>" + 
     415                        "    <drugComponents>" + 
     416                        "      <drugSuggestion>" + 
     417                        "        <drugId>39</drugId>" + 
     418                        "        <dose>1</dose>" + 
     419                        "        <units>tab(s)</units>" + 
     420                        "        <frequency>2/day x 7 days/week</frequency>" + 
     421                        "        <instructions></instructions>" + 
     422                        "      </drugSuggestion>" + 
     423                        "      <drugSuggestion>" + 
     424                        "        <drugId>22</drugId>" + 
     425                        "        <dose>200</dose>" + 
     426                        "        <units>mg</units>" + 
     427                        "        <frequency>2/day x 7 days/week</frequency>" + 
     428                        "        <instructions></instructions>" + 
     429                        "      </drugSuggestion>" + 
     430                        "    </drugComponents>" + 
     431                        "    <displayName>AZT + 3TC + NVP</displayName>" + 
     432                        "    <codeName>standardAztNvp</codeName>" + 
     433                        "    <canReplace>ANTIRETROVIRAL DRUGS</canReplace>" + 
     434                        "  </regimenSuggestion>" + 
     435                        "  <regimenSuggestion>" + 
     436                        "    <drugComponents>" + 
     437                        "      <drugSuggestion reference=\"../../../regimenSuggestion[3]/drugComponents/drugSuggestion\"/>" + 
     438                        "      <drugSuggestion>" + 
     439                        "        <drugId>11</drugId>" + 
     440                        "        <dose>600</dose>" + 
     441                        "        <units>mg</units>" + 
     442                        "        <frequency>1/day x 7 days/week</frequency>" + 
     443                        "        <instructions></instructions>" + 
     444                        "      </drugSuggestion>" + 
     445                        "    </drugComponents>" + 
     446                        "    <displayName>AZT + 3TC + EFV(600)</displayName>" + 
     447                        "    <codeName>standardAztEfv</codeName>" + 
     448                        "    <canReplace>ANTIRETROVIRAL DRUGS</canReplace>" + 
     449                        "  </regimenSuggestion>" + 
     450                        "  <regimenSuggestion>" + 
     451                        "    <drugComponents>" + 
     452                        "      <drugSuggestion>" + 
     453                        "        <drugId>5</drugId>" + 
     454                        "        <dose>30</dose>" + 
     455                        "        <units>mg</units>" + 
     456                        "        <frequency>2/day x 7 days/week</frequency>" + 
     457                        "        <instructions></instructions>" + 
     458                        "      </drugSuggestion>" + 
     459                        "      <drugSuggestion>" + 
     460                        "        <drugId>42</drugId>" + 
     461                        "        <dose>150</dose>" + 
     462                        "                       <units>mg</units>" + 
     463                        "        <frequency>2/day x 7 days/week</frequency>" + 
     464                        "        <instructions></instructions>" + 
     465                        "      </drugSuggestion>" + 
     466                        "      <drugSuggestion reference=\"../../../regimenSuggestion[4]/drugComponents/drugSuggestion[2]\"/>" + 
     467                        "    </drugComponents>" + 
     468                        "    <displayName>d4T(30) + 3TC + EFV(600)</displayName>" + 
     469                        "    <codeName>standardD4t30Efv</codeName>" + 
     470                        "    <canReplace>ANTIRETROVIRAL DRUGS</canReplace>" + 
     471                        "  </regimenSuggestion>" + 
     472                        "  <regimenSuggestion>" + 
     473                        "    <drugComponents>" + 
     474                        "      <drugSuggestion>" + 
     475                        "        <drugId>6</drugId>" + 
     476                        "        <dose>40</dose>" + 
     477                        "        <units>mg</units>" + 
     478                        "        <frequency>2/day x 7 days/week</frequency>" + 
     479                        "        <instructions></instructions>" + 
     480                        "      </drugSuggestion>" + 
     481                        "      <drugSuggestion reference=\"../../../regimenSuggestion[5]/drugComponents/drugSuggestion[2]\"/>" + 
     482                        "      <drugSuggestion reference=\"../../../regimenSuggestion[4]/drugComponents/drugSuggestion[2]\"/>" + 
     483                        "    </drugComponents>" + 
     484                        "    <displayName>d4T(40) + 3TC + EFV(600)</displayName>" + 
     485                        "    <codeName>standardD4t40Efv</codeName>" + 
     486                        "    <canReplace>ANTIRETROVIRAL DRUGS</canReplace>" + 
     487                        "  </regimenSuggestion>" + 
     488                        "</list>";  
     489                props.add(new GlobalProperty(GLOBAL_PROPERTY_STANDARD_DRUG_REGIMENS, standardRegimens, "XML description of standard drug regimens, to be shown as shortcuts on the dashboard regimen entry tab"));               
    383490                 
    384491                props.add(new GlobalProperty("concept.weight", "5089", "Concept id of the concept defining the WEIGHT concept"));