From 86c4b775e3beed0cd623a0108a5489408c16ba31 Mon Sep 17 00:00:00 2001 From: JessicaWNava <119880261+JessicaWNava@users.noreply.github.com> Date: Wed, 11 Sep 2024 13:31:23 -0400 Subject: [PATCH] Engagement/jessica/15406 download report cleanup (#15847) * Capturing the report not existing error so that we can return a pretty one. Fixing a condition in the pii removal yml. Returning a prettier body for a report --- .../src/main/kotlin/azure/ReportFunction.kt | 17 +- .../src/main/kotlin/cli/PIIRemovalCommands.kt | 3 +- .../src/main/kotlin/common/piiremoved.json | 1930 +++++++++++++++++ .../src/main/kotlin/common/piithere.json | 1930 +++++++++++++++++ .../common/remove-pii-address.yml | 2 +- .../test/kotlin/azure/ReportFunctionTests.kt | 24 +- 6 files changed, 3884 insertions(+), 22 deletions(-) create mode 100644 prime-router/src/main/kotlin/common/piiremoved.json create mode 100644 prime-router/src/main/kotlin/common/piithere.json diff --git a/prime-router/src/main/kotlin/azure/ReportFunction.kt b/prime-router/src/main/kotlin/azure/ReportFunction.kt index 11adb9fea4c..65c5aaed0aa 100644 --- a/prime-router/src/main/kotlin/azure/ReportFunction.kt +++ b/prime-router/src/main/kotlin/azure/ReportFunction.kt @@ -26,6 +26,7 @@ import gov.cdc.prime.router.UniversalPipelineReceiver import gov.cdc.prime.router.azure.BlobAccess.Companion.defaultBlobMetadata import gov.cdc.prime.router.azure.BlobAccess.Companion.getBlobContainer import gov.cdc.prime.router.azure.db.enums.TaskAction +import gov.cdc.prime.router.azure.db.tables.pojos.ReportFile import gov.cdc.prime.router.azure.observability.event.IReportStreamEventService import gov.cdc.prime.router.azure.observability.event.ReportStreamEventName import gov.cdc.prime.router.azure.observability.event.ReportStreamEventProperties @@ -40,7 +41,9 @@ import gov.cdc.prime.router.tokens.AuthenticatedClaims import gov.cdc.prime.router.tokens.Scope import gov.cdc.prime.router.tokens.authenticationFailure import gov.cdc.prime.router.tokens.authorizationFailure +import kotlinx.serialization.json.Json import org.apache.logging.log4j.kotlin.Logging +import java.nio.charset.StandardCharsets import java.util.UUID private const val PROCESSING_TYPE_PARAMETER = "processing" @@ -199,7 +202,12 @@ class ReportFunction( databaseAccess: DatabaseAccess = DatabaseAccess(), piiRemovalCommands: PIIRemovalCommands = PIIRemovalCommands(), ): HttpResponseMessage { - val requestedReport = databaseAccess.fetchReportFile(reportId) + var requestedReport = ReportFile() + try { + requestedReport = databaseAccess.fetchReportFile(reportId) + } catch (e: Exception) { + HttpUtilities.badRequestResponse(request, "The requested report does not exist.") + } return if (requestedReport.bodyUrl != null && requestedReport.bodyUrl.toString().lowercase().endsWith("fhir")) { val contents = BlobAccess.downloadBlobAsByteArray(requestedReport.bodyUrl) @@ -210,13 +218,10 @@ class ReportFunction( if (envName == "prod") { return HttpUtilities.badRequestResponse(request, "Must remove PII for messages from prod.") } - - val jsonObject = JacksonMapperUtilities.defaultMapper - .readValue(contents.toString(Charsets.UTF_8), Any::class.java) - JacksonMapperUtilities.defaultMapper.writeValueAsString(jsonObject) + String(contents, StandardCharsets.UTF_8) } - HttpUtilities.okJSONResponse(request, content) + HttpUtilities.okJSONResponse(request, Json.parseToJsonElement(content)) } else if (requestedReport.bodyUrl == null) { HttpUtilities.badRequestResponse(request, "The requested report does not exist.") } else { diff --git a/prime-router/src/main/kotlin/cli/PIIRemovalCommands.kt b/prime-router/src/main/kotlin/cli/PIIRemovalCommands.kt index 09d450567dd..6a9c48aac39 100644 --- a/prime-router/src/main/kotlin/cli/PIIRemovalCommands.kt +++ b/prime-router/src/main/kotlin/cli/PIIRemovalCommands.kt @@ -1,5 +1,6 @@ package gov.cdc.prime.router.cli +import com.fasterxml.jackson.databind.json.JsonMapper import com.github.ajalt.clikt.core.CliktCommand import com.github.ajalt.clikt.core.CliktError import com.github.ajalt.clikt.parameters.options.option @@ -117,7 +118,7 @@ class PIIRemovalCommands : CliktCommand( val jsonObject = JacksonMapperUtilities.defaultMapper .readValue(FhirTranscoder.encode(bundleAfterTransform), Any::class.java) - val prettyText = JacksonMapperUtilities.defaultMapper.writeValueAsString(jsonObject) + val prettyText = JsonMapper.builder().build().writeValueAsString(jsonObject) return replaceIds(bundleAfterTransform, prettyText) } diff --git a/prime-router/src/main/kotlin/common/piiremoved.json b/prime-router/src/main/kotlin/common/piiremoved.json new file mode 100644 index 00000000000..13866b5888f --- /dev/null +++ b/prime-router/src/main/kotlin/common/piiremoved.json @@ -0,0 +1,1930 @@ +{ + "resourceType": { + "isString": true, + "content": "Bundle", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "identifier": { + "value": { + "isString": true, + "content": "e9941fc2-6096-48a6-8b75-15e91dc80ca7", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "type": { + "isString": true, + "content": "message", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "timestamp": { + "isString": true, + "content": "2023-10-18T22:20:22.347Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "entry": [ + { + "fullUrl": { + "isString": true, + "content": "MessageHeader/c7414da3-edc1-4a3e-9c5c-8d7a8e5cf775", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "MessageHeader", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "c7414da3-edc1-4a3e-9c5c-8d7a8e5cf775", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "meta": { + "tag": [ + { + "system": { + "isString": true, + "content": "http://terminology.hl7.org/CodeSystem/v2-0103", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "T", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Training", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "eventCoding": { + "system": { + "isString": true, + "content": "http://terminology.hl7.org/CodeSystem/v2-0003", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "R01", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "ORU/ACK - Unsolicited transmission of an observation message", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "destination": [ + { + "name": { + "isString": true, + "content": "PRIME ReportStream", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "endpoint": { + "isString": true, + "content": "https://prime.cdc.gov/api/reports?option=SkipInvalidItems", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "sender": { + "reference": { + "isString": true, + "content": "Organization/9e22cfde-e704-4922-a247-b1a6ac0f43bc", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "source": { + "extension": [ + { + "url": { + "isString": true, + "content": "https://reportstream.cdc.gov/fhir/StructureDefinition/software-binary-id", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "valueString": { + "isString": true, + "content": "e3d085e", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + { + "url": { + "isString": true, + "content": "https://reportstream.cdc.gov/fhir/StructureDefinition/software-install-date", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "valueInstant": { + "isString": true, + "content": "2023-10-18T21:06:03Z", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + { + "url": { + "isString": true, + "content": "https://reportstream.cdc.gov/fhir/StructureDefinition/software-vendor-org", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "valueReference": { + "reference": { + "isString": true, + "content": "Organization/07640c5d-87cd-488b-9343-a226c5166539", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + } + ], + "software": { + "isString": true, + "content": "PRIME SimpleReport", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "version": { + "isString": true, + "content": "e3d085e", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "endpoint": { + "isString": true, + "content": "https://simplereport.gov", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "focus": [ + { + "reference": { + "isString": true, + "content": "Provenance/cad7f8ea-6bd0-417f-8efd-7154228654e8", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + { + "reference": { + "isString": true, + "content": "DiagnosticReport/e9941fc2-6096-48a6-8b75-15e91dc80ca7", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + }, + { + "fullUrl": { + "isString": true, + "content": "Provenance/cad7f8ea-6bd0-417f-8efd-7154228654e8", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "Provenance", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "cad7f8ea-6bd0-417f-8efd-7154228654e8", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "recorded": { + "isString": true, + "content": "2023-10-18T22:20:22.347Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "activity": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://terminology.hl7.org/CodeSystem/v2-0003", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "R01", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "ORU/ACK - Unsolicited transmission of an observation message", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "agent": [ + { + "who": { + "reference": { + "isString": true, + "content": "Organization/9e22cfde-e704-4922-a247-b1a6ac0f43bc", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + } + ] + } + }, + { + "fullUrl": { + "isString": true, + "content": "DiagnosticReport/e9941fc2-6096-48a6-8b75-15e91dc80ca7", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "DiagnosticReport", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "e9941fc2-6096-48a6-8b75-15e91dc80ca7", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "identifier": [ + { + "value": { + "isString": true, + "content": "e9941fc2-6096-48a6-8b75-15e91dc80ca7", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "basedOn": [ + { + "reference": { + "isString": true, + "content": "ServiceRequest/b0ba1f7e-f36e-4fc6-9f88-5ee8b3de58a1", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "status": { + "isString": true, + "content": "final", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://loinc.org", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "95941-1", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "subject": { + "reference": { + "isString": true, + "content": "Patient/f23cff4a-971b-48d9-8d99-3890d390c3a4", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "effectiveDateTime": { + "isString": true, + "content": "2023-10-18T22:05:20+00:00", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "issued": { + "isString": true, + "content": "2023-10-18T22:20:22+00:00", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "specimen": [ + { + "reference": { + "isString": true, + "content": "Specimen/52a582e4-d389-42d0-b738-bee51cf5244d", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "result": [ + { + "reference": { + "isString": true, + "content": "Observation/29574070-adfc-4d53-a48f-5ddcc382614e", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + { + "reference": { + "isString": true, + "content": "Observation/99a3d501-90c1-467b-b4a3-568f5af5178d", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + { + "reference": { + "isString": true, + "content": "Observation/e7fdd44c-9625-469d-b891-7a7e706680a0", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + }, + { + "fullUrl": { + "isString": true, + "content": "Patient/f23cff4a-971b-48d9-8d99-3890d390c3a4", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "Patient", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "f23cff4a-971b-48d9-8d99-3890d390c3a4", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "extension": [ + { + "url": { + "isString": true, + "content": "http://ibm.com/fhir/cdm/StructureDefinition/local-race-cd", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "valueCodeableConcept": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://terminology.hl7.org/CodeSystem/v3-NullFlavor", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "ASKU", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "text": { + "isString": true, + "content": "refused", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + }, + { + "url": { + "isString": true, + "content": "https://reportstream.cdc.gov/fhir/StructureDefinition/ethnic-group", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "valueCodeableConcept": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://terminology.hl7.org/CodeSystem/v2-0189", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "N", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Not Hispanic or Latino", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "text": { + "isString": true, + "content": "Not Hispanic or Latino", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + } + ], + "identifier": [ + { + "value": { + "isString": true, + "content": "f23cff4a-971b-48d9-8d99-3890d390c3a4", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "name": [ + { + "family": { + "isString": true, + "content": " Feil", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "given": [ + { + "isString": true, + "content": "Meghann", + "coerceToInlineType$kotlinx_serialization_json": null + } + ] + } + ], + "telecom": [ + { + "system": { + "isString": true, + "content": "phone", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "value": { + "isString": true, + "content": "12755593677", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "use": { + "isString": true, + "content": "home", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + { + "system": { + "isString": true, + "content": "email", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "value": { + "isString": true, + "content": "AdrienneOlson@gmail.com", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "use": { + "isString": true, + "content": "home", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "gender": { + "isString": true, + "content": "female", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "birthDate": { + "isString": true, + "content": "1968-01-20", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "address": [ + { + "line": [ + { + "isString": true, + "content": "3177 Purdy Hills", + "coerceToInlineType$kotlinx_serialization_json": null + } + ], + "city": { + "isString": true, + "content": "Boonville", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "district": { + "isString": true, + "content": "Dallas", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "state": { + "isString": true, + "content": "MO", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "postalCode": { + "isString": true, + "content": "65704", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "country": { + "isString": true, + "content": "USA", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "managingOrganization": { + "reference": { + "isString": true, + "content": "Organization/9e22cfde-e704-4922-a247-b1a6ac0f43bc", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + } + }, + { + "fullUrl": { + "isString": true, + "content": "Organization/9e22cfde-e704-4922-a247-b1a6ac0f43bc", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "Organization", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "9e22cfde-e704-4922-a247-b1a6ac0f43bc", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "identifier": [ + { + "use": { + "isString": true, + "content": "official", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "type": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://terminology.hl7.org/CodeSystem/v2-0301", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "CLIA", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "value": { + "isString": true, + "content": "12D3456789", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "name": { + "isString": true, + "content": "Carl Potts", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "telecom": [ + { + "system": { + "isString": true, + "content": "phone", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "value": { + "isString": true, + "content": "12779455296", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "use": { + "isString": true, + "content": "work", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + { + "system": { + "isString": true, + "content": "email", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "value": { + "isString": true, + "content": "JacquettaShields@gmail.com", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "use": { + "isString": true, + "content": "work", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "address": [ + { + "line": [ + { + "isString": true, + "content": "51877 Deckow Freeway", + "coerceToInlineType$kotlinx_serialization_json": null + } + ], + "city": { + "isString": true, + "content": "Chaffee", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "district": { + "isString": true, + "content": "Atchison", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "state": { + "isString": true, + "content": "MO", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "postalCode": { + "isString": true, + "content": "64504", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "country": { + "isString": true, + "content": "USA", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + }, + { + "fullUrl": { + "isString": true, + "content": "Practitioner/48db8ab7-c884-4cf7-9a4f-b5fe6efb37da", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "Practitioner", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "48db8ab7-c884-4cf7-9a4f-b5fe6efb37da", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "name": [ + { + "family": { + "isString": true, + "content": " II", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "given": [ + { + "isString": true, + "content": "Scottie", + "coerceToInlineType$kotlinx_serialization_json": null + } + ] + } + ], + "telecom": [ + { + "system": { + "isString": true, + "content": "phone", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "value": { + "isString": true, + "content": "12122221722", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "use": { + "isString": true, + "content": "work", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "address": [ + { + "line": [ + { + "isString": true, + "content": "781 Freddie Union", + "coerceToInlineType$kotlinx_serialization_json": null + } + ], + "city": { + "isString": true, + "content": "Fair play", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "district": { + "isString": true, + "content": "Grundy", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "state": { + "isString": true, + "content": "MO", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "postalCode": { + "isString": true, + "content": "63742", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "country": { + "isString": true, + "content": "USA", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + }, + { + "fullUrl": { + "isString": true, + "content": "Specimen/52a582e4-d389-42d0-b738-bee51cf5244d", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "Specimen", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "52a582e4-d389-42d0-b738-bee51cf5244d", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "identifier": [ + { + "value": { + "isString": true, + "content": "7fc4aee2-c426-4b2b-953c-86c877ff9bd0", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "type": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://snomed.info/sct", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "697989009", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "text": { + "isString": true, + "content": "Anterior nares swab", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "subject": { + "reference": { + "isString": true, + "content": "Patient/f23cff4a-971b-48d9-8d99-3890d390c3a4", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "receivedTime": { + "isString": true, + "content": "2023-10-18T22:05:20+00:00", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "collection": { + "collectedDateTime": { + "isString": true, + "content": "2023-10-18T22:05:20+00:00", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "note": [ + { + "text": { + "isString": true, + "content": "I am some random text", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + }, + { + "fullUrl": { + "isString": true, + "content": "ServiceRequest/b0ba1f7e-f36e-4fc6-9f88-5ee8b3de58a1", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "ServiceRequest", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "b0ba1f7e-f36e-4fc6-9f88-5ee8b3de58a1", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "extension": [ + { + "url": { + "isString": true, + "content": "https://reportstream.cdc.gov/fhir/StructureDefinition/order-control", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "valueCodeableConcept": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://terminology.hl7.org/CodeSystem/v2-0119", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "RE", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + }, + { + "url": { + "isString": true, + "content": "https://reportstream.cdc.gov/fhir/StructureDefinition/order-effective-date", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "valueDateTime": { + "isString": true, + "content": "2023-10-18T22:20:20+00:00", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "status": { + "isString": true, + "content": "completed", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "intent": { + "isString": true, + "content": "order", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://loinc.org", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "95941-1", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "subject": { + "reference": { + "isString": true, + "content": "Patient/f23cff4a-971b-48d9-8d99-3890d390c3a4", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "requester": { + "reference": { + "isString": true, + "content": "PractitionerRole/2d79a27c-2a8f-4f4c-a913-da434cac0203", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "performer": [ + { + "reference": { + "isString": true, + "content": "Organization/9e22cfde-e704-4922-a247-b1a6ac0f43bc", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "supportingInfo": [ + { + "reference": { + "isString": true, + "content": "Observation/2ddc518f-ee1c-3cf2-8126-de380f388293", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + { + "reference": { + "isString": true, + "content": "Observation/71280434-d4a7-3488-bc8b-5a0b76f71437", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + { + "reference": { + "isString": true, + "content": "Observation/efd7b2e6-7f1b-3e6f-a970-bcf20941cd6a", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "note": [ + { + "text": { + "isString": true, + "content": "I am some random text", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + }, + { + "fullUrl": { + "isString": true, + "content": "Device/a72e8edb-bb54-47b1-83ed-938aaed01122", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "Device", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "a72e8edb-bb54-47b1-83ed-938aaed01122", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "identifier": [ + { + "value": { + "isString": true, + "content": "00884999048034", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "manufacturer": { + "isString": true, + "content": "Abbott", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "deviceName": [ + { + "name": { + "isString": true, + "content": "Alinity m", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "type": { + "isString": true, + "content": "model-name", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + }, + { + "fullUrl": { + "isString": true, + "content": "PractitionerRole/2d79a27c-2a8f-4f4c-a913-da434cac0203", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "PractitionerRole", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "2d79a27c-2a8f-4f4c-a913-da434cac0203", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "practitioner": { + "reference": { + "isString": true, + "content": "Practitioner/48db8ab7-c884-4cf7-9a4f-b5fe6efb37da", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "organization": { + "reference": { + "isString": true, + "content": "Organization/9e22cfde-e704-4922-a247-b1a6ac0f43bc", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + } + }, + { + "fullUrl": { + "isString": true, + "content": "Organization/07640c5d-87cd-488b-9343-a226c5166539", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "Organization", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "07640c5d-87cd-488b-9343-a226c5166539", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "name": { + "isString": true, + "content": "SimpleReport", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + }, + { + "fullUrl": { + "isString": true, + "content": "Observation/29574070-adfc-4d53-a48f-5ddcc382614e", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "Observation", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "29574070-adfc-4d53-a48f-5ddcc382614e", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "status": { + "isString": true, + "content": "final", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://loinc.org", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "85477-8", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "text": { + "isString": true, + "content": "Flu A", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "subject": { + "reference": { + "isString": true, + "content": "Patient/f23cff4a-971b-48d9-8d99-3890d390c3a4", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "effectiveDateTime": { + "isString": true, + "content": "1972-09-06T05:50:13.070Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "issued": { + "isString": true, + "content": "1979-09-18T13:15:22.544Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "performer": [ + { + "reference": { + "isString": true, + "content": "Organization/9e22cfde-e704-4922-a247-b1a6ac0f43bc", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "valueCodeableConcept": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://snomed.info/sct", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "260373001", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Detected", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "system": { + "isString": true, + "content": "http://terminology.hl7.org/CodeSystem/v2-0078", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "A", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Abnormal", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + ], + "note": [ + { + "text": { + "isString": true, + "content": "I am some random text", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "method": { + "extension": [ + { + "url": { + "isString": true, + "content": "https://reportstream.cdc.gov/fhir/StructureDefinition/testkit-name-id", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "valueCoding": { + "code": { + "isString": true, + "content": "Alinity m Resp-4-Plex_Abbott Molecular Inc.", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + } + ], + "coding": [ + { + "display": { + "isString": true, + "content": "Alinity m", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "specimen": { + "reference": { + "isString": true, + "content": "Specimen/52a582e4-d389-42d0-b738-bee51cf5244d", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "device": { + "reference": { + "isString": true, + "content": "Device/a72e8edb-bb54-47b1-83ed-938aaed01122", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + } + }, + { + "fullUrl": { + "isString": true, + "content": "Observation/99a3d501-90c1-467b-b4a3-568f5af5178d", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "Observation", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "99a3d501-90c1-467b-b4a3-568f5af5178d", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "status": { + "isString": true, + "content": "final", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://loinc.org", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "85478-6", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "text": { + "isString": true, + "content": "Flu B", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "subject": { + "reference": { + "isString": true, + "content": "Patient/f23cff4a-971b-48d9-8d99-3890d390c3a4", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "effectiveDateTime": { + "isString": true, + "content": "2009-02-11T21:43:11.728Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "issued": { + "isString": true, + "content": "2013-05-28T23:49:42.304Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "performer": [ + { + "reference": { + "isString": true, + "content": "Organization/9e22cfde-e704-4922-a247-b1a6ac0f43bc", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "valueCodeableConcept": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://snomed.info/sct", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "260373001", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Detected", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "system": { + "isString": true, + "content": "http://terminology.hl7.org/CodeSystem/v2-0078", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "A", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Abnormal", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + ], + "note": [ + { + "text": { + "isString": true, + "content": "I am some random text", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "method": { + "extension": [ + { + "url": { + "isString": true, + "content": "https://reportstream.cdc.gov/fhir/StructureDefinition/testkit-name-id", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "valueCoding": { + "code": { + "isString": true, + "content": "Alinity m Resp-4-Plex_Abbott Molecular Inc.", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + } + ], + "coding": [ + { + "display": { + "isString": true, + "content": "Alinity m", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "specimen": { + "reference": { + "isString": true, + "content": "Specimen/52a582e4-d389-42d0-b738-bee51cf5244d", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "device": { + "reference": { + "isString": true, + "content": "Device/a72e8edb-bb54-47b1-83ed-938aaed01122", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + } + }, + { + "fullUrl": { + "isString": true, + "content": "Observation/e7fdd44c-9625-469d-b891-7a7e706680a0", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "Observation", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "e7fdd44c-9625-469d-b891-7a7e706680a0", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "status": { + "isString": true, + "content": "final", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://loinc.org", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "94500-6", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "text": { + "isString": true, + "content": "COVID-19", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "subject": { + "reference": { + "isString": true, + "content": "Patient/f23cff4a-971b-48d9-8d99-3890d390c3a4", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "effectiveDateTime": { + "isString": true, + "content": "1958-10-15T17:14:24.631Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "issued": { + "isString": true, + "content": "2020-06-14T10:13:51.979Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "performer": [ + { + "reference": { + "isString": true, + "content": "Organization/9e22cfde-e704-4922-a247-b1a6ac0f43bc", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "valueCodeableConcept": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://snomed.info/sct", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "260373001", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Detected", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "system": { + "isString": true, + "content": "http://terminology.hl7.org/CodeSystem/v2-0078", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "A", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Abnormal", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + ], + "note": [ + { + "text": { + "isString": true, + "content": "I am some random text", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "method": { + "coding": [ + { + "display": { + "isString": true, + "content": "Alinity m", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "specimen": { + "reference": { + "isString": true, + "content": "Specimen/52a582e4-d389-42d0-b738-bee51cf5244d", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "device": { + "reference": { + "isString": true, + "content": "Device/a72e8edb-bb54-47b1-83ed-938aaed01122", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + } + }, + { + "fullUrl": { + "isString": true, + "content": "Observation/2ddc518f-ee1c-3cf2-8126-de380f388293", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "Observation", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "2ddc518f-ee1c-3cf2-8126-de380f388293", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "identifier": [ + { + "use": { + "isString": true, + "content": "official", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "type": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://loinc.org", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "81959-9", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Public health laboratory ask at order entry panel", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + } + ], + "status": { + "isString": true, + "content": "final", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://loinc.org", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "95419-8", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Has symptoms related to condition of interest", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "text": { + "isString": true, + "content": "Has symptoms related to condition of interest", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "subject": { + "reference": { + "isString": true, + "content": "Patient/f23cff4a-971b-48d9-8d99-3890d390c3a4", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "effectiveDateTime": { + "isString": true, + "content": "1950-12-04T07:15:53.646Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "issued": { + "isString": true, + "content": "2003-04-14T14:47:13.472Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "valueCodeableConcept": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://terminology.hl7.org/CodeSystem/v3-NullFlavor", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "UNK", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "unknown", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "note": [ + { + "text": { + "isString": true, + "content": "I am some random text", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + }, + { + "fullUrl": { + "isString": true, + "content": "Observation/71280434-d4a7-3488-bc8b-5a0b76f71437", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "Observation", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "71280434-d4a7-3488-bc8b-5a0b76f71437", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "identifier": [ + { + "use": { + "isString": true, + "content": "official", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "type": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://loinc.org", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "81959-9", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Public health laboratory ask at order entry panel", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + } + ], + "status": { + "isString": true, + "content": "final", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://loinc.org", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "95418-0", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Employed in a healthcare setting", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "text": { + "isString": true, + "content": "Employed in a healthcare setting", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "subject": { + "reference": { + "isString": true, + "content": "Patient/f23cff4a-971b-48d9-8d99-3890d390c3a4", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "effectiveDateTime": { + "isString": true, + "content": "2009-02-09T19:25:29.132Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "issued": { + "isString": true, + "content": "2013-01-21T12:13:59.159Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "valueCodeableConcept": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://terminology.hl7.org/ValueSet/v2-0136", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "N", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "No", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "note": [ + { + "text": { + "isString": true, + "content": "I am some random text", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + }, + { + "fullUrl": { + "isString": true, + "content": "Observation/efd7b2e6-7f1b-3e6f-a970-bcf20941cd6a", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "Observation", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "efd7b2e6-7f1b-3e6f-a970-bcf20941cd6a", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "identifier": [ + { + "use": { + "isString": true, + "content": "official", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "type": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://loinc.org", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "81959-9", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Public health laboratory ask at order entry panel", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + } + ], + "status": { + "isString": true, + "content": "final", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://loinc.org", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "95421-4", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Resides in a congregate care setting", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "text": { + "isString": true, + "content": "Resides in a congregate care setting", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "subject": { + "reference": { + "isString": true, + "content": "Patient/f23cff4a-971b-48d9-8d99-3890d390c3a4", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "effectiveDateTime": { + "isString": true, + "content": "1961-11-19T07:14:16.093Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "issued": { + "isString": true, + "content": "2019-10-20T16:00:22.324Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "valueCodeableConcept": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://terminology.hl7.org/ValueSet/v2-0136", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "N", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "No", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "note": [ + { + "text": { + "isString": true, + "content": "I am some random text", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + } + ] +} \ No newline at end of file diff --git a/prime-router/src/main/kotlin/common/piithere.json b/prime-router/src/main/kotlin/common/piithere.json new file mode 100644 index 00000000000..0fa1f11ae26 --- /dev/null +++ b/prime-router/src/main/kotlin/common/piithere.json @@ -0,0 +1,1930 @@ +{ + "resourceType": { + "isString": true, + "content": "Bundle", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "identifier": { + "value": { + "isString": true, + "content": "ac108756-2162-470c-8a00-a189b3e94a54", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "type": { + "isString": true, + "content": "message", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "timestamp": { + "isString": true, + "content": "2023-10-18T22:20:22.347Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "entry": [ + { + "fullUrl": { + "isString": true, + "content": "MessageHeader/c7414da3-edc1-4a3e-9c5c-8d7a8e5cf775", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "MessageHeader", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "c7414da3-edc1-4a3e-9c5c-8d7a8e5cf775", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "meta": { + "tag": [ + { + "system": { + "isString": true, + "content": "http://terminology.hl7.org/CodeSystem/v2-0103", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "T", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Training", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "eventCoding": { + "system": { + "isString": true, + "content": "http://terminology.hl7.org/CodeSystem/v2-0003", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "R01", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "ORU/ACK - Unsolicited transmission of an observation message", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "destination": [ + { + "name": { + "isString": true, + "content": "PRIME ReportStream", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "endpoint": { + "isString": true, + "content": "https://prime.cdc.gov/api/reports?option=SkipInvalidItems", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "sender": { + "reference": { + "isString": true, + "content": "Organization/9e22cfde-e704-4922-a247-b1a6ac0f43bc", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "source": { + "extension": [ + { + "url": { + "isString": true, + "content": "https://reportstream.cdc.gov/fhir/StructureDefinition/software-binary-id", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "valueString": { + "isString": true, + "content": "e3d085e", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + { + "url": { + "isString": true, + "content": "https://reportstream.cdc.gov/fhir/StructureDefinition/software-install-date", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "valueInstant": { + "isString": true, + "content": "2023-10-18T21:06:03Z", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + { + "url": { + "isString": true, + "content": "https://reportstream.cdc.gov/fhir/StructureDefinition/software-vendor-org", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "valueReference": { + "reference": { + "isString": true, + "content": "Organization/07640c5d-87cd-488b-9343-a226c5166539", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + } + ], + "software": { + "isString": true, + "content": "PRIME SimpleReport", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "version": { + "isString": true, + "content": "e3d085e", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "endpoint": { + "isString": true, + "content": "https://simplereport.gov", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "focus": [ + { + "reference": { + "isString": true, + "content": "Provenance/cad7f8ea-6bd0-417f-8efd-7154228654e8", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + { + "reference": { + "isString": true, + "content": "DiagnosticReport/ac108756-2162-470c-8a00-a189b3e94a54", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + }, + { + "fullUrl": { + "isString": true, + "content": "Provenance/cad7f8ea-6bd0-417f-8efd-7154228654e8", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "Provenance", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "cad7f8ea-6bd0-417f-8efd-7154228654e8", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "recorded": { + "isString": true, + "content": "2023-10-18T22:20:22.347Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "activity": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://terminology.hl7.org/CodeSystem/v2-0003", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "R01", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "ORU/ACK - Unsolicited transmission of an observation message", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "agent": [ + { + "who": { + "reference": { + "isString": true, + "content": "Organization/9e22cfde-e704-4922-a247-b1a6ac0f43bc", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + } + ] + } + }, + { + "fullUrl": { + "isString": true, + "content": "DiagnosticReport/ac108756-2162-470c-8a00-a189b3e94a54", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "DiagnosticReport", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "ac108756-2162-470c-8a00-a189b3e94a54", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "identifier": [ + { + "value": { + "isString": true, + "content": "ac108756-2162-470c-8a00-a189b3e94a54", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "basedOn": [ + { + "reference": { + "isString": true, + "content": "ServiceRequest/b0ba1f7e-f36e-4fc6-9f88-5ee8b3de58a1", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "status": { + "isString": true, + "content": "final", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://loinc.org", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "95941-1", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "subject": { + "reference": { + "isString": true, + "content": "Patient/283f16c8-0a61-487f-af1b-50fe0dbdb2a8", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "effectiveDateTime": { + "isString": true, + "content": "2023-10-18T22:05:20+00:00", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "issued": { + "isString": true, + "content": "2023-10-18T22:20:22+00:00", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "specimen": [ + { + "reference": { + "isString": true, + "content": "Specimen/52a582e4-d389-42d0-b738-bee51cf5244d", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "result": [ + { + "reference": { + "isString": true, + "content": "Observation/29574070-adfc-4d53-a48f-5ddcc382614e", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + { + "reference": { + "isString": true, + "content": "Observation/99a3d501-90c1-467b-b4a3-568f5af5178d", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + { + "reference": { + "isString": true, + "content": "Observation/e7fdd44c-9625-469d-b891-7a7e706680a0", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + }, + { + "fullUrl": { + "isString": true, + "content": "Patient/283f16c8-0a61-487f-af1b-50fe0dbdb2a8", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "Patient", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "283f16c8-0a61-487f-af1b-50fe0dbdb2a8", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "extension": [ + { + "url": { + "isString": true, + "content": "http://ibm.com/fhir/cdm/StructureDefinition/local-race-cd", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "valueCodeableConcept": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://terminology.hl7.org/CodeSystem/v3-NullFlavor", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "ASKU", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "text": { + "isString": true, + "content": "refused", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + }, + { + "url": { + "isString": true, + "content": "https://reportstream.cdc.gov/fhir/StructureDefinition/ethnic-group", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "valueCodeableConcept": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://terminology.hl7.org/CodeSystem/v2-0189", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "N", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Not Hispanic or Latino", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "text": { + "isString": true, + "content": "Not Hispanic or Latino", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + } + ], + "identifier": [ + { + "value": { + "isString": true, + "content": "283f16c8-0a61-487f-af1b-50fe0dbdb2a8", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "name": [ + { + "family": { + "isString": true, + "content": " I", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "given": [ + { + "isString": true, + "content": "Deane", + "coerceToInlineType$kotlinx_serialization_json": null + } + ] + } + ], + "telecom": [ + { + "system": { + "isString": true, + "content": "phone", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "value": { + "isString": true, + "content": "12124126721", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "use": { + "isString": true, + "content": "home", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + { + "system": { + "isString": true, + "content": "email", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "value": { + "isString": true, + "content": "ChongDenesik@gmail.com", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "use": { + "isString": true, + "content": "home", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "gender": { + "isString": true, + "content": "female", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "birthDate": { + "isString": true, + "content": "2017-01-30", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "address": [ + { + "line": [ + { + "isString": true, + "content": "863 Glady Rue", + "coerceToInlineType$kotlinx_serialization_json": null + } + ], + "city": { + "isString": true, + "content": "Myrtle", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "district": { + "isString": true, + "content": "Texas", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "state": { + "isString": true, + "content": "MO", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "postalCode": { + "isString": true, + "content": "65263", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "country": { + "isString": true, + "content": "USA", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "managingOrganization": { + "reference": { + "isString": true, + "content": "Organization/9e22cfde-e704-4922-a247-b1a6ac0f43bc", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + } + }, + { + "fullUrl": { + "isString": true, + "content": "Organization/9e22cfde-e704-4922-a247-b1a6ac0f43bc", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "Organization", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "9e22cfde-e704-4922-a247-b1a6ac0f43bc", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "identifier": [ + { + "use": { + "isString": true, + "content": "official", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "type": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://terminology.hl7.org/CodeSystem/v2-0301", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "CLIA", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "value": { + "isString": true, + "content": "12D3456789", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "name": { + "isString": true, + "content": "Carl Potts", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "telecom": [ + { + "system": { + "isString": true, + "content": "phone", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "value": { + "isString": true, + "content": "12505245506", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "use": { + "isString": true, + "content": "work", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + { + "system": { + "isString": true, + "content": "email", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "value": { + "isString": true, + "content": "MozelleMarksIII@gmail.com", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "use": { + "isString": true, + "content": "work", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "address": [ + { + "line": [ + { + "isString": true, + "content": "661 Ondricka Point", + "coerceToInlineType$kotlinx_serialization_json": null + } + ], + "city": { + "isString": true, + "content": "Avilla", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "district": { + "isString": true, + "content": "Lawrence", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "state": { + "isString": true, + "content": "MO", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "postalCode": { + "isString": true, + "content": "64126", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "country": { + "isString": true, + "content": "USA", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + }, + { + "fullUrl": { + "isString": true, + "content": "Practitioner/48db8ab7-c884-4cf7-9a4f-b5fe6efb37da", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "Practitioner", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "48db8ab7-c884-4cf7-9a4f-b5fe6efb37da", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "name": [ + { + "family": { + "isString": true, + "content": " Graham", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "given": [ + { + "isString": true, + "content": "Ashleigh", + "coerceToInlineType$kotlinx_serialization_json": null + } + ] + } + ], + "telecom": [ + { + "system": { + "isString": true, + "content": "phone", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "value": { + "isString": true, + "content": "12040411872", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "use": { + "isString": true, + "content": "work", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "address": [ + { + "line": [ + { + "isString": true, + "content": "168 Moore Groves", + "coerceToInlineType$kotlinx_serialization_json": null + } + ], + "city": { + "isString": true, + "content": "Rosendale", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "district": { + "isString": true, + "content": "Iron", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "state": { + "isString": true, + "content": "MO", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "postalCode": { + "isString": true, + "content": "64145", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "country": { + "isString": true, + "content": "USA", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + }, + { + "fullUrl": { + "isString": true, + "content": "Specimen/52a582e4-d389-42d0-b738-bee51cf5244d", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "Specimen", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "52a582e4-d389-42d0-b738-bee51cf5244d", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "identifier": [ + { + "value": { + "isString": true, + "content": "7fc4aee2-c426-4b2b-953c-86c877ff9bd0", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "type": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://snomed.info/sct", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "697989009", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "text": { + "isString": true, + "content": "Anterior nares swab", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "subject": { + "reference": { + "isString": true, + "content": "Patient/283f16c8-0a61-487f-af1b-50fe0dbdb2a8", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "receivedTime": { + "isString": true, + "content": "2023-10-18T22:05:20+00:00", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "collection": { + "collectedDateTime": { + "isString": true, + "content": "2023-10-18T22:05:20+00:00", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "note": [ + { + "text": { + "isString": true, + "content": "I am some random text", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + }, + { + "fullUrl": { + "isString": true, + "content": "ServiceRequest/b0ba1f7e-f36e-4fc6-9f88-5ee8b3de58a1", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "ServiceRequest", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "b0ba1f7e-f36e-4fc6-9f88-5ee8b3de58a1", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "extension": [ + { + "url": { + "isString": true, + "content": "https://reportstream.cdc.gov/fhir/StructureDefinition/order-control", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "valueCodeableConcept": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://terminology.hl7.org/CodeSystem/v2-0119", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "RE", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + }, + { + "url": { + "isString": true, + "content": "https://reportstream.cdc.gov/fhir/StructureDefinition/order-effective-date", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "valueDateTime": { + "isString": true, + "content": "2023-10-18T22:20:20+00:00", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "status": { + "isString": true, + "content": "completed", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "intent": { + "isString": true, + "content": "order", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://loinc.org", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "95941-1", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "subject": { + "reference": { + "isString": true, + "content": "Patient/283f16c8-0a61-487f-af1b-50fe0dbdb2a8", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "requester": { + "reference": { + "isString": true, + "content": "PractitionerRole/2d79a27c-2a8f-4f4c-a913-da434cac0203", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "performer": [ + { + "reference": { + "isString": true, + "content": "Organization/9e22cfde-e704-4922-a247-b1a6ac0f43bc", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "supportingInfo": [ + { + "reference": { + "isString": true, + "content": "Observation/2ddc518f-ee1c-3cf2-8126-de380f388293", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + { + "reference": { + "isString": true, + "content": "Observation/71280434-d4a7-3488-bc8b-5a0b76f71437", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + { + "reference": { + "isString": true, + "content": "Observation/efd7b2e6-7f1b-3e6f-a970-bcf20941cd6a", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "note": [ + { + "text": { + "isString": true, + "content": "I am some random text", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + }, + { + "fullUrl": { + "isString": true, + "content": "Device/a72e8edb-bb54-47b1-83ed-938aaed01122", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "Device", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "a72e8edb-bb54-47b1-83ed-938aaed01122", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "identifier": [ + { + "value": { + "isString": true, + "content": "00884999048034", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "manufacturer": { + "isString": true, + "content": "Abbott", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "deviceName": [ + { + "name": { + "isString": true, + "content": "Alinity m", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "type": { + "isString": true, + "content": "model-name", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + }, + { + "fullUrl": { + "isString": true, + "content": "PractitionerRole/2d79a27c-2a8f-4f4c-a913-da434cac0203", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "PractitionerRole", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "2d79a27c-2a8f-4f4c-a913-da434cac0203", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "practitioner": { + "reference": { + "isString": true, + "content": "Practitioner/48db8ab7-c884-4cf7-9a4f-b5fe6efb37da", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "organization": { + "reference": { + "isString": true, + "content": "Organization/9e22cfde-e704-4922-a247-b1a6ac0f43bc", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + } + }, + { + "fullUrl": { + "isString": true, + "content": "Organization/07640c5d-87cd-488b-9343-a226c5166539", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "Organization", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "07640c5d-87cd-488b-9343-a226c5166539", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "name": { + "isString": true, + "content": "SimpleReport", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + }, + { + "fullUrl": { + "isString": true, + "content": "Observation/29574070-adfc-4d53-a48f-5ddcc382614e", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "Observation", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "29574070-adfc-4d53-a48f-5ddcc382614e", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "status": { + "isString": true, + "content": "final", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://loinc.org", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "85477-8", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "text": { + "isString": true, + "content": "Flu A", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "subject": { + "reference": { + "isString": true, + "content": "Patient/283f16c8-0a61-487f-af1b-50fe0dbdb2a8", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "effectiveDateTime": { + "isString": true, + "content": "2003-12-25T07:46:58.110Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "issued": { + "isString": true, + "content": "1991-08-11T15:05:25.378Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "performer": [ + { + "reference": { + "isString": true, + "content": "Organization/9e22cfde-e704-4922-a247-b1a6ac0f43bc", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "valueCodeableConcept": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://snomed.info/sct", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "260373001", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Detected", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "system": { + "isString": true, + "content": "http://terminology.hl7.org/CodeSystem/v2-0078", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "A", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Abnormal", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + ], + "note": [ + { + "text": { + "isString": true, + "content": "I am some random text", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "method": { + "extension": [ + { + "url": { + "isString": true, + "content": "https://reportstream.cdc.gov/fhir/StructureDefinition/testkit-name-id", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "valueCoding": { + "code": { + "isString": true, + "content": "Alinity m Resp-4-Plex_Abbott Molecular Inc.", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + } + ], + "coding": [ + { + "display": { + "isString": true, + "content": "Alinity m", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "specimen": { + "reference": { + "isString": true, + "content": "Specimen/52a582e4-d389-42d0-b738-bee51cf5244d", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "device": { + "reference": { + "isString": true, + "content": "Device/a72e8edb-bb54-47b1-83ed-938aaed01122", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + } + }, + { + "fullUrl": { + "isString": true, + "content": "Observation/99a3d501-90c1-467b-b4a3-568f5af5178d", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "Observation", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "99a3d501-90c1-467b-b4a3-568f5af5178d", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "status": { + "isString": true, + "content": "final", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://loinc.org", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "85478-6", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "text": { + "isString": true, + "content": "Flu B", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "subject": { + "reference": { + "isString": true, + "content": "Patient/283f16c8-0a61-487f-af1b-50fe0dbdb2a8", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "effectiveDateTime": { + "isString": true, + "content": "1996-05-19T23:25:45.871Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "issued": { + "isString": true, + "content": "1961-11-24T16:11:02.627Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "performer": [ + { + "reference": { + "isString": true, + "content": "Organization/9e22cfde-e704-4922-a247-b1a6ac0f43bc", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "valueCodeableConcept": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://snomed.info/sct", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "260373001", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Detected", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "system": { + "isString": true, + "content": "http://terminology.hl7.org/CodeSystem/v2-0078", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "A", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Abnormal", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + ], + "note": [ + { + "text": { + "isString": true, + "content": "I am some random text", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "method": { + "extension": [ + { + "url": { + "isString": true, + "content": "https://reportstream.cdc.gov/fhir/StructureDefinition/testkit-name-id", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "valueCoding": { + "code": { + "isString": true, + "content": "Alinity m Resp-4-Plex_Abbott Molecular Inc.", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + } + ], + "coding": [ + { + "display": { + "isString": true, + "content": "Alinity m", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "specimen": { + "reference": { + "isString": true, + "content": "Specimen/52a582e4-d389-42d0-b738-bee51cf5244d", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "device": { + "reference": { + "isString": true, + "content": "Device/a72e8edb-bb54-47b1-83ed-938aaed01122", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + } + }, + { + "fullUrl": { + "isString": true, + "content": "Observation/e7fdd44c-9625-469d-b891-7a7e706680a0", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "Observation", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "e7fdd44c-9625-469d-b891-7a7e706680a0", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "status": { + "isString": true, + "content": "final", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://loinc.org", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "94500-6", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "text": { + "isString": true, + "content": "COVID-19", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "subject": { + "reference": { + "isString": true, + "content": "Patient/283f16c8-0a61-487f-af1b-50fe0dbdb2a8", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "effectiveDateTime": { + "isString": true, + "content": "1966-10-31T11:23:28.181Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "issued": { + "isString": true, + "content": "1971-05-26T06:18:40.872Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "performer": [ + { + "reference": { + "isString": true, + "content": "Organization/9e22cfde-e704-4922-a247-b1a6ac0f43bc", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "valueCodeableConcept": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://snomed.info/sct", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "260373001", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Detected", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "system": { + "isString": true, + "content": "http://terminology.hl7.org/CodeSystem/v2-0078", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "A", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Abnormal", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + ], + "note": [ + { + "text": { + "isString": true, + "content": "I am some random text", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "method": { + "coding": [ + { + "display": { + "isString": true, + "content": "Alinity m", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "specimen": { + "reference": { + "isString": true, + "content": "Specimen/52a582e4-d389-42d0-b738-bee51cf5244d", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "device": { + "reference": { + "isString": true, + "content": "Device/a72e8edb-bb54-47b1-83ed-938aaed01122", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + } + }, + { + "fullUrl": { + "isString": true, + "content": "Observation/2ddc518f-ee1c-3cf2-8126-de380f388293", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "Observation", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "2ddc518f-ee1c-3cf2-8126-de380f388293", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "identifier": [ + { + "use": { + "isString": true, + "content": "official", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "type": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://loinc.org", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "81959-9", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Public health laboratory ask at order entry panel", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + } + ], + "status": { + "isString": true, + "content": "final", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://loinc.org", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "95419-8", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Has symptoms related to condition of interest", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "text": { + "isString": true, + "content": "Has symptoms related to condition of interest", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "subject": { + "reference": { + "isString": true, + "content": "Patient/283f16c8-0a61-487f-af1b-50fe0dbdb2a8", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "effectiveDateTime": { + "isString": true, + "content": "1999-10-19T14:50:51.489Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "issued": { + "isString": true, + "content": "1981-08-18T12:23:05.985Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "valueCodeableConcept": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://terminology.hl7.org/CodeSystem/v3-NullFlavor", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "UNK", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "unknown", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "note": [ + { + "text": { + "isString": true, + "content": "I am some random text", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + }, + { + "fullUrl": { + "isString": true, + "content": "Observation/71280434-d4a7-3488-bc8b-5a0b76f71437", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "Observation", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "71280434-d4a7-3488-bc8b-5a0b76f71437", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "identifier": [ + { + "use": { + "isString": true, + "content": "official", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "type": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://loinc.org", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "81959-9", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Public health laboratory ask at order entry panel", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + } + ], + "status": { + "isString": true, + "content": "final", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://loinc.org", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "95418-0", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Employed in a healthcare setting", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "text": { + "isString": true, + "content": "Employed in a healthcare setting", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "subject": { + "reference": { + "isString": true, + "content": "Patient/283f16c8-0a61-487f-af1b-50fe0dbdb2a8", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "effectiveDateTime": { + "isString": true, + "content": "1967-06-09T22:05:58.750Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "issued": { + "isString": true, + "content": "1975-10-23T13:33:40.186Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "valueCodeableConcept": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://terminology.hl7.org/ValueSet/v2-0136", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "N", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "No", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "note": [ + { + "text": { + "isString": true, + "content": "I am some random text", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + }, + { + "fullUrl": { + "isString": true, + "content": "Observation/efd7b2e6-7f1b-3e6f-a970-bcf20941cd6a", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "resource": { + "resourceType": { + "isString": true, + "content": "Observation", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "id": { + "isString": true, + "content": "efd7b2e6-7f1b-3e6f-a970-bcf20941cd6a", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "identifier": [ + { + "use": { + "isString": true, + "content": "official", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "type": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://loinc.org", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "81959-9", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Public health laboratory ask at order entry panel", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + } + ], + "status": { + "isString": true, + "content": "final", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://loinc.org", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "95421-4", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "Resides in a congregate care setting", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ], + "text": { + "isString": true, + "content": "Resides in a congregate care setting", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "subject": { + "reference": { + "isString": true, + "content": "Patient/283f16c8-0a61-487f-af1b-50fe0dbdb2a8", + "coerceToInlineType$kotlinx_serialization_json": null + } + }, + "effectiveDateTime": { + "isString": true, + "content": "1946-04-06T02:01:36.795Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "issued": { + "isString": true, + "content": "1983-07-07T22:56:38.488Z", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "valueCodeableConcept": { + "coding": [ + { + "system": { + "isString": true, + "content": "http://terminology.hl7.org/ValueSet/v2-0136", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "code": { + "isString": true, + "content": "N", + "coerceToInlineType$kotlinx_serialization_json": null + }, + "display": { + "isString": true, + "content": "No", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + }, + "note": [ + { + "text": { + "isString": true, + "content": "I am some random text", + "coerceToInlineType$kotlinx_serialization_json": null + } + } + ] + } + } + ] +} \ No newline at end of file diff --git a/prime-router/src/main/resources/metadata/fhir_transforms/common/remove-pii-address.yml b/prime-router/src/main/resources/metadata/fhir_transforms/common/remove-pii-address.yml index bb5c515cea8..4f3244f0067 100644 --- a/prime-router/src/main/resources/metadata/fhir_transforms/common/remove-pii-address.yml +++ b/prime-router/src/main/resources/metadata/fhir_transforms/common/remove-pii-address.yml @@ -2,7 +2,7 @@ elements: # removing the street address is more complicated because it is a list so we will do this in code - name: pii-removal-street-address2 - condition: '%resource.extension("https://reportstream.cdc.gov/fhir/StructureDefinition/xad-address").extension.where(url = "XAD.2")' + condition: '%resource.extension("https://reportstream.cdc.gov/fhir/StructureDefinition/xad-address").extension.where(url = "XAD.2").empty().not()' value: [ 'getFakeValueForElement("STREET_ADDRESS_2")' ] bundleProperty: '%resource.extension("https://reportstream.cdc.gov/fhir/StructureDefinition/xad-address").extension.where(url = "XAD.2").value' diff --git a/prime-router/src/test/kotlin/azure/ReportFunctionTests.kt b/prime-router/src/test/kotlin/azure/ReportFunctionTests.kt index 7581a1210ad..c431198cd5f 100644 --- a/prime-router/src/test/kotlin/azure/ReportFunctionTests.kt +++ b/prime-router/src/test/kotlin/azure/ReportFunctionTests.kt @@ -59,7 +59,6 @@ import org.junit.jupiter.api.Test import org.junit.jupiter.api.assertThrows import java.time.OffsetDateTime import java.util.UUID -import kotlin.test.assertFailsWith class ReportFunctionTests { val dataProvider = MockDataProvider { emptyArray() } @@ -854,20 +853,17 @@ class ReportFunctionTests { val metadata = UnitTestUtils.simpleMetadata val settings = FileSettings().loadOrganizations(oneOrganization) val actionHistory = spyk(ActionHistory(TaskAction.receive)) - assertFailsWith( - block = { - ReportFunction( - makeEngine(metadata, settings), - actionHistory - ).processDownloadReport( - MockHttpRequestMessage(), - reportId, - true, - "local", - mockDb - ) - } + val result = ReportFunction( + makeEngine(metadata, settings), + actionHistory + ).processDownloadReport( + MockHttpRequestMessage(), + reportId, + true, + "local", + mockDb ) + assert(result.status.value() == 400) } @Test