-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate payload for location inventory resource
- Loading branch information
1 parent
011513e
commit 5aa1997
Showing
4 changed files
with
302 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
packages/fhir-group-management/src/components/LocationInventory/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { IGroup } from '@smile-cdr/fhirts/dist/FHIR-R4/interfaces/IGroup'; | ||
import { | ||
product, | ||
quantity, | ||
deliveryDate, | ||
accountabilityEndDate, | ||
expiryDate, | ||
unicefSection, | ||
serialNumber, | ||
donor, | ||
PONumber, | ||
id, | ||
identifier, | ||
active, | ||
name, | ||
type, | ||
actual, | ||
} from '../../constants'; | ||
import { Group } from '@smile-cdr/fhirts/dist/FHIR-R4/classes/group'; | ||
|
||
export interface CommonGroupFormFields { | ||
[id]?: string; | ||
[identifier]?: string; | ||
[active]?: boolean; | ||
[actual]?: boolean; | ||
[name]?: string; | ||
[type]?: Group.TypeEnum; | ||
[quantity]?: number; | ||
[deliveryDate]: Date; | ||
[accountabilityEndDate]: Date; | ||
[expiryDate]: Date; | ||
[serialNumber]: number; | ||
[PONumber]: number; | ||
[donor]: string; | ||
[unicefSection]: string; | ||
[product]: string; | ||
} | ||
|
||
export interface GroupFormFields<InitialObjects = IGroup> extends CommonGroupFormFields { | ||
initialObject?: InitialObjects; | ||
} |
Oops, something went wrong.