...
dayOfWeek
dayOfWeek should used to set
ServiceRequest.occurrenceTiming.repeat.boundsPeriod.start
.The value in dayOfWeek must be removed from
ServiceRequest.occurrenceTiming.repeat.dayOfWeek
.
timeOfDay
timeOfDay is ignored for frequency-based timing but should be used to set
ServiceRequest.occurrenceTiming.repeat.boundsPeriod.start
For clarity it is advised to remove the value in timeOfDay as it is not used for frequency-based timing.
boundsDuration
If “Angiv varighed” is filled out, boundsDuration should be used to set
ServiceRequest.occurrenceTiming.repeat.boundsPeriod.end
boundsDuration must be removed
Example
Expression from PlanDefinition.action[].timingTiming.repeat
created in KAM. (Intention from KAM: Every second Monday at 10 AM, for 2 months)
Code Block |
---|
"repeat": { "frequency": 1, "period": 2, "periodUnit": "wk", "dayOfWeek": [ "mon" ], "timeOfDay": [ "10:00:00" ], "boundsDuration": { "unit": "mo", "value": "2" } } |
Must be transformed to:
Code Block |
---|
"repeat": { "frequency": 1, "period": 2, "periodUnit": "wk", "boundsPeriod": { "start": "2023-09-04T10:00:00.000+02:00" <-- Starting from a Monday at 10 AM } } "end": "2023-11-04T10:00:00.000+02:00" <-- ending after 2 months } } |
For periodUnit: other than WK(weekly)
...
timeOfDay
timeOfDay is ignored for frequency-based timing but should be used to set
ServiceRequest.occurrenceTiming.repeat.boundsPeriod.start
For clarity it is advised to remove the value in timeOfDay as it is not used for frequency-based timing.
boundsDuration
If “Angiv varighed” is filled out, boundsDuration should be used to set
ServiceRequest.occurrenceTiming.repeat.boundsPeriod.end
boundsDuration must be removed
Expression from PlanDefinition.action[].timingTiming.repeat
created in KAM. (Intention from KAM: Every third day at 10 AM, for 2 months)
Code Block |
---|
"repeat": { "duration": 2, "durationUnit": "h", "frequency": 1, "period": 3, "periodUnit": "d", "timeOfDay": [ "10:00:00" ], "periodboundsDuration": { 3, "periodUnitunit": "dmo", "timeOfDayvalue": [ "10:00:00" ]2" } } |
Must be transformed to:
Code Block |
---|
"repeat": {
"duration": 2,
"durationUnit": "h",
"frequency": 1,
"period": 3,
"periodUnit": "d",
"boundsPeriod": {
"start": "2023-08-28T10:00:00.000+02:00" <-- Starting from a Monday at 10 AM
"end": "2023-10-28T10:00:00.000+02:00" <-- ending after 2 months
}
} |
Maintaining ServiceRequest Status
...