@ampath/esm-patient-registration-app 6.0.1-pre.78 → 6.0.1-pre.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +4 -4
- package/dist/621.js +1 -1
- package/dist/621.js.map +1 -1
- package/dist/ampath-esm-patient-registration-app.js.buildmanifest.json +6 -6
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/patient-registration/patient-registration-hooks.ts +5 -4
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":"^2.24.0"},"pages":[{"component":"root","route":"patient-registration","online":true,"offline":true},{"component":"editPatient","routeRegex":"patient\\/([a-zA-Z0-9\\-]+)\\/edit","online":true,"offline":true}],"extensions":[{"component":"addPatientLink","name":"add-patient-action","slot":"top-nav-actions-slot","online":true,"offline":true},{"component":"cancelPatientEditModal","name":"cancel-patient-edit-modal","online":true,"offline":true},{"component":"patientPhotoExtension","name":"patient-photo-widget","slot":"patient-photo-slot","online":true,"offline":true},{"component":"editPatientDetailsButton","name":"edit-patient-details-button","slot":"patient-actions-slot","online":true,"offline":true},{"component":"editPatientDetailsButton","name":"edit-patient-details-button","slot":"patient-search-actions-slot","online":true,"offline":true},{"component":"deleteIdentifierConfirmationModal","name":"delete-identifier-confirmation-modal","online":true,"offline":true},{"component":"emptyClientRegistryModal","name":"empty-client-registry-modal","online":true,"offline":true},{"component":"confirmClientRegistryModal","name":"confirm-client-registry-modal","online":true,"offline":true}],"version":"6.0.1-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":"^2.24.0"},"pages":[{"component":"root","route":"patient-registration","online":true,"offline":true},{"component":"editPatient","routeRegex":"patient\\/([a-zA-Z0-9\\-]+)\\/edit","online":true,"offline":true}],"extensions":[{"component":"addPatientLink","name":"add-patient-action","slot":"top-nav-actions-slot","online":true,"offline":true},{"component":"cancelPatientEditModal","name":"cancel-patient-edit-modal","online":true,"offline":true},{"component":"patientPhotoExtension","name":"patient-photo-widget","slot":"patient-photo-slot","online":true,"offline":true},{"component":"editPatientDetailsButton","name":"edit-patient-details-button","slot":"patient-actions-slot","online":true,"offline":true},{"component":"editPatientDetailsButton","name":"edit-patient-details-button","slot":"patient-search-actions-slot","online":true,"offline":true},{"component":"deleteIdentifierConfirmationModal","name":"delete-identifier-confirmation-modal","online":true,"offline":true},{"component":"emptyClientRegistryModal","name":"empty-client-registry-modal","online":true,"offline":true},{"component":"confirmClientRegistryModal","name":"confirm-client-registry-modal","online":true,"offline":true}],"version":"6.0.1-pre.82"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ampath/esm-patient-registration-app",
|
|
3
|
-
"version": "6.0.1-pre.
|
|
3
|
+
"version": "6.0.1-pre.82",
|
|
4
4
|
"description": "Patient registration microfrontend for the OpenMRS SPA",
|
|
5
5
|
"browser": "dist/ampath-esm-patient-registration-app.js",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -36,7 +36,7 @@ import { useInitialPatientRelationships } from './section/patient-relationships/
|
|
|
36
36
|
import dayjs from 'dayjs';
|
|
37
37
|
|
|
38
38
|
export function useInitialFormValues(patientUuid: string): [FormValues, Dispatch<FormValues>] {
|
|
39
|
-
const { martialStatus, education, occupation, educationLoad } = useConcepts();
|
|
39
|
+
const { martialStatus, education, occupation, educationLoad, occupationLoad } = useConcepts();
|
|
40
40
|
const { isLoading: isLoadingPatientToEdit, patient: patientToEdit } = usePatient(patientUuid);
|
|
41
41
|
const { data: attributes, isLoading: isLoadingAttributes } = useInitialPersonAttributes(patientUuid);
|
|
42
42
|
const { data: identifiers, isLoading: isLoadingIdentifiers } = useInitialPatientIdentifiers(patientUuid);
|
|
@@ -325,7 +325,8 @@ export function usePatientObs(patientUuid: string) {
|
|
|
325
325
|
function useConcepts() {
|
|
326
326
|
const config = useConfig<RegistrationConfig>();
|
|
327
327
|
const { data: education, isLoading: educationLoad } = useConceptAnswers('a89e48ae-1350-11df-a1f1-0026b9348838');
|
|
328
|
-
const occupation:
|
|
328
|
+
const { data: occupation, isLoading: occupationLoad } = useConceptAnswers('a8a0a00e-1350-11df-a1f1-0026b9348838');
|
|
329
|
+
/* const occupation: Array<ConceptAnswers> = [
|
|
329
330
|
{
|
|
330
331
|
uuid: '1538AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',
|
|
331
332
|
display: 'Farmer',
|
|
@@ -354,7 +355,7 @@ function useConcepts() {
|
|
|
354
355
|
uuid: '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',
|
|
355
356
|
display: 'Other',
|
|
356
357
|
},
|
|
357
|
-
];
|
|
358
|
+
]; */
|
|
358
359
|
const martialStatus: Array<ConceptAnswers> = [
|
|
359
360
|
{
|
|
360
361
|
uuid: 'a8b03712-1350-11df-a1f1-0026b9348838',
|
|
@@ -401,5 +402,5 @@ function useConcepts() {
|
|
|
401
402
|
// .find((fieldDefinition) => fieldDefinition.id === 'maritalStatus')
|
|
402
403
|
// .customConceptAnswers.map((concept) => ({ uuid: concept.uuid, display: concept.label }));
|
|
403
404
|
|
|
404
|
-
return { martialStatus, education, occupation, educationLoad };
|
|
405
|
+
return { martialStatus, education, occupation, educationLoad, occupationLoad };
|
|
405
406
|
}
|