ilabafrica / BLIS-BDH

Legacy BLIS implementation customised for Bungoma County Hospital.
1 stars 0 forks source link

Tests loading with wrong specimen and/or test type (From BLIS-Kenya Ripo) #31

Closed ereng closed 10 years ago

ereng commented 10 years ago

Some tests load the wrong specimen and/or test type or do not load them at all (#491148).

briankip commented 10 years ago

@mapesa explain further

briankip commented 10 years ago

@mapesa ?

mapesa commented 10 years ago

This is too old but give me a few minutes to see if I can simulate it using the given ID. If not we can close it.

mapesa commented 10 years ago

@briankip Follow the following steps to reproduce the bug.

  1. Run the following query to inject a new record to the db similar to that referenced above (#491148).
  2. INSERT INTO blis_revamp_prod.external_lab_request (labNo, parentLabNo, requestingClinician, investigation, requestDate, orderStage, patientVisitNumber, patient_id, full_name, dateOfBirth, gender, phoneNumber, cost, receiptNumber, receiptType, system_id) SELECT 320767, 0, requestingClinician, investigation, now(), orderStage, patientVisitNumber, patient_id, full_name, dateOfBirth, gender, phoneNumber, cost, receiptNumber, receiptType, system_id FROM blis_revamp_prod.external_lab_request WHERE id = 36815;
  3. On the "Test Queue" page, click the "Receive Request" button for the corresponding entry (it should be the first on the list).
  4. NB: The "Specimen Registration" form loads with "Synovial Fluid" as the Specimen Type instead of Stool. No tests are loaded. This is wrong since the test requested is "Stool for C/S"
ereng commented 10 years ago

The compatible specimen saved in Test Catalog -> Test Type -> Edit is "Synovial Fluid" not "stool." And it's loading the test "Stool for C/S" On changing the compartible specimen to "Stool", the compartible specimen is then loaded and not the test... Just finding out why?...

ereng commented 10 years ago

@mapesa There was a slight difference between "Stool for C/S "(the white space after the test name) saved in 'Test Catalog -> Test Type' from the "Stool for C/S" from the external lab request so the comparison '==' would not pass

I guess it's sorted, the test names should be exactly the same.

mapesa commented 10 years ago

Cool. You can close it. We need to remember to make the same changes on the Bungoma server.