add icd 10 ibject and api call
This commit is contained in:
parent
88738edff1
commit
80691475f2
1 changed files with 23 additions and 0 deletions
23
Frontend/lib/mih_objects/icd10_code.dart.dart
Normal file
23
Frontend/lib/mih_objects/icd10_code.dart.dart
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
class ICD10Code {
|
||||||
|
final String icd10;
|
||||||
|
final String description;
|
||||||
|
|
||||||
|
const ICD10Code({
|
||||||
|
required this.icd10,
|
||||||
|
required this.description,
|
||||||
|
});
|
||||||
|
|
||||||
|
factory ICD10Code.fromJson(Map<String, dynamic> json) {
|
||||||
|
return switch (json) {
|
||||||
|
{
|
||||||
|
"icd10": String icd10,
|
||||||
|
'description': String description,
|
||||||
|
} =>
|
||||||
|
ICD10Code(
|
||||||
|
icd10: icd10,
|
||||||
|
description: description,
|
||||||
|
),
|
||||||
|
_ => throw const FormatException('Failed to load icd10 code object.'),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue