Requesting A ValueSet Expansion

ValueSet expansion can be invoked using the HTTP GET on the following URL:

http://<HOST_NAME>:<PORT>/oracle-fhir-server/fhir/ValueSet/$expand?url=my_custom_value_set

This will return the following response. Note that the hierarchy is not included in the response.

{
  "resourceType": "ValueSet",
  "id": "200007",
  "meta": {
    "extension": [ {
      "url": "http://hapifhir.io/fhir/StructureDefinition/valueset-expansion-message",
      "valueString": "ValueSet was expanded using an expansion that was pre-calculated at 2023-08-16T20:14:35.055+05:30 (00:28:24 ago)"
    } ],
    "versionId": "1"
  },
  "url": "http://example.com/my_custom_value_set",
  "status": "active",
  "compose": {
    "include": [ {
      "system": "http://example.com/my_custom_codeSystem",
      "filter": [ {
        "property": "concept",
        "op": "is-a",
        "value": "P"
      } ]
    }, {
      "system": "http://example.com/my_custom_codeSystem",
      "concept": [ {
        "code": "P"
      } ]
    } ]
  },
  "expansion": {
    "identifier": "d802bee9-5447-4ecd-92f9-062b704ca566",
    "timestamp": "2023-08-16T20:42:59+05:30",
    "total": 4,
    "offset": 0,
    "parameter": [ {
      "name": "offset",
      "valueInteger": 0
    }, {
      "name": "count",
      "valueInteger": 1000
    } ],
    "contains": [ {
      "system": "http://example.com/my_custom_codeSystem",
      "code": "PP",
      "display": "Code PP"
    }, {
      "system": "http://example.com/my_custom_codeSystem",
      "code": "PPP",
      "display": "Code PPP"
    }, {
      "system": "http://example.com/my_custom_codeSystem",
      "code": "PQ",
      "display": "Code PQ"
    }, {
      "system": "http://example.com/my_custom_codeSystem",
      "code": "P",
      "display": "Code P"
    } ]
  }
}