diff --git a/docker-compose.yml b/docker-compose.yml index 286451871d..a95422ae8f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -88,13 +88,8 @@ services: frontend.openelis.org: image: ghcr.io/i-tech-uw/openelis-global-2-frontend:2.8 container_name: openelisglobal-front-end - # ports: - # - 80:80 networks: - default - volumes: - - './react-ui/src:/app/src' - - './react-ui/public:/app/public' environment: - CHOKIDAR_USEPOLLING=true tty: true diff --git a/frontend/src/components/addOrder/Index.js b/frontend/src/components/addOrder/Index.js index 2a9659b450..b08db9666c 100755 --- a/frontend/src/components/addOrder/Index.js +++ b/frontend/src/components/addOrder/Index.js @@ -54,6 +54,7 @@ const Index = () => { , NotificationKinds.success, ); + setPage(page + 1); } else { showAlertMessage( , @@ -63,7 +64,6 @@ const Index = () => { }; const handleSubmitOrderForm = (e) => { e.preventDefault(); - setPage(page + 1); console.log(JSON.stringify(orderFormValues)) postToOpenElisServer( "/rest/SamplePatientEntry", diff --git a/frontend/src/components/patient/CreatePatientForm.js b/frontend/src/components/patient/CreatePatientForm.js index feaab2c1ef..1230e8679b 100644 --- a/frontend/src/components/patient/CreatePatientForm.js +++ b/frontend/src/components/patient/CreatePatientForm.js @@ -97,7 +97,8 @@ function CreatePatientForm(props) { })); } - function handleYearsChange(e){ + function handleYearsChange(e, values) { + setPatientDetails(values) let years = e.target.value; setDateOfBirthFormatter({ ...dateOfBirthFormatter, @@ -105,7 +106,8 @@ function CreatePatientForm(props) { }); } - function handleMonthsChange(e){ + function handleMonthsChange(e, values) { + setPatientDetails(values); let months = e.target.value; setDateOfBirthFormatter({ ...dateOfBirthFormatter, @@ -113,7 +115,8 @@ function CreatePatientForm(props) { }); } - function handleDaysChange(e){ + function handleDaysChange(e, values) { + setPatientDetails(values) let days = e.target.value; setDateOfBirthFormatter({ ...dateOfBirthFormatter, @@ -487,7 +490,8 @@ function CreatePatientForm(props) { name="years" labelText="Age/Years" id="years" - onChange={ handleYearsChange } + type="number" + onChange={ (e) => handleYearsChange(e ,values) } className="inputText" /> @@ -495,7 +499,8 @@ function CreatePatientForm(props) { value={dateOfBirthFormatter.months} name="months" labelText="Months" - onChange={ handleMonthsChange } + type="number" + onChange={ (e) => handleMonthsChange(e,values) } id="months" className="inputText" /> @@ -503,7 +508,8 @@ function CreatePatientForm(props) { handleDaysChange(e ,values)} labelText="Days" id="days" className="inputText" diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index b8f25dcd77..c0fb575752 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,6 +1,47 @@ -# org.openelisglobal.facilitylist.fhirstore = http://localhost:4000/fhir/DEFAULT -# org.openelisglobal.facilitylist.authurl= http://localhost:4000/auth/token -# org.openelisglobal.facilitylist.username= root@gofr.org -# org.openelisglobal.facilitylist.password= gofr -# org.openelisglobal.facilitylist.auth= token -facilitylist.schedule.fixedRate=864000000 \ No newline at end of file +#Faclity FHIR server +#org.openelisglobal.facilitylist.fhirstore = https://hub.openelisci.org:5000/gofr/exemple4 +#org.openelisglobal.facilitylist.authurl= https://hub.openelisci.org:5000/gofr/token +#org.openelisglobal.facilitylist.username= root@gofr.org +#org.openelisglobal.facilitylist.password= gofr +#org.openelisglobal.facilitylist.auth= token +facilitylist.schedule.fixedRate=864000000 + +#Liquibase Profile +#spring.liquibase.contexts= + + +#Local FHIR server +#org.openelisglobal.server.uri=https://oe.openelis.org:8443/OpenELIS-Global/fhir/ +#org.openelisglobal.datasubscriber.uri=https://datasubscriber.openelis.org:8443/subscription/fhirResourceGroup/ +org.openelisglobal.fhirstore.uri=http://localhost:8082/fhir/ + +# Remote FHIR server/Consolidated Server +#org.openelisglobal.remote.source.uri=http://localhost:8081/fhir/ +#org.openelisglobal.remote.source.identifier=Practitioner/f9badd80-ab76-11e2-9e96-0800200c9a66 +#org.openelisglobal.remote.source.updateStatus=false +#org.openelisglobal.task.useBasedOn=true +#org.openelisglobal.fhirstore.username=openelis +#org.openelisglobal.fhirstore.password=Openelis123! +#org.openelisglobal.fhir.subscriber.allowHTTP=true + +#org.openelisglobal.fhir.subscriber=http://localhost:8081/fhir/ +#org.openelisglobal.fhir.subscriber.resources=Task,Patient,ServiceRequest,DiagnosticReport,Observation,Specimen,Practitioner,Encounter + +#provider FHIR server +#org.openelisglobal.providerlist.fhirstore=http://localhost:8081/fhir/ +#org.openelisglobal.requester.identifier=Practitioner/f9badd80-ab76-11e2-9e96-0800200c9a66 +#org.openelisglobal.requester.lastName=Dr. Mauritius +#org.openelisglobal.requester.firstName=Felix +#org.openelisglobal.requester.phone=230 5123 1234 + +#Hibernate Config +#spring.jpa.show-sql=true +#spring.jpa.properties.hibernate.format_sql=true + +# SSL Config +server.ssl.key-store = file:/ssl/lf.keystore +server.ssl.key-store-password = testtest +server.ssl.key-password = testtest +server.ssl.trust-store=file:/ssl/lf.truststore +server.ssl.trust-store-password=testtest +