Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The $expand operation, as defined as part of US Core 6.1.0, is used to determine the values in a ValueSet.
$expand parameters
| Parameter | Description |
|---|---|
| url | Canonical reference of the value set. |
| valueSet | Provide the value set directly as part of the request. |
| context | The context of the value set. For more information see $expand. |
Note
Other $expand parameters beyond this list aren't currently supported.
Example $expand requests
Expanding a value set by its canonical URL using GET syntax
GET [base]/ValueSet/$expand?url=http://acme.com/fhir/ValueSet/23
Expanding a value set by its canonical URL using POST syntax
POST [base]/ValueSet/$expand
POST request body:
{
"resourceType": "Parameters",
"id": "expand",
"parameter": [
{
"name": "url",
"value": "http://acme.com/fhir/ValueSet/23"
}
]
}
Expanding a value set already registered on the server using GET syntax
GET [base]/ValueSet/23/$expand
Expanding a value set in the parameters using POST syntax
POST [base]/ValueSet/$expand
POST request body:
{
"resourceType": "Parameters",
"id": "expand",
"parameter": [
{
"name": "valueSet",
"resource": {
"resourceType": "ValueSet",
<value set details>
}
}
]
}
Expanding a value set for a particular element, for what a client is allowed to PUT/POST
GET [base]/ValueSet/$expand? context=http://fhir.org/guides/argonaut-clinicalnotes/StructureDefinition/argo-diagnosticreport#DiagnosticReport.category
Related content
US Core overview in Azure Health Data Services FHIR
Note
FHIR® is a registered trademark of HL7 and is used with the permission of HL7.