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['Comment']);
|
||||
|
||||
$patient = ValueSet::transformLabels([$patient], [
|
||||
'Sex' => 'sex',
|
||||
'Country' => 'country',
|
||||
'Race' => 'race',
|
||||
'Religion' => 'religion',
|
||||
'Ethnic' => 'ethnic',
|
||||
'isDead' => 'death_indicator',
|
||||
'MaritalStatus' => 'marital_status',
|
||||
])[0];
|
||||
$patient = ValueSet::transformLabels([$patient], [
|
||||
'Sex' => 'sex',
|
||||
'Country' => 'country',
|
||||
'Race' => 'race',
|
||||
'Religion' => 'religion',
|
||||
'Ethnic' => 'ethnic',
|
||||
'MaritalStatus' => 'marital_status',
|
||||
])[0];
|
||||
|
||||
$patient['PatIdt'] = null;
|
||||
$patient['PatAtt'] = [];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user