fix: stop mapping isDead label on patient detail
Removing the death_indicator transform keeps GET /api/patient/{id} from exposing isDeadLabel while still returning the raw flag.
This commit is contained in:
parent
1c1808fdb9
commit
dfe7a1fd0e
@ -82,15 +82,14 @@ class PatientModel extends BaseModel {
|
|||||||
unset($patient['Identifier']);
|
unset($patient['Identifier']);
|
||||||
unset($patient['Comment']);
|
unset($patient['Comment']);
|
||||||
|
|
||||||
$patient = ValueSet::transformLabels([$patient], [
|
$patient = ValueSet::transformLabels([$patient], [
|
||||||
'Sex' => 'sex',
|
'Sex' => 'sex',
|
||||||
'Country' => 'country',
|
'Country' => 'country',
|
||||||
'Race' => 'race',
|
'Race' => 'race',
|
||||||
'Religion' => 'religion',
|
'Religion' => 'religion',
|
||||||
'Ethnic' => 'ethnic',
|
'Ethnic' => 'ethnic',
|
||||||
'isDead' => 'death_indicator',
|
'MaritalStatus' => 'marital_status',
|
||||||
'MaritalStatus' => 'marital_status',
|
])[0];
|
||||||
])[0];
|
|
||||||
|
|
||||||
$patient['PatIdt'] = null;
|
$patient['PatIdt'] = null;
|
||||||
$patient['PatAtt'] = [];
|
$patient['PatAtt'] = [];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user