9. The coordinator checks that a patient has filled out the previsit survey
POST https://api-{{tenant-id}}.developer.commure.com/api/v1/r4/QuestionnaireResponse/
The care coordinator ensures that the patient filled the previsit survey and uploaded this information using the client application. To create the survey the QuestionnaireResponse
resource is used, this help us save the questions and answers the patients fill.
Request Body
{"resourceType"=>"QuestionnaireResponse", "status"=>"completed", "subject"=>{"reference"=>"Patient/{{patient-id}}", "type"=>"Patient"}, "authored"=>"2013-02-19T14:15:00+10:00", "author"=>{"reference"=>"Practitioner/{{practitioner-id}}", "type"=>"Practitioner"}, "item"=>[{"linkId"=>"birthDetails", "text"=>"Birth details - To be completed by health professional", "item"=>[{"linkId"=>"group", "item"=>[{"linkId"=>"nameOfChild", "text"=>"Name of child", "answer"=>[{"valueString"=>"Cathy Jones"}]}, {"linkId"=>"sex", "text"=>"Sex", "answer"=>[{"valueCoding"=>{"code"=>"f"}}]}]}, {"linkId"=>"neonatalInformation", "text"=>"Neonatal Information", "item"=>[{"linkId"=>"birthWeight", "text"=>"Birth weight (kg)", "answer"=>[{"valueDecimal"=>3.25}]}, {"linkId"=>"birthLength", "text"=>"Birth length (cm)", "answer"=>[{"valueDecimal"=>44.3}]}, {"linkId"=>"vitaminKgiven", "text"=>"Vitamin K given", "answer"=>[{"valueCoding"=>{"code"=>"INJECTION"}, "item"=>[{"linkId"=>"vitaminKgivenDoses", "item"=>[{"linkId"=>"vitaminKDose1", "text"=>"1st dose", "answer"=>[{"valueDate"=>"1972-11-30"}]}, {"linkId"=>"vitaminKDose2", "text"=>"2nd dose", "answer"=>[{"valueDate"=>"1972-12-11"}]}]}]}]}, {"linkId"=>"hepBgiven", "text"=>"Hep B given y / n", "answer"=>[{"valueBoolean"=>true, "item"=>[{"linkId"=>"hepBgivenDate", "text"=>"Date given", "answer"=>[{"valueDate"=>"1972-12-04"}]}]}]}, {"linkId"=>"abnormalitiesAtBirth", "text"=>"Abnormalities noted at birth", "answer"=>[{"valueString"=>"heart defect"}]}]}]}]}
RESPONSES
status: Created
{"resourceType":"QuestionnaireResponse","id":"652e23b1-c207-4e37-a7c5-c81892a105f7","meta":{"extension":[{"extension":[{"url":"clientname","valueString":"dashboard"},{"url":"person","valueReference":{"reference":"Person/bea178a0-6ea4-4b47-99af-e4021bba8f99"}}],"url":"https://commure.com/fhir/provenance/StructureDefinition/creator-structure-map"}],"versionId":"77a1812a-5aaf-456f-ac19-f58051994c9d","lastUpdated":"2020-11-02T12:24:07.716976+00:00"},"status":"completed","subject":{"reference":"Patient/1c207762-db80-49db-aff5-4a9b81837d68","type":"Patient"},"authored":"2013-02-19T14:15:00+10:00","author":{"reference":"Practitioner/cbe538c4-6784-4903-bad5-bfc3f6a56ce9","type":"Practitioner"},"item":[{"linkId":"birthDetails","text":"Birth details - To be completed by health professional","item":[{"linkId":"group","item":[{"linkId":"nameOfChild","text":"Name of child","answer":[{"valueString":"Cathy Jones"}]},{"linkId":"sex","text":"Sex","answer":[{"valueCoding":{"code":"f"}}]}]},{"linkId":"neonatalInformation","text":"Neonatal Information","item":[{"linkId":"birthWeight","text":"Birth weight (kg)","answer":[{"valueDecimal":3.25}]},{"linkId":"birthLength","text":"Birth length (cm)","answer":[{"valueDecimal":44.3}]},{"linkId":"vitaminKgiven","text":"Vitamin K given","answer":[{"valueCoding":{"code":"INJECTION"},"item":[{"linkId":"vitaminKgivenDoses","item":[{"linkId":"vitaminKDose1","text":"1st dose","answer":[{"valueDate":"1972-11-30"}]},{"linkId":"vitaminKDose2","text":"2nd dose","answer":[{"valueDate":"1972-12-11"}]}]}]}]},{"linkId":"hepBgiven","text":"Hep B given y / n","answer":[{"valueBoolean":true,"item":[{"linkId":"hepBgivenDate","text":"Date given","answer":[{"valueDate":"1972-12-04"}]}]}]},{"linkId":"abnormalitiesAtBirth","text":"Abnormalities noted at birth","answer":[{"valueString":"Already able to speak Chinese"}]}]}]}]}