Child pages
  • Technical Workshop 8 21-8 22 2008 Prioritized Tests
Skip to end of metadata
Go to start of metadata

List of tests to be written during the Technical Workshop 8-21-8-22-2008.

Workflow #1: Data Assistant Edits a Patient

  • Authenticate
    • LoginServlet.java
    • Context.authenticate(String, String)
    • Context.hasPrivilege()
  • Search for a patient on main screen
    • DWRPatientService.java
    • PatientService.findPatients(String, String)
    • PatientService.getAllIdentifierValidators()
  • View a patient on dashboard
    • PatientDashboardController.java
    • PatientService.getPatient(Integer)
    • FormService.getForms()
    • EncounterService.getEncounters()
    • ConceptService.getConceptById()
    • ObsService.getObsByPatient()
    • PersonService.getRelationships()
  • View a patient with the short form
    • NewPatientFormController.java
    • PersonService.getPerson()
    • Patient.getActiveIdentifiers()
    • PatientService.getAllIdentifierTypes()
  • Change a patient with the short form
    • NewPatientFormController.java
    • PersonName.equals()
    • PersonAddress.equals()
    • PersonAttribute.equals()
    • PatientService.savePatient()
    • PersonService.getRelationshipsByPerson()
    • PersonService.getRelationshipType(Integer)
    • PersonService.saveRelationship()
    • ObsService.saveObs(Obs)
    • PatientService.savePatient() with existing patient

Workflow #2: Data Assistant Adds an Encounter Form to a patient

  • Authenticate (Covered in workflow #1)
  • Search for a patient on main screen (Covered in workflow #1)
  • Select a patient (Covered in workflow #1)
  • View a patient on dashboard (Covered in workflow #1)
  • View the currently available forms
    • DWRFormService
    • FormService.getForms()
    • FormService.findForms()
    • FormService.getForm(Integer)
  • Fill out a form(Covered by the FormEntry Module tests)
  • Submit a form(Covered by the FormEntry Module tests)
  • Form enters and is processed by the hl7 handler
    • HL7InQueueProcessor
    • hl7Service.getNextHL7InQueue()
    • Hl7Service.saveHL7InArchive
    • Hl7Service.saveHL7InError
    • ORUR01Handler
    • AdministrationService.getGlobalProperty()
    • EncounterService.saveEncounter()

Workflow #3: Data Assistant Adds a Patient

  • Authenticate (Covered in workflow #1)
  • Search for a patient on main screen (Covered in workflow #1)
  • Search for a patient using the "find similar patients"
    • DWRPersonService
    • PersonService.getSimilarPeople
  • View a patient with the short form (Covered by workflow #1)
  • Add a new patient using the new patient form controller
    • PatientService.savePatient() with nonexisting patient
    • (rest is coverd by workflow #2)

Workflow #4: Data Manager Edits an Encounter

  • Authenticate (Covered in workflow #1)
  • Search for a patient on main screen (Covered in workflow #1)
  • Select a patient (Covered in workflow #1)
  • View a patient on dashboard (Covered in workflow #1)
  • View the patient's encounters
    • EncounterService.getEncountersByPatient()
  • View the encounter and its observations
    • EncounterFormController
    • EncounterService.getEncounter()
    • FormService.getForms()
    • FormService.getFormField(Form, Concept, List, boolean)
    • FormField.compareTo()
  • View a new observation form
    • ObsFormController
    • User.getProperty()
  • Save a new observation
    • ObsFormController
    • PatientService.getPatient(Integer)
    • OrderService.getObs(Integer)
    • ConceptService.getConcept(Integer)
    • ConceptService.getDrug(Integer)
    • ObsService.saveObs(obs, null)
  • View a current observation
    • ObsFormController
    • ObsService.getObs(Integer)
    • EncounterService.getEncounter(Integer)
  • Edit a current observation
    • ObsFormController
    • ObsService.saveObs(Obs, String)
  • Edit some encounter metadata
    • EncounterFormController
    • EncounterService.saveEncounter()

Workflow #5: Data Manager Creates and Runs a Data Export

  • Authenticate (Covered in workflow #1)
  • View all current data exports
    • DataExportListController
    • ReportObjectService.getReportObjectsByType()
    • DataExportUtil.getGeneratedFile
  • View a data export
    • DataExportFormController
    • ReportObjectService.getReportObject()
  • Edit a data export
    • LocationService.getLocation()
    • LocationService.getAllLocations()
    • ConceptService.getConceptByName()
    • ReportObjectService.saveReportObject()
  • Run a data export
    • EvaluationContext.addParameterValue()
    • DataExportUtil.generateExport

Workflow #6: Program Manager adds a User

  • Authenticate (Covered in workflow #1)
  • View all current users
    • UserListController
    • DWRUserService
    • UserService.getAllUsers()
  • Search for a person using the "find similar persons" (Covered in workflow #3)
  • View user form
    • UserFormController
    • UserService.getUser(Integer)
    • PersonService.getPerson
    • UserService.getAllRoles()
    • OpenmrsConstants.AUTO_ROLES()
  • Add a user
    • UserFormController
    • User.getProperties
    • UserService.saveUser(String, String)
    • UserService.saveUser(String, null) (editing user)
  • No labels