Skip to content

Commit

Permalink
Merge branch 'develop' into MAT-7529
Browse files Browse the repository at this point in the history
  • Loading branch information
adongare committed Jan 2, 2025
2 parents 6e7b2fc + 4fc00db commit 13adcd2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,6 @@ const EditTestCase = () => {
series: currentTestCase?.series || "",
json: currentTestCase?.json || "",
groupPopulations: currentTestCase?.groupPopulations || [],
birthDate: qdmPatient?.birthDatetime
? dayjs(qdmPatient?.birthDatetime)
: null,
},
enableReinitialize: true,
validationSchema: QDMPatientSchemaValidator,
Expand Down Expand Up @@ -174,10 +171,6 @@ const EditTestCase = () => {
const patient: QDMPatient = JSON.parse(formik.values.json);
if (patient) {
setQdmPatient(patient);
formik.setFieldValue(
"birthDate",
patient?.birthDatetime ? dayjs(patient?.birthDatetime) : null
);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ import React, { useEffect, useState } from "react";
import ElementSection from "../../../../../common/ElementSection";
import { Select } from "@madie/madie-design-system/dist/react";
import FormControl from "@mui/material/FormControl";
import {
DataElement,
QDMPatient,
PatientCharacteristicExpired,
} from "cqm-models";
import { DataElement, QDMPatient } from "cqm-models";
import DateTimeInput from "../../../../../common/dateTimeInput/DateTimeInput";
import dayjs from "dayjs";
import "./DemographicsSection.scss";
Expand Down Expand Up @@ -45,8 +41,6 @@ const DemographicsSection = ({ canEdit }) => {
const { state, dispatch } = useQdmPatient();
const { patient } = state;
// this will be local
const [birthDateDataElement, setBirthDateDataElement] =
useState<DataElement>();
const [raceDataElement, setRaceDataElement] = useState<DataElement>();
const [genderDataElement, setGenderDataElement] = useState<DataElement>();
const [ethnicityDataElement, setEthnicityDataElement] =
Expand Down

0 comments on commit 13adcd2

Please sign in to comment.