Examples
Example 1: Searching Questionnaires Based on Two Snomed CT Codes
The following is an example of a GET request in which the search is based on two different SNOMED CT codes.
As a response, the Questionnaires (COSMIC templates) bound to these codes are included in a Bundle resource.
Snomed CT codes used for searching are 371526002 | Operative report (record artifact) and 448826009 | Brief operative note (record artifact).
Search Query
GET [baseURL]/Questionnaire/?search?code=1.2.752.116.2.1.1|371526002,1.2.752.116.2.1.1|448826009
Response
Bundle |
id : d8c89d74-b77a-491f-83bb-6e10dcfe8230 |
meta |
lastUpdated : 2021-10-14T00:00:00+00:00 |
type : searchset |
total : 2 |
link |
relation : self |
url : <host>/fhir/Questionnaire/_search?code=1.2.752.116.2.1.1%7C371526002%2C1.2.752.116.2.1.1%7C448826009 |
entry |
fullUrl : <host>/fhir/Questionnaire/359 |
resource |
id : 359 |
meta |
profile : https://fhir.cambio.se/StructureDefinition/QuestionnaireSeLite/v1 |
url : http://fhir.cambio.se/fhir/Questionnaire/359|3720 |
version : 3720 |
title : Operationsberättelse standard |
status : active |
useContext |
code |
system : https://cambio.codes/cs/usage-context-types |
code : cc |
display : Composition Context |
value |
text : Sökord:Operationsberättelse |
code |
system : urn:oid:1.2.752.116.2.1.1 |
code : 371526002 |
entry |
fullUrl : <host>/fhir/Questionnaire/143 |
resource |
id : 143 |
meta |
profile : https://fhir.cambio.se/StructureDefinition/QuestionnaireSeLite/v1 |
url : http://fhir.cambio.se/fhir/Questionnaire/143|3721 |
version : 3721 |
title : Operationsanteckning |
status : active |
useContext |
code |
system : https://cambio.codes/cs/usage-context-types |
code : cc |
display : Composition Context |
value |
text : Anteckningstyper:Operationsanteckning |
code |
system : urn:oid:1.2.752.116.2.1.1 |
code : 448826009 |