Created
December 15, 2020 20:23
-
-
Save pgwilliams/1c46c57b173b84d44f66a92acf6cbe9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --location --request POST 'http://localhost:8090/fhir/ValueSet/$expand' \ | |
--header 'Content-Type: application/json' \ | |
--data-raw '{ | |
"resourceType": "Parameters", | |
"parameter": [ | |
{ | |
"name": "valueSet", | |
"resource": { | |
"resourceType": "ValueSet", | |
"compose": { | |
"include": [ | |
{ | |
"valueSet": "http://snomed.info/sct?fhir_vs=ecl/^ 32570581000036105 : << 263502005 = << 90734009%7CChronic%7C" | |
} | |
] | |
} | |
} | |
} | |
] | |
}' | |
curl --location --request POST 'https://r4.ontoserver.csiro.au/fhir/ValueSet/$expand' \ | |
--header 'Content-Type: application/json' \ | |
--data-raw '{ | |
"resourceType": "Parameters", | |
"parameter": [ | |
{ | |
"name": "valueSet", | |
"resource": { | |
"resourceType": "ValueSet", | |
"compose": { | |
"include": [ | |
{ | |
"valueSet": "http://snomed.info/sct?fhir_vs=ecl/^ 32570581000036105 : << 263502005 = << 90734009%7CChronic%7C" | |
} | |
] | |
} | |
} | |
} | |
] | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As this example currently stands, it will not work within the Snowstorm due to
include
not containing eitherconcept
orfilter
. As it currently stands, it will not be able to produce a valid ECL query and will throw an error. After a recent change, POST operations are now supported via ValueSet Expansion (with/without IdType). Here is an example which illustrates that using a POST request works inside Snowstorm for VS Expansion: