Skip to content

Commit

Permalink
Merge pull request #558 from abertnamanya/addOrderupdates
Browse files Browse the repository at this point in the history
Order changes
  • Loading branch information
mozzy11 authored Sep 20, 2023
2 parents e1bc45c + defaf46 commit a797bec
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 32 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/addOrder/AddOrder.js
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ const AddOrder = (props) => {
className="inputDate"
labelText={<FormattedMessage id="sample.entry.nextVisit.date" />}
value={orderFormValues.sampleOrderItems.nextVisitDate}
autofillDate={true}
autofillDate={false}
onChange={(date) => handleDatePickerChange("nextVisitDate", date)}
/>
</div>
Expand Down
57 changes: 30 additions & 27 deletions frontend/src/components/patient/CreatePatientForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@ function CreatePatientForm(props) {
)}
</Field>
</div>
<Accordion>
<AccordionItem title="Emergency Contact Information">
<div className="inlineDiv">
<Field name="patientContact.person.lastName">
{({ field }) => (
Expand Down Expand Up @@ -427,18 +429,10 @@ function CreatePatientForm(props) {
</div>
<div className="error"></div>
</div>
</AccordionItem>
</Accordion>

<div className="inlineDiv">
<Field name="city">
{({ field }) => (
<TextInput
value={values.city}
name={field.name}
labelText="Town"
id={field.name}
className="inputText"
/>
)}
</Field>
<Field name="primaryPhone">
{({ field }) => (
<TextInput
Expand All @@ -450,6 +444,20 @@ function CreatePatientForm(props) {
/>
)}
</Field>
<Field name="gender">
{({ field }) => (
<RadioButtonGroup
valueSelected={values.gender}
legendText="Gender"
name={field.name}
className="inputText"
id="create_patient_gender"
>
<RadioButton id="radio-1" labelText="Male" value="M" />
<RadioButton id="radio-2" labelText="Female" value="F" />
</RadioButtonGroup>
)}
</Field>
</div>
<div className="inlineDiv">
<Field name="birthDateForDisplay">
Expand Down Expand Up @@ -507,25 +515,20 @@ function CreatePatientForm(props) {
<ErrorMessage name="gender"></ErrorMessage>
</div>
</div>
<div className="inlineDiv">
<Field name="gender">
{({ field }) => (
<RadioButtonGroup
valueSelected={values.gender}
legendText="Gender"
name={field.name}
className="inputText"
id="create_patient_gender"
>
<RadioButton id="radio-1" labelText="Male" value="M" />
<RadioButton id="radio-2" labelText="Female" value="F" />
</RadioButtonGroup>
)}
</Field>
</div>
<Accordion>
<AccordionItem title="Additional Information">
<div className="inlineDiv">
<Field name="city">
{({ field }) => (
<TextInput
value={values.city}
name={field.name}
labelText="Town"
id={field.name}
className="inputText"
/>
)}
</Field>
<Field name="streetAddress">
{({ field }) => (
<TextInput
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@
"header.label.logout" :"Logout" ,
"header.label.selectlocale" : "Select Locale" ,
"sidenav.label.order" : "Order",
"sidenav.label.addorder" : "Add Oder" ,
"sidenav.label.editorder" : "Edit Oder" ,
"sidenav.label.addorder" : "Add Order" ,
"sidenav.label.editorder" : "Edit Order" ,
"sidenav.label.incomingorder" : "Incoming Orders",
"sidenav.label.batchorder" : "Batch Order Entry" ,
"sidenav.label.barcode" : "Barcode" ,
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/languages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@
"header.label.logout" :"Déconnexion",
"header.label.selectlocale" : "Sélectionner la Langue",
"sidenav.label.order" : "Commande",
"sidenav.label.addorder" : "Ajouter une Commande",
"sidenav.label.editorder" : "Modifier une Commande",
"sidenav.label.addorder" : "Ajouter une commande",
"sidenav.label.editorder" : "Modifier la commande",
"sidenav.label.incomingorder" : "Commandes Entrantes",
"sidenav.label.batchorder" : "Saisie de Commande en Lot",
"sidenav.label.barcode" : "Code-barres",
Expand Down

0 comments on commit a797bec

Please sign in to comment.