Skip to content

Commit 783f57d

Browse files
committed
Fix documentation
1 parent 256df1a commit 783f57d

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

docs/resources/cdr_org.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,17 @@ The following example creates and onboards a CDR FHIR organization
1010

1111
```hcl
1212
data "hsdp_cdr_fhir_store" "sandbox" {
13-
base_url = "https://cdr-stu3-sandbox.us-east.philips-healthsuite.com"
13+
base_url = "https://cdr-stu3-sandbox.hsdp.io"
1414
root_org_id = var.iam_org_id
1515
}
1616
1717
resource "hsdp_cdr_org" "hospital" {
1818
fhir_store = data.hsdp_cdr_fhir_store.sandbox.endpoint
19-
org_id = var.iam_org_id
19+
org_id = var.sub_org_id
2020
2121
name = "Hospital"
22+
23+
part_of = var.root_org_id
2224
}
2325
```
2426

docs/resources/cdr_subscription.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ The following example creates a subscription that calls a REST endpoint whenever
88

99
```hcl
1010
data "hsdp_cdr_fhir_store" "sandbox" {
11-
base_url = "https://cdr-stu3-sandbox.us-east.philips-healthsuite.com"
11+
base_url = "https://cdr-stu3-sandbox.hsdp.io"
1212
}
1313
1414
resource "hsdp_cdr_subscription" "patient_changes" {
15-
fhir_store = data.hsdp_cdr_fhir_store.sandbox.fhir_store
15+
fhir_store = data.hsdp_cdr_fhir_store.sandbox.endpoint
1616
1717
criteria = "Patient"
18+
reason = "Notification for patient changes"
1819
endpoint = "https://webhook.myapp.io/patient"
1920
delete_endpoint = "https://webhook.myapp.io/patient_deleted"
2021
headers = [
@@ -39,12 +40,12 @@ CDR will send a `POST` request to the endpoint with a JSON body containing:
3940

4041
The following arguments are supported:
4142

42-
* `fhir_store` - (Required) The CDR FHIR store to use
43+
* `fhir_store` - (Required) The CDR FHIR store endpoint to use
4344
* `criteria` - (Required) On which resource to notify
4445
* `reason` - (Required) Reason for creating the subscription
4546
* `endpoint` - (Required) The REST endpoint to call. Must use `https://` schema
46-
* `delete_endpoint` - (Optional) The REST endpoint to call for DELETE operations. Must use `https://` schema
4747
* `end` - (Required) RFC3339 formatted timestamp when to end notifications
48+
* `delete_endpoint` - (Optional) The REST endpoint to call for DELETE operations. Must use `https://` schema
4849
* `headers` - (Optional) List of headers to add to the REST call
4950

5051
## Attributes Reference

go.sum

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -586,10 +586,6 @@ github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtP
586586
github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
587587
github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU=
588588
github.com/philhofer/fwd v1.0.0/go.mod h1:gk3iGcWd9+svBvR0sR+KPcfE+RNWozjowpeBVG3ZVNU=
589-
github.com/philips-software/go-hsdp-api v0.27.2-0.20201223213028-6da774c5f16a h1:+lG5H68hvtumHQpp+yIQbj25k5bxCpgGYz8ErsZLvU8=
590-
github.com/philips-software/go-hsdp-api v0.27.2-0.20201223213028-6da774c5f16a/go.mod h1:zYRZs6S8Oth4caY5cR1x1e9OO1PfzQgXVmHRwqOwVGg=
591-
github.com/philips-software/go-hsdp-api v0.27.2-0.20201224071336-42acd86320ad h1:HYXm9IIRnivuZZtrQg64MW70m/XlWiw+kWBdsSyyH5M=
592-
github.com/philips-software/go-hsdp-api v0.27.2-0.20201224071336-42acd86320ad/go.mod h1:zYRZs6S8Oth4caY5cR1x1e9OO1PfzQgXVmHRwqOwVGg=
593589
github.com/philips-software/go-hsdp-api v0.27.2-0.20201224073543-1ccc8cec3545 h1:yesr2hpu/E681kRSr+IqVz1dRrV/Pka0asyWjzf3C/Q=
594590
github.com/philips-software/go-hsdp-api v0.27.2-0.20201224073543-1ccc8cec3545/go.mod h1:zYRZs6S8Oth4caY5cR1x1e9OO1PfzQgXVmHRwqOwVGg=
595591
github.com/philips-software/go-hsdp-signer v1.3.0 h1:Si1voDE/GHzthmxpasPdntbu8aUW6EYJfI6gHVf7BCc=

0 commit comments

Comments
 (0)