Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enter test result #63

Merged
merged 20 commits into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
df110d3
update. build-publish workflow (#2)
abinaya-u Jun 2, 2023
4b389dc
Update .appversion
mohan-13 Jun 2, 2023
916beaa
BAH-2998 | Add. Functionality to enter test results (#1)
abinaya-u Jun 6, 2023
5874d8e
add workflow dispatch event
gokultw Jun 6, 2023
6b31837
BAH-3055 | Capture test results for different data types (#3)
abinaya-u Jun 14, 2023
fd36f24
fix. dropdown showing same value for all tests
abinaya-u Jun 14, 2023
f60231a
BAH-3044 | add. functionality to save abnormal test results (#4)
abinaya-u Jun 15, 2023
c63c59a
add. functionality to disable enter test result button (#5)
deeptirawat1510 Jun 15, 2023
587f35c
Fix. selection of duplicate orders (#6)
abinaya-u Jun 19, 2023
b6cb3e5
Fix. displaying range for the lab test
deeptirawat1510 Jun 19, 2023
b30fb14
Fix. yarn lint
deeptirawat1510 Jun 19, 2023
bd659d6
make lab report page as responsive (#7)
pankaj2961 Jul 9, 2023
316419e
Parvathy, Rahul | GOK-177 | Add. Abnormal Checkbox For All Data Types…
rahu1ramesh Jul 11, 2023
8429dbf
fix. styling issue on rendering table and image (#9)
abinaya-u Jul 21, 2023
5d73358
make. test name as sticky on scroll
abinaya-u Jul 21, 2023
99b9cd5
#143 | Jagadeesh | Fix. Ui responsiveness of patient lab details and …
JagadeeshM07 Jul 28, 2023
c8e7ce2
#245 | Jagadeesh | Fix. UI Responsiveness of Lab lite home screen (#11)
JagadeeshM07 Aug 1, 2023
485f994
update. github build_publish workflow
abinaya-u Aug 2, 2023
86d75a8
remove. unwanted printing statement
abinaya-u Aug 2, 2023
cd30356
Merge branch 'main' into enter-test-result
abinaya-u Aug 2, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/__mocks__/labConfig.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export const mockLabConfigResponse = {
data: {
labLite: {
id: 'bahmni.lab',
extensionPointId: 'org.bahmni.home.dashboard',
type: 'link',
translationKey: 'MODULE_LABEL_LAB_ENTRY_KEY',
url: '/lab',
icon: 'fa fa-flask',
order: 7,
captureTestResults: true,
requiredPrivilege: 'app:lab-lite',
},
},
}
6 changes: 6 additions & 0 deletions src/__mocks__/patientLabDetails.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ export const mockPendingLabOrder = {
date: 'May 03, 2022',
orderedBy: 'Superman',
},
{
id: 'abe-123',
testName: 'Dummy Test',
date: 'May 03, 2022',
orderedBy: 'Superman',
}
],
goTo: jest.fn(),
currentPage: 1,
Expand Down
11 changes: 11 additions & 0 deletions src/__mocks__/pendingLabOrders.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ export const mockPendingLabOrdersResponse: LabOrdersFetchResponse = {
providerUuid: '2',
fulfillerStatus: null,
},
{
concept: {
name: 'Dummy Test',
uuid: '1643AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',
},
orderDate: 1657186534000,
orderUuid: 'abe-123',
provider: 'Super Man',
providerUuid: '2',
fulfillerStatus: null,
}
],
}

Expand Down
10 changes: 8 additions & 2 deletions src/__mocks__/selectTests.mock.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LabTestResult } from "../types/selectTest"
import {LabTestResult} from '../types/selectTest'

export const mockLabTestsResponse:LabTestResult = {
export const mockLabTestsResponse: LabTestResult = {
data: {
results: [
{
Expand Down Expand Up @@ -554,3 +554,9 @@ export const selfDiagnosticRequestBody = reportDate =>
`{"resourceType":"DiagnosticReport","status":"final","code":{"coding":[{"code":"07a128f7-f596-45d5-a2a9-c447bc9e5112","display":"Absolute Eosinphil Count"}]},"subject":{"reference":"Patient/123"},"issued":"${reportDate}","presentedForm":[{"url":"100/76-Patient Document-7baff463-fdaa-43d0-a402-aa948c296958.pdf","title":"test.pdf"}]}`
export const diagnosticReportRequestBodyWithBasedOn = reportDate =>
`{"resourceType":"DiagnosticReport","status":"final","code":{"coding":[{"code":"07a128f7-f596-45d5-a2a9-c447bc9e5112","display":"Absolute Eosinphil Count"}]},"subject":{"reference":"Patient/123"},"issued":"${reportDate}","presentedForm":[{"url":"100/76-Patient Document-7baff463-fdaa-43d0-a402-aa948c296958.pdf","title":"test.pdf"}],"basedOn":[{"identifier":{"value":"abc-123"},"reference":"ServiceRequest","display":"Absolute Eosinphil Count"}],"performer":[{"reference":"Practitioner/1"}]}`
export const testResultsdiagnosticReportRequestBody = reportDate =>
`{"resourceType":"DiagnosticReport","status":"final","code":{"coding":[{"code":"07a128f7-f596-45d5-a2a9-c447bc9e5112"}]},"subject":{"reference":"Patient/123"},"issued":"${reportDate}","contained":[{"resourceType":"Observation","id":"lab-test-result","status":"final","code":{"coding":[{"code":"07a128f7-f596-45d5-a2a9-c447bc9e5112"}]},"subject":{"reference":"Patient/123"},"valueBoolean":false}],"result":[{"reference":"#lab-test-result","type":"Observation"}],"conclusion":"Normal Report","basedOn":[{"identifier":{"value":"abc-123"},"reference":"ServiceRequest"}],"performer":[{"reference":"Practitioner/1"}]}`
export const testResultsdiagnosticNumericReportRequestBody = reportDate =>
`{"resourceType":"DiagnosticReport","status":"final","code":{"coding":[{"code":"1643AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}]},"subject":{"reference":"Patient/123"},"issued":"${reportDate}","contained":[{"resourceType":"Observation","id":"lab-test-result","status":"final","code":{"coding":[{"code":"1643AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}]},"subject":{"reference":"Patient/123"},"valueQuantity":{"value":"7"}}],"result":[{"reference":"#lab-test-result","type":"Observation"}],"conclusion":"Normal Report","basedOn":[{"identifier":{"value":"abe-123"},"reference":"ServiceRequest"}],"performer":[{"reference":"Practitioner/2"}]}`
export const testResultsdiagnosticInterpretationReportRequestBody = reportDate =>
`{"resourceType":"DiagnosticReport","status":"final","code":{"coding":[{"code":"1643AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}]},"subject":{"reference":"Patient/123"},"issued":"${reportDate}","contained":[{"resourceType":"Observation","id":"lab-test-result","status":"final","code":{"coding":[{"code":"1643AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}]},"subject":{"reference":"Patient/123"},"interpretation":[{"coding":[{"code":"A"}]}],"valueQuantity":{"value":"7"}}],"result":[{"reference":"#lab-test-result","type":"Observation"}],"conclusion":"Normal Report","basedOn":[{"identifier":{"value":"abe-123"},"reference":"ServiceRequest"}],"performer":[{"reference":"Practitioner/2"}]}`
Loading
Loading