Examples
Example 1: Creating a QuestionnaireResponse
The following is an example of a POST request where a QuestionnaireResponse is created on a Questionnaire with id=143. To be able to specify HSA id:s for both unit and practitioner, a PractitionerRole resource is contained within the QuestionnaireResponse
Request
POST [baseURL]/QuestionnaireResponse
Body
QuestionnaireResponse |
meta |
profile : https://fhir.cambio.se/StructureDefinition/QuestionnaireResponseSe/v1 |
contained |
id : 1 |
practitioner |
identifier |
system : urn:oid:1.2.752.129.2.1.4.1 |
value : SE-123-231-123 |
organization |
identifier |
system : urn:oid:1.2.752.129.2.1.4.1 |
value : SE-123-123-123 |
questionnaire : http://fhir.cambio.se/fhir/Questionnaire/143|3721 |
status : completed |
subject |
identifier |
system : urn:oid:1.2.752.129.2.1.3.1 |
value : 198809091823 |
authored : 2021-10-16T03:15:00+01:00 |
author |
reference : #1 |
type : PractitionerRole |
item |
linkId : 143.3721.0.877 |
answer |
value : true |
item |
linkId : 143.3721.1.61 |
answer |
value : Anders Andersson, Johan Johansson & Peter Petersson |
item |
linkId : 143.3721.2.209 |
answer |
value : Operationen gick bra. |