Implementation Guide
23.1.0 - R4 APIs

Publish Box goes here

: General Subscription Example - JSON Representation

Raw json | Download


{
  "resourceType" : "Subscription",
  "id" : "Example1",
  "meta" : {
    "lastUpdated" : "2021-01-13T23:32:50.053+00:00"
  },
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n\t\t\t<table width=\"100%\">\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td width=\"25%\">\n\t\t\t\t\t\t\t<span class=\"text-muted\">Notification_Message</span>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td width=\"8%\">\n\t\t\t\t\t\t\t<span class=\"text-muted\">2040/01/25</span>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t</div>"
  },
  "extension" : [
    {
      "url" : "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-subscription-extension-owner",
      "valueReference" : {
        🔗 "reference" : "Practitioner/Example1"
      }
    },
    {
      "url" : "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-subscription-extension-source-id",
      "valueString" : "sourceid"
    },
    {
      "url" : "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-subscription-extension-source-name",
      "valueString" : "sourcename"
    }
  ],
  "status" : "active",
  "_status" : {
    "extension" : [
      {
        "url" : "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-originalCode",
        "valueCoding" : {
          "system" : "https://docs.mydata.athenahealth.com/fhir-r4/athenaFlex/codesystem/subscription_status",
          "code" : "ACTIVE",
          "display" : "Active"
        }
      }
    ]
  },
  "contact" : [
    {
      "system" : "phone",
      "value" : "123456789"
    },
    {
      "system" : "email",
      "value" : "test@test.com"
    }
  ],
  "end" : "2040-01-25T10:10:10.000+00:00",
  "reason" : "Test From FHIR server",
  "criteria" : "Patient?_id=123456",
  "channel" : {
    "type" : "rest-hook",
    "_type" : {
      "extension" : [
        {
          "url" : "https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-originalCode",
          "valueCoding" : {
            "system" : "https://docs.mydata.athenahealth.com/fhir-r4/athenaFlex/codesystem/subscription_channel_type",
            "code" : "rest-hook",
            "display" : "Rest Hook"
          }
        }
      ]
    },
    "endpoint" : "http://10.218.11.115:8080",
    "header" : [
      "Notification_Message"
    ]
  }
}