Skip to content

Commit

Permalink
feat: demo multi-strategy persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
shah committed May 28, 2024
1 parent 88290a4 commit 5c0adc3
Showing 1 changed file with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,17 @@
@TECH_BD_INTERACTION_PERSISTENCE_DUCKDB = { "nature": "duckdb", "motherDuck": { "db": "interactions", "token": "*** TOKEN *** " } }
@TECH_BD_INTERACTION_PERSISTENCE_DUCKDB_LOCAL = { "nature": "duckdb" }

@TECH_BD_INTERACTION_PERSISTENCE_POSTGRES_NEON = { "nature": "postgres", "url": "jdbc:postgresql://2.aws.neon.tech/persistence?user=persistence&password=persistence&sslmode=require" }

@TECH_BD_FHIR_SERVICE_STRUCT_DEFN_PROFILE_URI_SHINNY_SDOH = https://djq7jdt8kb490.cloudfront.net/1115/StructureDefinition-SHINNYBundleProfile.json

@TECH_BD_INTERACTION_PERSISTENCE_STRATEGY = [{{TECH_BD_INTERACTION_PERSISTENCE_POSTGRES_NEON}}, {{TECH_BD_INTERACTION_PERSISTENCE_DUCKDB}}]

### /metadata endpoint should return FHIR CapabilityStatement

GET {{hostName}}/metadata
Content-Type: {{contentType}}
X-TechBD-Interaction-Persistence-Strategy: {{TECH_BD_INTERACTION_PERSISTENCE_VFS_TMP}}
X-TechBD-Interaction-Persistence-Strategy: {{TECH_BD_INTERACTION_PERSISTENCE_STRATEGY}}
?? status == 200
?? header content-type == text/html;charset=UTF-8
?? response.body != null
Expand All @@ -55,7 +59,7 @@ POST {{hostName}}/Bundle/$validate HTTP/1.1
Content-Type: {{contentType}}
Accept : application/fhir+json;charset=utf-8
X-TechBD-Tenant-ID: {{TECH_BD_FHIR_SERVICE_QE_IDENTIFIER}}
X-TechBD-Interaction-Persistence-Strategy: {{TECH_BD_INTERACTION_PERSISTENCE_FS}}
X-TechBD-Interaction-Persistence-Strategy: {{TECH_BD_INTERACTION_PERSISTENCE_STRATEGY}}
X-TechBD-Interaction-Provenance: { "nature": "integration-test", "test-case": "fhir-fixture-shinny-impl-guide-sample.json" }
X-TechBD-FHIR-Profile-URI: {{TECH_BD_FHIR_SERVICE_STRUCT_DEFN_PROFILE_URI_SHINNY_SDOH}}
?? status == 200
Expand All @@ -76,7 +80,7 @@ POST {{hostName}}/Bundle/$validate HTTP/1.1
Content-Type: {{contentType}}
Accept : application/fhir+json;charset=utf-8
X-TechBD-Tenant-ID: {{TECH_BD_FHIR_SERVICE_QE_IDENTIFIER}}
X-TechBD-Interaction-Persistence-Strategy: {{TECH_BD_INTERACTION_PERSISTENCE_FS}}
X-TechBD-Interaction-Persistence-Strategy: {{TECH_BD_INTERACTION_PERSISTENCE_STRATEGY}}
?? status == 200
?? header content-type == application/fhir+json;charset=utf-8
?? response.body != null
Expand All @@ -95,7 +99,7 @@ POST {{hostName}}/Bundle/$validate HTTP/1.1
Content-Type: {{contentType}}
Accept : application/fhir+json;charset=utf-8
X-TechBD-Tenant-ID: {{TECH_BD_FHIR_SERVICE_QE_IDENTIFIER}}
X-TechBD-Interaction-Persistence-Strategy: {{TECH_BD_INTERACTION_PERSISTENCE_FS}}
X-TechBD-Interaction-Persistence-Strategy: {{TECH_BD_INTERACTION_PERSISTENCE_STRATEGY}}
?? status == 200
?? header content-type == application/fhir+json;charset=utf-8
?? response.body != null
Expand All @@ -113,7 +117,7 @@ POST {{hostName}}/Bundle/$validate HTTP/1.1
Content-Type: {{contentType}}
Accept : application/fhir+json;charset=utf-8
X-TechBD-Tenant-ID: {{TECH_BD_FHIR_SERVICE_QE_IDENTIFIER}}
X-TechBD-Interaction-Persistence-Strategy: {{TECH_BD_INTERACTION_PERSISTENCE_FS}}
X-TechBD-Interaction-Persistence-Strategy: {{TECH_BD_INTERACTION_PERSISTENCE_STRATEGY}}
?? status == 200
?? header content-type == application/fhir+json;charset=utf-8
?? response.body != null
Expand All @@ -127,7 +131,7 @@ X-TechBD-Interaction-Persistence-Strategy: {{TECH_BD_INTERACTION_PERSISTENCE_FS}
### /Bundle should validate and submit fhir-fixture-shinny-impl-guide-sample.json as HEALTHeLINK

POST {{hostName}}/Bundle/?qe=HEALTHELINK HTTP/1.1
X-TechBD-Interaction-Persistence-Strategy: {{TECH_BD_INTERACTION_PERSISTENCE_FS}}
X-TechBD-Interaction-Persistence-Strategy: {{TECH_BD_INTERACTION_PERSISTENCE_STRATEGY}}
?? status != 201
?? response.body != null

Expand Down

0 comments on commit 5c0adc3

Please sign in to comment.