1+ {
2+ "type" : " transaction" ,
3+ "resourceType" : " Bundle" ,
4+ "entry" : [
5+ {
6+ "resource" : {
7+ "resourceType" : " AidboxSubscriptionTopic" ,
8+ "id" : " pas-claim-response" ,
9+ "url" : " http://example.org/SubscriptionTopic/pas-claim-response" ,
10+ "status" : " active" ,
11+ "trigger" : [
12+ {
13+ "resource" : " ClaimResponse" ,
14+ "fhirPathCriteria" : " status = 'active'" ,
15+ "canFilterBy" : [
16+ {
17+ "description" : " Filter by insurer organization" ,
18+ "filterParameter" : " orgIdentifier" ,
19+ "filterDefinitionFhirPathExpression" : " insurer" ,
20+ "comparator" : [
21+ " eq"
22+ ]
23+ }
24+ ]
25+ }
26+ ]
27+ },
28+ "request" : {
29+ "method" : " POST" ,
30+ "url" : " /AidboxSubscriptionTopic" ,
31+ "ifNoneExist" : " _id=pas-claim-response"
32+ }
33+ },
34+ {
35+ "resource" : {
36+ "resourceType" : " AidboxTopicDestination" ,
37+ "id" : " pas-claim-response-destination" ,
38+ "meta" : {
39+ "profile" : [
40+ " http://aidbox.app/StructureDefinition/aidboxtopicdestination-fhir-native-topic-based-subscription"
41+ ]
42+ },
43+ "kind" : " fhir-native-topic-based-subscription" ,
44+ "topic" : " http://example.org/SubscriptionTopic/pas-claim-response" ,
45+ "status" : " active" ,
46+ "content" : " full-resource" ,
47+ "parameter" : [
48+ {
49+ "name" : " subscription-specification-version" ,
50+ "valueString" : " R5"
51+ },
52+ {
53+ "name" : " fhir-topic" ,
54+ "valueCanonical" : " http://hl7.org/fhir/us/davinci-pas/SubscriptionTopic/PASSubscriptionTopic"
55+ },
56+ {
57+ "name" : " number-of-deliverer" ,
58+ "valueUnsignedInt" : 2
59+ },
60+ {
61+ "name" : " keep-events-for-period" ,
62+ "valueUnsignedInt" : 86400
63+ }
64+ ]
65+ },
66+ "request" : {
67+ "method" : " POST" ,
68+ "url" : " /AidboxTopicDestination" ,
69+ "ifNoneExist" : " _id=pas-claim-response-destination"
70+ }
71+ },
72+ {
73+ "resource" : {
74+ "resourceType" : " Organization" ,
75+ "id" : " org-1" ,
76+ "name" : " Example Insurance Company"
77+ },
78+ "request" : {
79+ "method" : " POST" ,
80+ "url" : " /Organization" ,
81+ "ifNoneExist" : " _id=org-1"
82+ }
83+ },
84+ {
85+ "resource" : {
86+ "resourceType" : " Patient" ,
87+ "id" : " example" ,
88+ "name" : [
89+ {
90+ "family" : " Test" ,
91+ "given" : [
92+ " Patient"
93+ ]
94+ }
95+ ]
96+ },
97+ "request" : {
98+ "method" : " POST" ,
99+ "url" : " /Patient" ,
100+ "ifNoneExist" : " _id=example"
101+ }
102+ },
103+ {
104+ "resource" : {
105+ "resourceType" : " Subscription" ,
106+ "status" : " requested" ,
107+ "reason" : " Receive notifications about claim responses for my organization." ,
108+ "topic" : " http://hl7.org/fhir/us/davinci-pas/SubscriptionTopic/PASSubscriptionTopic" ,
109+ "filterBy" : [
110+ {
111+ "filterParameter" : " orgIdentifier" ,
112+ "comparator" : " eq" ,
113+ "value" : " Organization/org-1"
114+ }
115+ ],
116+ "channelType" : {
117+ "system" : " http://terminology.hl7.org/CodeSystem/subscription-channel-type" ,
118+ "code" : " rest-hook"
119+ },
120+ "endpoint" : " http://echo-server:9090/webhook" ,
121+ "heartbeatPeriod" : 60 ,
122+ "timeout" : 30 ,
123+ "id" : " pas-subscription-r5" ,
124+ "contentType" : " application/fhir+json" ,
125+ "content" : " full-resource" ,
126+ "maxCount" : 10
127+ },
128+ "request" : {
129+ "method" : " POST" ,
130+ "url" : " /Subscription" ,
131+ "ifNoneExist" : " _id=pas-subscription-r5"
132+ }
133+ }
134+ ]
135+ }
0 commit comments