Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"@hapi/boom": "^9.1.1",
"@hapi/hapi": "^20.0.1",
"@hapi/inert": "^6.0.3",
"@opencrvs/toolkit": "1.9.2-rc.5ad83cd",
"@opencrvs/toolkit": "1.9.2-rc.d14799e",
"@types/chalk": "^2.2.0",
"@types/csv2json": "^1.4.0",
"@types/fhir": "^0.0.30",
Expand Down
21 changes: 21 additions & 0 deletions src/form/v2/birth/forms/pages/child.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,27 @@ export const child = defineFormPage({
streetAddressForm: defaultStreetAddressConfiguration
}
},
{
id: 'child.birthLocationId',
type: FieldType.ALPHA_HIDDEN,
required: false,
label: {
defaultMessage: 'Health Institution',
description: 'This is the label for the field',
id: 'event.birth.action.declare.form.section.child.field.birthLocation.label'
},
parent: [
field('child.placeOfBirth'),
field('child.birthLocation'),
field('child.birthLocation.privateHome'),
field('child.birthLocation.other')
],
value: [
field('child.birthLocation'),
field('child.birthLocation.privateHome').get('administrativeArea'),
field('child.birthLocation.other').get('administrativeArea')
]
},
{
id: 'child.divider2',
type: FieldType.DIVIDER,
Expand Down
1 change: 1 addition & 0 deletions src/form/v2/birth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export const birthEvent = defineConfig({
id: 'event.birth.label'
},
dateOfEvent: field('child.dob'),
placeOfEvent: field('child.birthLocationId'),
title: {
defaultMessage: '{child.name.firstname} {child.name.surname}',
description: 'This is the title of the summary',
Expand Down
21 changes: 21 additions & 0 deletions src/form/v2/death/forms/pages/eventDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,27 @@ export const eventDetails = defineFormPage({
configuration: {
streetAddressForm: defaultStreetAddressConfiguration
}
},
{
id: 'eventDetails.deathLocationId',
type: FieldType.ALPHA_HIDDEN,
required: false,
label: {
defaultMessage: 'Health Institution',
description: 'This is the label for the field',
id: 'event.birth.action.declare.form.section.child.field.birthLocation.label'
},
parent: [
field('eventDetails.placeOfDeath'),
field('eventDetails.deathLocation'),
field('eventDetails.deathLocationOther'),
field('deceased.address')
],
value: [
field('eventDetails.deathLocation'),
field('eventDetails.deathLocationOther').get('administrativeArea'),
field('deceased.address').get('administrativeArea')
]
}
]
})
1 change: 1 addition & 0 deletions src/form/v2/death/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const deathEvent = defineConfig({
id: 'event.death.label'
},
dateOfEvent: field('eventDetails.date'),
placeOfEvent: field('eventDetails.deathLocationId'),
title: {
defaultMessage: '{deceased.name.firstname} {deceased.name.surname}',
description: 'This is the title of the summary',
Expand Down
Loading