🐛 fix (general-consent): fix type error when create encounter
This commit is contained in:
@@ -132,10 +132,11 @@ async function actionHandler(type: string) {
|
|||||||
if (data) {
|
if (data) {
|
||||||
const resp2 = await create({
|
const resp2 = await create({
|
||||||
entityType_code: 'encounter',
|
entityType_code: 'encounter',
|
||||||
ref_id: +data?.id,
|
ref_id: data?.id,
|
||||||
type_code: 'general-consent',
|
type_code: 'general-consent',
|
||||||
})
|
})
|
||||||
console.log('resp2', resp2.body?.data)
|
console.log('resp2', resp2.body?.data)
|
||||||
|
backToList()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log('Ada error di form', result)
|
console.log('Ada error di form', result)
|
||||||
|
|||||||
Reference in New Issue
Block a user