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

Ensure list view uses FH results #94

Merged
merged 12 commits into from
Dec 5, 2022
Merged

Ensure list view uses FH results #94

merged 12 commits into from
Dec 5, 2022

Conversation

stefpiatek
Copy link
Collaborator

We're now implementing the results list for FH patients and using the new structure of the FHIR bundle 🎉

closes #63

  • Results lists show FH reports only
  • Results lists shows overall interpretation
  • Specific modal for (and tests):
    • positive result and other family members tested
    • positive result and no other famliy members tested
    • negative result
    • postitive result and no family number for patient
  • Also rationalised the setup of tests so that we're not repeating FHIR requests that aren't needed
  • Ensured loading spinner is shown while results are fetched for list view

@stefpiatek stefpiatek temporarily deployed to test-env November 17, 2022 15:41 Inactive
@stefpiatek stefpiatek temporarily deployed to test-env November 17, 2022 15:56 Inactive
@stefpiatek stefpiatek temporarily deployed to test-env November 17, 2022 16:03 Inactive
@stefpiatek stefpiatek temporarily deployed to test-env November 21, 2022 10:43 Inactive
Copy link
Collaborator

@jhughes982 jhughes982 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

Comment on lines +168 to +178
beforeAll(() => {
/*
* For some reason on first load of FHIR server, creating a batch of requests doesn't seem to validate
* Sending a resource before any test are run fixed the issue
*/
const practitioner = new Practitioner();
practitioner.resourceType = "Practitioner";
practitioner.identifier = [createIdentifier("initial")];
return createPractitioner(practitioner);
});

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting, is this a frontend issue I wonder? Does it work if you interact with the backend directly? Hopefully this doesn't cause any user interaction issues on the deployed application.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah it's only the first time a FHIR server is spun up that it happens which is interesting.

@stefpiatek stefpiatek merged commit f070df4 into main Dec 5, 2022
@stefpiatek stefpiatek deleted the fh_list_results branch December 5, 2022 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update list view queries
2 participants