Listing subscription topics

A client can list the available subscription topics by issuing a GET request for the SubscriptionTopic resources. For example:

curl -sS "https://${server}/fhir/r5/api/SubscriptionTopic" \
  -H "client_id: ${client_id}" \
  -H "client_secret: ${client_secret}" \
  -H "org_id: ${org_id}" \
  -H "certificate: ${certificate}" | jq

Result:

{
  "resourceType": "Bundle",
  "id": "12c4a760-5cd6-437a-9956-a80531132322",
  "type": "searchset",
  "total": 3,
  "entry": [
    {
      "resource": {
        "resourceType": "SubscriptionTopic",
        "id": "NutritionMeasurements",
        "title": "Nutrition Measurements",
        "status": "active"
      }
    },
    {
      "resource": {
        "resourceType": "SubscriptionTopic",
        "id": "InsulinAdministration",
        "title": "Insulin Administration",
        "status": "active"
      }
    },
    {
      "resource": {
        "resourceType": "SubscriptionTopic",
        "id": "BgMeasurements",
        "title": "Blood Glucose Measurements",
        "status": "active"
      }
    }
  ]
}

⚠️ ️Known issue: The results do not include the canonical URL-s of the subscription topics thus clients need to know that the canonical URL corresponding to a topic is http://roche.com/fhir/iop/SubscriptionTopic/{id}