PTS API Release Notes
All notable changes to the PTS API will be documented in this file.
Subscribe to notifications on #ext-utv-pts on Slack to be notified when we announce new releases.
You'll also notice we often use icons to visualize our changes and their effect, but we've limited ourselves to the following;
- 🌱 New Feature
- 🍃 Improvement
- 🔧 Bug Fix
- 💥 Breaking Change
- 🔒 Security
PTS API v0.5
Changes to how associate-parent
handles $.cause
These changes only affect POST /v0.5/access-restrictions/patient-safety/associate-parent
, and you can still set $.cause
for v0.3
and v0.4
.
- 💥 The
$.cause
field is no longer required- This value is automatically set to
Derived
if$.delayDeliveryUntil
was recalculated based on the associated parent's$.delayDays
and the specified$.delayFromTime
; otherwise the value is set toAutomated
. The valuesUndefined
andManual
can not be set as part of theassociate-parent
operation, but a parent can still have its$.cause
set to any of these when it was created.
- This value is automatically set to
Changes to routes
These changes affect all routes.
- 💥 The route for patient safety has changed from
/access-restrictions/patient-safety
to/v0.5/access-restrictions/patient-safety
, and as such we no longer require theapi-version
header. The older versions, e.g.v0.3
andv0.4
still live on the old route and requires theapi-version
header to switch between the two.
Changes to $.createdBy
and $.createdTime
These changes only affect POST /v0.5/access-restrictions/patient-safety
- 🍃 Introduced stricter validation when creating restrictions for both
Rekvisisjon
andSvarrapport
to ensure that only well-formed restrictions are created.$.cause
must be one ofManual
orAutomated
$.delayDays
can only be used forRekvisisjon
$.delayDeliveryUntil
can only be used forSvarrapport
- 💥Changed type of
$.createdBy
fromHealthIdIdentifiersDtoV04
toAuditablePartyDtoV05
since neitherOffId
norHprNumber
are available through client credentials tokens, and thus haven't been persisted. Instead the new auditable party type consits ofclientId
,orgNrParent
,orgNrChild
andorgNrSupplier
as extracted from the Helse ID token used to create or update the resource. - 💥 Replaced
$.createdTime
with$.createdDateTime
PTS API v0.4
TL;DR: This version removes support for Bearer tokens and adds support for DPoP tokens
Remove support for Bearer tokens; require DPoP
- 💥 Removed Bearer authentication for
/access-restrictions
endpoints - 🌱🔒 Added DPoP authentication for
/access-restrictions
endpoints
PTS API v0.3
Improvements
- 🍃 Results for
POST /access-restrictions/patient-safety/_search
is now ordered descending by created date