updateAllergyMutationVariables function
Implementation
Map<String, dynamic> updateAllergyMutationVariables(
AllergyIntolerance payload, String reason) {
final AllergyIntolerance payloadWithStatusUpdate = payload.copyWith.call(
clinicalStatus: payload.clinicalStatus!.copyWith(
coding: <Coding>[
payload.clinicalStatus!.coding!.first!.copyWith.call(
display: 'Resolved',
code: 'resolved',
userSelected: true,
)
],
text: 'Resolved',
),
);
return <String, dynamic>{'input': payloadWithStatusUpdate.toJson()};
}