Use-Case 1: Create a Task
When using the EHR to create Resources, it is important to look in simplifier for the mandatory fields of the Resources. The EHR itself does not indicate which fields are mandatory, and does not return information about why a Resource could not be created.
Task creation
Creating a Task in the Koppeltaal server works just like any other Resource: using the RESTful API.
The Task resource can most easily be created using an official FHIR library. First consult the FHIR Downloads page to see if you can find a useful library. The final output of the code should be a POST request to the Koppeltaal server. More information on creating resources is described here.
Profile
The Koppeltaal server enforces compliance with the Koppeltaal KT2Task profile. The Task Resource must indicate that it's using the KT2Task profile. This is done in the Resource.meta.profile field.
Example Task
{
"resourceType": "Task",
"meta": {
"profile": [
"http://koppeltaal.nl/fhir/StructureDefinition/KT2Task"
]
},
"identifier": [
{
"system": "https://poc-portal.koppeltaal.headease.nl",
"value": "a4fb3572-e82c-421d-aca3-42c26face61a"
}
],
"instantiatesCanonical": "https://hapi-fhir-server.koppeltaal.headease.nl/fhir/ActivityDefinition/762/_history/1",
"status": "ready",
"intent": "order",
"executionPeriod": {
"start": "2021-09-21T10:50:20+02:00"
},
"owner": {
"reference": "Patient/00216d69-9c36-4c42-8837-8ee1bbc9c926"
}
}Last updated
Was this helpful?