Skip to content

Commit

Permalink
Merge branch 'bob/2663-query-flow-redirect' of https://github.com/CDC…
Browse files Browse the repository at this point in the history
…gov/dibbs-query-connector into bob/2663-query-flow-redirect
  • Loading branch information
fzhao99 committed Oct 15, 2024
2 parents aceb4b8 + cef6d5a commit 831388b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 21 deletions.
21 changes: 3 additions & 18 deletions containers/tefca-viewer/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion containers/tefca-viewer/src/app/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export type PatientType =
| "social-determinants"
| "sti-syphilis-positive";

export const DEFAULT_DEMO_FHIR_SERVER = "Public HAPI: Direct"
export const DEFAULT_DEMO_FHIR_SERVER = "Public HAPI: Direct";
/*
* Common "Hyper Unlucky" patient data used for all non-newborn screening use cases
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ export async function fetchQueryResponse(p: {
getNthElementIfDefined(p.patientForQuery.name, -1)?.given?.join(" ") ??
hyperUnluckyPatient.FirstName;
const patientLastName =
getNthElementIfDefined(p.patientForQuery.name, -1)?.family ?? hyperUnluckyPatient.LastName;
getNthElementIfDefined(p.patientForQuery.name, -1)?.family ??
hyperUnluckyPatient.LastName;

const patientMRN =
getNthElementIfDefined(p.patientForQuery.identifier)?.value ??
Expand Down
7 changes: 6 additions & 1 deletion containers/tefca-viewer/src/app/query/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ import ResultsView from "./components/ResultsView";
import PatientSearchResults from "./components/PatientSearchResults";
import SearchForm from "./components/searchForm/SearchForm";
import SelectQuery from "./components/SelectQuery";
import { DEFAULT_DEMO_FHIR_SERVER, FHIR_SERVERS, Mode, USE_CASES } from "../constants";
import {
DEFAULT_DEMO_FHIR_SERVER,
FHIR_SERVERS,
Mode,
USE_CASES,
} from "../constants";
import LoadingView from "./components/LoadingView";
import { ToastContainer } from "react-toastify";

Expand Down

0 comments on commit 831388b

Please sign in to comment.