...
Check current date >= authored_on >= (current date - DEVICE_REQUEST_DELAY_INPUT)
in case of error - return 422 “Authored on date must be in range of <current date> and <current date - DEVICE_REQUEST_DELAY_INPUT>”
Check authored_on comply with the encounter dates
if encounter has ‘date’ attribute, then check $.authored_on >= $.encounter.date
in case of error - return 422 ('Authored on date must be greater or equal to Encounter start date')
if encounter has ‘period’ attribute, then check $.authored_on .start >= $.encounter.period.start
in case of error - return 422 ('Authored on date must be greater than or equal to Encounter period start')
...