Skip to content

Commit

Permalink
add documenation of 'wards' config param
Browse files Browse the repository at this point in the history
  • Loading branch information
chibongho committed Oct 10, 2024
1 parent 5139689 commit cfbf5d4
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions packages/esm-ward-app/src/config-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,30 @@ export const configSchema: ConfigSchema = {
},
},
},
wards: {
_description: 'Configuration of what type of ward to use at different ward locations.',
_type: Type.Array,
_default: [{ id: 'default-ward' }],
_elements: {
id: {
_type: Type.String,
_description:
'The ward type to use. Currently, "default-ward" and "maternal-ward" are supported. This string also serves as the extension slot name for the ward view.',
},
appliedTo: {
_type: Type.Array,
_description:
'Optional. Conditions under which this card definition should be used. If not provided, the configuration is applied to all wards.',
_elements: {
location: {
_type: Type.UUID,
_description: 'The UUID of the location. If not provided, applies to all wards.',
_default: null,
},
},
},
},
},
};

export interface WardConfigObject {
Expand Down

0 comments on commit cfbf5d4

Please sign in to comment.