From 3ba67c509c1e1d539da0bb43f375b9b56738eea2 Mon Sep 17 00:00:00 2001 From: Josiah Siegel Date: Wed, 28 Aug 2024 10:15:20 -0400 Subject: [PATCH 01/40] update exception alerts to exclude dependencies --- .../application_insights/alert_exception.tf | 113 ++++++++++-------- .../app/terraform/modules/metabase/main.tf | 6 +- 2 files changed, 68 insertions(+), 51 deletions(-) diff --git a/operations/app/terraform/modules/application_insights/alert_exception.tf b/operations/app/terraform/modules/application_insights/alert_exception.tf index 45e62e6ee5f..28f969e4c50 100644 --- a/operations/app/terraform/modules/application_insights/alert_exception.tf +++ b/operations/app/terraform/modules/application_insights/alert_exception.tf @@ -4,83 +4,98 @@ # Severity 3 - Informational # Severity 4 - Verbose -resource "azurerm_monitor_metric_alert" "exception_alert_critical" { +resource "azurerm_monitor_scheduled_query_rules_alert" "exception_alert_critical" { count = local.alerting_enabled name = "Over 100 Exceptions Raised in the Last Hour" description = "Over 100 Exceptions Raised in the Last Hour" + location = var.location resource_group_name = var.resource_group - scopes = [azurerm_application_insights.app_insights.id] - window_size = "PT1H" - frequency = "PT1M" - severity = 0 - - criteria { - metric_namespace = "microsoft.insights/components" - metric_name = "exceptions/count" - aggregation = "Count" - operator = "GreaterThan" - threshold = 99 - } action { - action_group_id = azurerm_monitor_action_group.action_group[0].id + action_group = [azurerm_monitor_action_group.action_group[0].id] } + data_source_id = azurerm_application_insights.app_insights.id + enabled = true + query = <<-EOT + let requests = requests + | distinct id; + let pageViews = pageViews + | distinct id; + let trace = union requests, pageViews; + exceptions + | join kind=inner trace on $left.operation_ParentId == $right.id + EOT + throttling = 120 + severity = 0 + frequency = 15 + time_window = 60 - tags = { - environment = var.environment + trigger { + operator = "GreaterThanOrEqual" + threshold = 100 } } -resource "azurerm_monitor_metric_alert" "exception_alert_error" { +resource "azurerm_monitor_scheduled_query_rules_alert" "exception_alert_error" { count = local.alerting_enabled name = "Over 10 Exceptions Raised in the Last Hour" description = "Over 10 Exceptions Raised in the Last Hour" + location = var.location resource_group_name = var.resource_group - scopes = [azurerm_application_insights.app_insights.id] - window_size = "PT1H" - frequency = "PT1M" - severity = 1 - - criteria { - metric_namespace = "microsoft.insights/components" - metric_name = "exceptions/count" - aggregation = "Count" - operator = "GreaterThan" - threshold = 9 - } action { - action_group_id = azurerm_monitor_action_group.action_group[0].id + action_group = [azurerm_monitor_action_group.action_group[0].id] } + data_source_id = azurerm_application_insights.app_insights.id + enabled = true + query = <<-EOT + let requests = requests + | distinct id; + let pageViews = pageViews + | distinct id; + let trace = union requests, pageViews; + exceptions + | join kind=inner trace on $left.operation_ParentId == $right.id + EOT + throttling = 120 + severity = 2 + frequency = 15 + time_window = 60 - tags = { - environment = var.environment + trigger { + operator = "GreaterThanOrEqual" + threshold = 10 } } -resource "azurerm_monitor_metric_alert" "exception_alert_warn" { - count = local.prod_exclusive_alerting +resource "azurerm_monitor_scheduled_query_rules_alert" "exception_alert_warn" { + count = local.alerting_enabled name = "One or More Exceptions Raised in the Last Hour" description = "One or More Exceptions Raised in the Last Hour" + location = var.location resource_group_name = var.resource_group - scopes = [azurerm_application_insights.app_insights.id] - window_size = "PT30M" - frequency = "PT5M" - severity = 3 - - criteria { - metric_namespace = "microsoft.insights/components" - metric_name = "exceptions/count" - aggregation = "Count" - operator = "GreaterThan" - threshold = 0 - } action { - action_group_id = azurerm_monitor_action_group.action_group[0].id + action_group = [azurerm_monitor_action_group.action_group[0].id] } + data_source_id = azurerm_application_insights.app_insights.id + enabled = true + query = <<-EOT + let requests = requests + | distinct id; + let pageViews = pageViews + | distinct id; + let trace = union requests, pageViews; + exceptions + | join kind=inner trace on $left.operation_ParentId == $right.id + EOT + throttling = 120 + severity = 3 + frequency = 15 + time_window = 60 - tags = { - environment = var.environment + trigger { + operator = "GreaterThanOrEqual" + threshold = 1 } } \ No newline at end of file diff --git a/operations/app/terraform/modules/metabase/main.tf b/operations/app/terraform/modules/metabase/main.tf index 5d5ba7f903a..ea377d4f623 100644 --- a/operations/app/terraform/modules/metabase/main.tf +++ b/operations/app/terraform/modules/metabase/main.tf @@ -14,8 +14,8 @@ resource "azurerm_linux_web_app" "metabase" { site_config { application_stack { - docker_image_name = "metabase/metabase:latest" - docker_registry_url = "https://index.docker.io" + docker_image_name = "metabase/metabase:v0.50.7" + docker_registry_url = "https://index.docker.io/v1" } ip_restriction { @@ -122,6 +122,8 @@ resource "azurerm_linux_web_app" "metabase" { # If the virtual network is set via the resource app_service_virtual_network_swift_connection # then ignore_changes should be used in the web app configuration. virtual_network_subnet_id, + # Ignore auto-generated hidden-links + tags ] } } From a65a512e18efda3b1463c09698d47567c1941608 Mon Sep 17 00:00:00 2001 From: Gabriel Dorsch Date: Wed, 28 Aug 2024 12:10:13 -0400 Subject: [PATCH 02/40] Enhance integration tests; add missing destination in fhir receiver filter step (#15674) --- .../fhirengine/engine/FHIRReceiverFilter.kt | 1 + .../azure/FHIRConverterIntegrationTests.kt | 77 ++++++++- .../FHIRDestinationFilterIntegrationTests.kt | 61 +++++-- .../FHIRReceiverFilterIntegrationTests.kt | 38 ++++- .../azure/FHIRTranslatorIntegrationTests.kt | 157 ++++++++---------- 5 files changed, 230 insertions(+), 104 deletions(-) diff --git a/prime-router/src/main/kotlin/fhirengine/engine/FHIRReceiverFilter.kt b/prime-router/src/main/kotlin/fhirengine/engine/FHIRReceiverFilter.kt index a8efac86439..eb6313974b0 100644 --- a/prime-router/src/main/kotlin/fhirengine/engine/FHIRReceiverFilter.kt +++ b/prime-router/src/main/kotlin/fhirengine/engine/FHIRReceiverFilter.kt @@ -357,6 +357,7 @@ class FHIRReceiverFilter( ), metadata = this.metadata, topic = queueMessage.topic, + destination = receiver, nextAction = TaskAction.translate ) diff --git a/prime-router/src/test/kotlin/fhirengine/azure/FHIRConverterIntegrationTests.kt b/prime-router/src/test/kotlin/fhirengine/azure/FHIRConverterIntegrationTests.kt index 6d5da0a4d2d..194cf38f3dc 100644 --- a/prime-router/src/test/kotlin/fhirengine/azure/FHIRConverterIntegrationTests.kt +++ b/prime-router/src/test/kotlin/fhirengine/azure/FHIRConverterIntegrationTests.kt @@ -244,9 +244,27 @@ class FHIRConverterIntegrationTests { fhirFunctions.process(queueMessage, 1, createFHIRConverter(), ActionHistory(TaskAction.convert)) ReportStreamTestDatabaseContainer.testDatabaseAccess.transact { txn -> - val (routedReports, _) = fetchChildReports( + val (routedReports, unroutedReports) = fetchChildReports( receiveReport, txn, 4 ).partition { it.nextAction != TaskAction.none } + assertThat(routedReports).hasSize(2) + routedReports.forEach { + assertThat(it.nextAction).isEqualTo(TaskAction.destination_filter) + assertThat(it.receivingOrg).isEqualTo(null) + assertThat(it.receivingOrgSvc).isEqualTo(null) + assertThat(it.schemaName).isEqualTo("None") + assertThat(it.schemaTopic).isEqualTo(Topic.FULL_ELR) + assertThat(it.bodyFormat).isEqualTo("FHIR") + } + assertThat(unroutedReports).hasSize(2) + unroutedReports.forEach { + assertThat(it.nextAction).isEqualTo(TaskAction.none) + assertThat(it.receivingOrg).isEqualTo(null) + assertThat(it.receivingOrgSvc).isEqualTo(null) + assertThat(it.schemaName).isEqualTo("None") + assertThat(it.schemaTopic).isEqualTo(Topic.FULL_ELR) + assertThat(it.bodyFormat).isEqualTo("FHIR") + } // Verify that the expected FHIR bundles were uploaded val reportAndBundles = routedReports.map { @@ -409,9 +427,27 @@ class FHIRConverterIntegrationTests { fhirFunctions.process(queueMessage, 1, createFHIRConverter(), ActionHistory(TaskAction.convert)) ReportStreamTestDatabaseContainer.testDatabaseAccess.transact { txn -> - val (routedReports, _) = fetchChildReports( + val (routedReports, unroutedReports) = fetchChildReports( receiveReport, txn, 4 ).partition { it.nextAction != TaskAction.none } + assertThat(routedReports).hasSize(2) + routedReports.forEach { + assertThat(it.nextAction).isEqualTo(TaskAction.destination_filter) + assertThat(it.receivingOrg).isEqualTo(null) + assertThat(it.receivingOrgSvc).isEqualTo(null) + assertThat(it.schemaName).isEqualTo("None") + assertThat(it.schemaTopic).isEqualTo(Topic.FULL_ELR) + assertThat(it.bodyFormat).isEqualTo("FHIR") + } + assertThat(unroutedReports).hasSize(2) + unroutedReports.forEach { + assertThat(it.nextAction).isEqualTo(TaskAction.none) + assertThat(it.receivingOrg).isEqualTo(null) + assertThat(it.receivingOrgSvc).isEqualTo(null) + assertThat(it.schemaName).isEqualTo("None") + assertThat(it.schemaTopic).isEqualTo(Topic.FULL_ELR) + assertThat(it.bodyFormat).isEqualTo("FHIR") + } // Verify that the expected FHIR bundles were uploaded val reportAndBundles = routedReports.map { @@ -536,6 +572,24 @@ class FHIRConverterIntegrationTests { val (routedReports, notRouted) = fetchChildReports( receiveReport, txn, 2 ).partition { it.nextAction != TaskAction.none } + + with(routedReports.single()) { + assertThat(this.nextAction).isEqualTo(TaskAction.destination_filter) + assertThat(this.receivingOrg).isEqualTo(null) + assertThat(this.receivingOrgSvc).isEqualTo(null) + assertThat(this.schemaName).isEqualTo("None") + assertThat(this.schemaTopic).isEqualTo(Topic.MARS_OTC_ELR) + assertThat(this.bodyFormat).isEqualTo("FHIR") + } + with(notRouted.single()) { + assertThat(this.nextAction).isEqualTo(TaskAction.none) + assertThat(this.receivingOrg).isEqualTo(null) + assertThat(this.receivingOrgSvc).isEqualTo(null) + assertThat(this.schemaName).isEqualTo("None") + assertThat(this.schemaTopic).isEqualTo(Topic.MARS_OTC_ELR) + assertThat(this.bodyFormat).isEqualTo("FHIR") + } + // Verify that the expected FHIR bundles were uploaded val reportAndBundles = routedReports.map { @@ -593,7 +647,7 @@ class FHIRConverterIntegrationTests { .reportStreamEvents[ReportStreamEventName.ITEM_FAILED_VALIDATION]!!.last() as ReportStreamItemEvent assertThat(event.reportEventData).isEqualToIgnoringGivenProperties( ReportEventData( - notRouted[0].reportId, + notRouted.first().reportId, receiveReport.id, listOf(receiveReport.id), Topic.MARS_OTC_ELR, @@ -642,6 +696,15 @@ class FHIRConverterIntegrationTests { ReportStreamTestDatabaseContainer.testDatabaseAccess.transact { txn -> val routedReports = fetchChildReports(receiveReport, txn, 2) + routedReports.forEach { + assertThat(it.nextAction).isEqualTo(TaskAction.destination_filter) + assertThat(it.receivingOrg).isEqualTo(null) + assertThat(it.receivingOrgSvc).isEqualTo(null) + assertThat(it.schemaName).isEqualTo("None") + assertThat(it.schemaTopic).isEqualTo(Topic.FULL_ELR) + assertThat(it.bodyFormat).isEqualTo("FHIR") + } + // Verify that the expected FHIR bundles were uploaded val reportAndBundles = routedReports.map { @@ -716,7 +779,13 @@ class FHIRConverterIntegrationTests { QueueAccess.sendMessage(any(), any()) } ReportStreamTestDatabaseContainer.testDatabaseAccess.transact { txn -> - fetchChildReports(receiveReport, txn, 1) + val report = fetchChildReports(receiveReport, txn, 1).single() + assertThat(report.nextAction).isEqualTo(TaskAction.none) + assertThat(report.receivingOrg).isEqualTo(null) + assertThat(report.receivingOrgSvc).isEqualTo(null) + assertThat(report.schemaName).isEqualTo("None") + assertThat(report.schemaTopic).isEqualTo(Topic.FULL_ELR) + assertThat(report.bodyFormat).isEqualTo("FHIR") } } } \ No newline at end of file diff --git a/prime-router/src/test/kotlin/fhirengine/azure/FHIRDestinationFilterIntegrationTests.kt b/prime-router/src/test/kotlin/fhirengine/azure/FHIRDestinationFilterIntegrationTests.kt index b0b606d0a48..c34a3f04caa 100644 --- a/prime-router/src/test/kotlin/fhirengine/azure/FHIRDestinationFilterIntegrationTests.kt +++ b/prime-router/src/test/kotlin/fhirengine/azure/FHIRDestinationFilterIntegrationTests.kt @@ -7,6 +7,7 @@ import assertk.assertions.isEmpty import assertk.assertions.isEqualTo import assertk.assertions.isEqualToIgnoringGivenProperties import assertk.assertions.isInstanceOf +import assertk.assertions.isNull import gov.cdc.prime.router.ActionLog import gov.cdc.prime.router.CustomerStatus import gov.cdc.prime.router.DeepOrganization @@ -33,6 +34,7 @@ import gov.cdc.prime.router.azure.observability.event.ReportStreamEventPropertie import gov.cdc.prime.router.azure.observability.event.ReportStreamItemEvent import gov.cdc.prime.router.common.TestcontainersUtils import gov.cdc.prime.router.common.UniversalPipelineTestUtils +import gov.cdc.prime.router.common.UniversalPipelineTestUtils.fetchChildReports import gov.cdc.prime.router.common.validFHIRRecord1 import gov.cdc.prime.router.db.ReportStreamTestDatabaseContainer import gov.cdc.prime.router.db.ReportStreamTestDatabaseSetupExtension @@ -190,7 +192,24 @@ class FHIRDestinationFilterIntegrationTests : Logging { // check results ReportStreamTestDatabaseContainer.testDatabaseAccess.transact { txn -> - val routedReports = UniversalPipelineTestUtils.fetchChildReports(report, txn, 2) + val routedReports = fetchChildReports(report, txn, 2) + with(routedReports.first()) { + assertThat(this.nextAction).isEqualTo(TaskAction.receiver_filter) + assertThat(this.receivingOrg).isEqualTo("phd") + assertThat(this.receivingOrgSvc).isEqualTo("x") + assertThat(this.schemaName).isEqualTo("None") + assertThat(this.schemaTopic).isEqualTo(Topic.FULL_ELR) + assertThat(this.bodyFormat).isEqualTo("FHIR") + } + with(routedReports.last()) { + assertThat(this.nextAction).isEqualTo(TaskAction.receiver_filter) + assertThat(this.receivingOrg).isEqualTo("phd") + assertThat(this.receivingOrgSvc).isEqualTo("y") + assertThat(this.schemaName).isEqualTo("None") + assertThat(this.schemaTopic).isEqualTo(Topic.FULL_ELR) + assertThat(this.bodyFormat).isEqualTo("FHIR") + } + val routedBundles = routedReports.map { String( BlobAccess.downloadBlobAsByteArray( @@ -279,12 +298,20 @@ class FHIRDestinationFilterIntegrationTests : Logging { // check results ReportStreamTestDatabaseContainer.testDatabaseAccess.transact { txn -> - val routedReport = UniversalPipelineTestUtils.fetchChildReports(report, txn, 1).single() - val routedBundle = BlobAccess.downloadBlobAsByteArray( + val routedReport = fetchChildReports(report, txn, 1).single() + assertThat(routedReport.nextAction).isEqualTo(TaskAction.receiver_filter) + assertThat(routedReport.receivingOrg).isEqualTo("phd") + assertThat(routedReport.receivingOrgSvc).isEqualTo("x") + assertThat(routedReport.schemaName).isEqualTo("None") + assertThat(routedReport.schemaTopic).isEqualTo(Topic.FULL_ELR) + assertThat(routedReport.bodyFormat).isEqualTo("FHIR") + val routedBundle = String( + BlobAccess.downloadBlobAsByteArray( routedReport.bodyUrl, UniversalPipelineTestUtils.getBlobContainerMetadata(azuriteContainer) ) - assertThat(reportContents).isEqualTo(String(routedBundle)) + ) + assertThat(reportContents).isEqualTo(routedBundle) // check queue message val expectedQueueMessage = FhirReceiverFilterQueueMessage( @@ -336,16 +363,16 @@ class FHIRDestinationFilterIntegrationTests : Logging { ) assertThat(event.params).isEqualTo( mapOf( - ReportStreamEventProperties.RECEIVER_NAME to "phd.x", - ReportStreamEventProperties.BUNDLE_DIGEST to BundleDigestLabResult( - observationSummaries = AzureEventUtils.getObservationSummaries(bundle), - eventType = "ORU/ACK - Unsolicited transmission of an observation message", - patientState = listOf("CO"), - performerState = emptyList(), - orderingFacilityState = listOf("CO") + ReportStreamEventProperties.RECEIVER_NAME to "phd.x", + ReportStreamEventProperties.BUNDLE_DIGEST to BundleDigestLabResult( + observationSummaries = AzureEventUtils.getObservationSummaries(bundle), + eventType = "ORU/ACK - Unsolicited transmission of an observation message", + patientState = listOf("CO"), + performerState = emptyList(), + orderingFacilityState = listOf("CO") + ) ) ) - ) // check action table UniversalPipelineTestUtils.checkActionTable(listOf(TaskAction.receive, TaskAction.destination_filter)) @@ -390,8 +417,16 @@ class FHIRDestinationFilterIntegrationTests : Logging { // check action table UniversalPipelineTestUtils.checkActionTable(listOf(TaskAction.receive, TaskAction.destination_filter)) - // we don't log applications of jurisdictional filter to ACTION_LOG at this time ReportStreamTestDatabaseContainer.testDatabaseAccess.transact { txn -> + val childReport = fetchChildReports(report, txn, 1).first() + assertThat(childReport.nextAction).isEqualTo(TaskAction.none) + assertThat(childReport.receivingOrg).isNull() + assertThat(childReport.receivingOrgSvc).isNull() + assertThat(childReport.schemaName).isEqualTo("None") + assertThat(childReport.schemaTopic).isEqualTo(Topic.FULL_ELR) + assertThat(childReport.bodyFormat).isEqualTo("FHIR") + + // we don't log applications of jurisdictional filter to ACTION_LOG at this time val actionLogRecords = DSL.using(txn) .select(Tables.ACTION_LOG.asterisk()) .from(Tables.ACTION_LOG) diff --git a/prime-router/src/test/kotlin/fhirengine/azure/FHIRReceiverFilterIntegrationTests.kt b/prime-router/src/test/kotlin/fhirengine/azure/FHIRReceiverFilterIntegrationTests.kt index 2c2c2ea2910..6c765de0b73 100644 --- a/prime-router/src/test/kotlin/fhirengine/azure/FHIRReceiverFilterIntegrationTests.kt +++ b/prime-router/src/test/kotlin/fhirengine/azure/FHIRReceiverFilterIntegrationTests.kt @@ -272,6 +272,13 @@ class FHIRReceiverFilterIntegrationTests : Logging { // check results ReportStreamTestDatabaseContainer.testDatabaseAccess.transact { txn -> val routedReport = UniversalPipelineTestUtils.fetchChildReports(report, txn, 1).single() + assertThat(routedReport.nextAction).isEqualTo(TaskAction.translate) + assertThat(routedReport.receivingOrg).isEqualTo("phd") + assertThat(routedReport.receivingOrgSvc).isEqualTo("x") + assertThat(routedReport.schemaName).isEqualTo("None") + assertThat(routedReport.schemaTopic).isEqualTo(Topic.FULL_ELR) + assertThat(routedReport.bodyFormat).isEqualTo("FHIR") + val routedContents = String( BlobAccess.downloadBlobAsByteArray( routedReport.bodyUrl, @@ -449,8 +456,14 @@ class FHIRReceiverFilterIntegrationTests : Logging { // check results ReportStreamTestDatabaseContainer.testDatabaseAccess.transact { txn -> - val routedReport = UniversalPipelineTestUtils.fetchChildReports(report, txn, 1) - .single() + val routedReport = UniversalPipelineTestUtils.fetchChildReports(report, txn, 1).single() + assertThat(routedReport.nextAction).isEqualTo(TaskAction.translate) + assertThat(routedReport.receivingOrg).isEqualTo("phd") + assertThat(routedReport.receivingOrgSvc).isEqualTo("y") + assertThat(routedReport.schemaName).isEqualTo("None") + assertThat(routedReport.schemaTopic).isEqualTo(Topic.FULL_ELR) + assertThat(routedReport.bodyFormat).isEqualTo("FHIR") + val routedContents = String( BlobAccess.downloadBlobAsByteArray( routedReport.bodyUrl, @@ -622,6 +635,13 @@ class FHIRReceiverFilterIntegrationTests : Logging { // check results ReportStreamTestDatabaseContainer.testDatabaseAccess.transact { txn -> val routedReport = UniversalPipelineTestUtils.fetchChildReports(report, txn, 1).single() + assertThat(routedReport.nextAction).isEqualTo(TaskAction.translate) + assertThat(routedReport.receivingOrg).isEqualTo("phd") + assertThat(routedReport.receivingOrgSvc).isEqualTo("x") + assertThat(routedReport.schemaName).isEqualTo("None") + assertThat(routedReport.schemaTopic).isEqualTo(Topic.FULL_ELR) + assertThat(routedReport.bodyFormat).isEqualTo("FHIR") + val routedContents = String( BlobAccess.downloadBlobAsByteArray( routedReport.bodyUrl, @@ -913,6 +933,13 @@ class FHIRReceiverFilterIntegrationTests : Logging { // check results ReportStreamTestDatabaseContainer.testDatabaseAccess.transact { txn -> val routedReport = UniversalPipelineTestUtils.fetchChildReports(report, txn, 1).single() + assertThat(routedReport.nextAction).isEqualTo(TaskAction.translate) + assertThat(routedReport.receivingOrg).isEqualTo("phd") + assertThat(routedReport.receivingOrgSvc).isEqualTo("x") + assertThat(routedReport.schemaName).isEqualTo("None") + assertThat(routedReport.schemaTopic).isEqualTo(Topic.FULL_ELR) + assertThat(routedReport.bodyFormat).isEqualTo("FHIR") + val routedContents = String( BlobAccess.downloadBlobAsByteArray( routedReport.bodyUrl, @@ -983,6 +1010,13 @@ class FHIRReceiverFilterIntegrationTests : Logging { // check results ReportStreamTestDatabaseContainer.testDatabaseAccess.transact { txn -> val routedReport = UniversalPipelineTestUtils.fetchChildReports(report, txn, 1).single() + assertThat(routedReport.nextAction).isEqualTo(TaskAction.translate) + assertThat(routedReport.receivingOrg).isEqualTo("phd") + assertThat(routedReport.receivingOrgSvc).isEqualTo("x") + assertThat(routedReport.schemaName).isEqualTo("None") + assertThat(routedReport.schemaTopic).isEqualTo(Topic.FULL_ELR) + assertThat(routedReport.bodyFormat).isEqualTo("FHIR") + val routedBundle = BlobAccess.downloadBlobAsByteArray( routedReport.bodyUrl, UniversalPipelineTestUtils.getBlobContainerMetadata(azuriteContainer) diff --git a/prime-router/src/test/kotlin/fhirengine/azure/FHIRTranslatorIntegrationTests.kt b/prime-router/src/test/kotlin/fhirengine/azure/FHIRTranslatorIntegrationTests.kt index f6c2df63207..d203856028e 100644 --- a/prime-router/src/test/kotlin/fhirengine/azure/FHIRTranslatorIntegrationTests.kt +++ b/prime-router/src/test/kotlin/fhirengine/azure/FHIRTranslatorIntegrationTests.kt @@ -11,18 +11,19 @@ import gov.cdc.prime.router.FileSettings import gov.cdc.prime.router.MimeFormat import gov.cdc.prime.router.Report import gov.cdc.prime.router.Sender +import gov.cdc.prime.router.Topic import gov.cdc.prime.router.azure.ActionHistory import gov.cdc.prime.router.azure.BlobAccess import gov.cdc.prime.router.azure.Event import gov.cdc.prime.router.azure.QueueAccess import gov.cdc.prime.router.azure.db.enums.TaskAction -import gov.cdc.prime.router.azure.db.tables.ReportFile import gov.cdc.prime.router.azure.db.tables.Task import gov.cdc.prime.router.azure.observability.event.AzureEventService import gov.cdc.prime.router.azure.observability.event.LocalAzureEventServiceImpl import gov.cdc.prime.router.cli.tests.CompareData import gov.cdc.prime.router.common.TestcontainersUtils import gov.cdc.prime.router.common.UniversalPipelineTestUtils +import gov.cdc.prime.router.common.UniversalPipelineTestUtils.fetchChildReports import gov.cdc.prime.router.db.ReportStreamTestDatabaseContainer import gov.cdc.prime.router.db.ReportStreamTestDatabaseSetupExtension import gov.cdc.prime.router.fhirengine.engine.FHIRTranslator @@ -187,23 +188,21 @@ class FHIRTranslatorIntegrationTests : Logging { // verify task and report_file tables were updated correctly in the Translate function (new task and new // record file created) ReportStreamTestDatabaseContainer.testDatabaseAccess.transact { txn -> + val report = fetchChildReports(receiveReport, txn, 1).single() + assertThat(report.nextAction).isEqualTo(TaskAction.batch) + assertThat(report.receivingOrg).isEqualTo("phd") + assertThat(report.receivingOrgSvc).isEqualTo("x") + assertThat(report.schemaName).isEqualTo("None") + assertThat(report.schemaTopic).isEqualTo(Topic.FULL_ELR) + assertThat(report.bodyFormat).isEqualTo("HL7") + val batchTask = DSL.using(txn).select(Task.TASK.asterisk()).from(Task.TASK) .where(Task.TASK.NEXT_ACTION.eq(TaskAction.batch)) .fetchOneInto(Task.TASK) // verify batch queue task exists assertThat(batchTask).isNotNull() - - // verify that report exists for the batch task - val sendReportFile = - DSL.using(txn).select(ReportFile.REPORT_FILE.asterisk()) - .from(ReportFile.REPORT_FILE) - .where( - ReportFile.REPORT_FILE.REPORT_ID - .eq(batchTask!!.reportId) - ) - .fetchOneInto(ReportFile.REPORT_FILE) - assertThat(sendReportFile).isNotNull() + assertThat(batchTask!!.reportId).isEqualTo(report.reportId) // verify message format is HL7 and is for the expected receiver assertThat(batchTask.receiverName).isEqualTo("phd.x") @@ -211,7 +210,7 @@ class FHIRTranslatorIntegrationTests : Logging { // verify message matches the expected HL7 output val translatedValue = BlobAccess.downloadBlobAsBinaryData( - sendReportFile!!.bodyUrl, + report.bodyUrl, UniversalPipelineTestUtils.getBlobContainerMetadata(azuriteContainer) ).toString() assertThat(translatedValue).isEqualTo(expectedOutput) @@ -287,23 +286,21 @@ class FHIRTranslatorIntegrationTests : Logging { // verify task and report_file tables were updated correctly in the Translate function (new task and new // record file created) ReportStreamTestDatabaseContainer.testDatabaseAccess.transact { txn -> + val report = fetchChildReports(receiveReport, txn, 1).single() + assertThat(report.nextAction).isEqualTo(TaskAction.batch) + assertThat(report.receivingOrg).isEqualTo("phd") + assertThat(report.receivingOrgSvc).isEqualTo("x") + assertThat(report.schemaName).isEqualTo("None") + assertThat(report.schemaTopic).isEqualTo(Topic.FULL_ELR) + assertThat(report.bodyFormat).isEqualTo("HL7") + val batchTask = DSL.using(txn).select(Task.TASK.asterisk()).from(Task.TASK) .where(Task.TASK.NEXT_ACTION.eq(TaskAction.batch)) .fetchOneInto(Task.TASK) // verify batch queue task exists assertThat(batchTask).isNotNull() - - // verify that report exists for the batch task - val sendReportFile = - DSL.using(txn).select(ReportFile.REPORT_FILE.asterisk()) - .from(ReportFile.REPORT_FILE) - .where( - ReportFile.REPORT_FILE.REPORT_ID - .eq(batchTask!!.reportId) - ) - .fetchOneInto(ReportFile.REPORT_FILE) - assertThat(sendReportFile).isNotNull() + assertThat(batchTask!!.reportId).isEqualTo(report.reportId) // verify message format is HL7 and is for the expected receiver assertThat(batchTask.receiverName).isEqualTo("phd.x") @@ -311,7 +308,7 @@ class FHIRTranslatorIntegrationTests : Logging { // verify message matches the expected HL7 output val translatedValue = BlobAccess.downloadBlobAsBinaryData( - sendReportFile!!.bodyUrl, + report.bodyUrl, UniversalPipelineTestUtils.getBlobContainerMetadata(azuriteContainer) ).toString() assertThat(translatedValue).isEqualTo(expectedOutput) @@ -364,23 +361,21 @@ class FHIRTranslatorIntegrationTests : Logging { // verify task and report_file tables were updated correctly in the Translate function (new task and new // record file created) ReportStreamTestDatabaseContainer.testDatabaseAccess.transact { txn -> + val report = fetchChildReports(receiveReport, txn, 1).single() + assertThat(report.nextAction).isEqualTo(TaskAction.batch) + assertThat(report.receivingOrg).isEqualTo("phd") + assertThat(report.receivingOrgSvc).isEqualTo("x") + assertThat(report.schemaName).isEqualTo("None") + assertThat(report.schemaTopic).isEqualTo(Topic.FULL_ELR) + assertThat(report.bodyFormat).isEqualTo("FHIR") + val batchTask = DSL.using(txn).select(Task.TASK.asterisk()).from(Task.TASK) .where(Task.TASK.NEXT_ACTION.eq(TaskAction.batch)) .fetchOneInto(Task.TASK) // verify batch queue task exists assertThat(batchTask).isNotNull() - - // verify that report exists for the batch task - val sendReportFile = - DSL.using(txn).select(ReportFile.REPORT_FILE.asterisk()) - .from(ReportFile.REPORT_FILE) - .where( - ReportFile.REPORT_FILE.REPORT_ID - .eq(batchTask!!.reportId) - ) - .fetchOneInto(ReportFile.REPORT_FILE) - assertThat(sendReportFile).isNotNull() + assertThat(batchTask!!.reportId).isEqualTo(report.reportId) // verify message format is FHIR and is for the expected receiver assertThat(batchTask.receiverName).isEqualTo("phd.x") @@ -388,7 +383,7 @@ class FHIRTranslatorIntegrationTests : Logging { // verify we are not sending exact original (sendOriginal) val translatedValue = BlobAccess.downloadBlobAsByteArray( - sendReportFile!!.bodyUrl, + report.bodyUrl, UniversalPipelineTestUtils.getBlobContainerMetadata(azuriteContainer) ) assertThat(translatedValue).isNotEqualTo(reportContents.toByteArray()) @@ -451,23 +446,21 @@ class FHIRTranslatorIntegrationTests : Logging { // verify task and report_file tables were updated correctly in the Translate function (new task and new // record file created) ReportStreamTestDatabaseContainer.testDatabaseAccess.transact { txn -> + val report = fetchChildReports(receiveReport, txn, 1).single() + assertThat(report.nextAction).isEqualTo(TaskAction.batch) + assertThat(report.receivingOrg).isEqualTo("phd") + assertThat(report.receivingOrgSvc).isEqualTo("x") + assertThat(report.schemaName).isEqualTo("None") + assertThat(report.schemaTopic).isEqualTo(Topic.FULL_ELR) + assertThat(report.bodyFormat).isEqualTo("FHIR") + val batchTask = DSL.using(txn).select(Task.TASK.asterisk()).from(Task.TASK) .where(Task.TASK.NEXT_ACTION.eq(TaskAction.batch)) .fetchOneInto(Task.TASK) // verify batch queue task exists assertThat(batchTask).isNotNull() - - // verify that report exists for the batch task - val sendReportFile = - DSL.using(txn).select(ReportFile.REPORT_FILE.asterisk()) - .from(ReportFile.REPORT_FILE) - .where( - ReportFile.REPORT_FILE.REPORT_ID - .eq(batchTask!!.reportId) - ) - .fetchOneInto(ReportFile.REPORT_FILE) - assertThat(sendReportFile).isNotNull() + assertThat(batchTask!!.reportId).isEqualTo(report.reportId) // verify message format is FHIR and is for the expected receiver assertThat(batchTask.receiverName).isEqualTo("phd.x") @@ -475,7 +468,7 @@ class FHIRTranslatorIntegrationTests : Logging { // verify message is not a byte for byte copy of the original FHIR input val translatedValue = BlobAccess.downloadBlobAsByteArray( - sendReportFile!!.bodyUrl, + report.bodyUrl, UniversalPipelineTestUtils.getBlobContainerMetadata(azuriteContainer) ) assertThat(translatedValue).isNotEqualTo(reportContents.toByteArray()) @@ -538,6 +531,14 @@ class FHIRTranslatorIntegrationTests : Logging { // verify task and report_file tables were updated correctly in the Translate function (new task and new // record file created) ReportStreamTestDatabaseContainer.testDatabaseAccess.transact { txn -> + val report = fetchChildReports(receiveReport, txn, 1).single() + assertThat(report.nextAction).isEqualTo(TaskAction.send) + assertThat(report.receivingOrg).isEqualTo("phd") + assertThat(report.receivingOrgSvc).isEqualTo("x") + assertThat(report.schemaName).isEqualTo("None") + assertThat(report.schemaTopic).isEqualTo(Topic.ELR_ELIMS) + assertThat(report.bodyFormat).isEqualTo("HL7") + val batchTask = DSL.using(txn).select(Task.TASK.asterisk()).from(Task.TASK) .where(Task.TASK.NEXT_ACTION.eq(TaskAction.batch)) .fetchOneInto(Task.TASK) @@ -549,17 +550,7 @@ class FHIRTranslatorIntegrationTests : Logging { .fetchOneInto(Task.TASK) // verify send queue task exists assertThat(sendTask).isNotNull() - - // verify that report exists for the send task - val sendReportFile = - DSL.using(txn).select(ReportFile.REPORT_FILE.asterisk()) - .from(ReportFile.REPORT_FILE) - .where( - ReportFile.REPORT_FILE.REPORT_ID - .eq(sendTask!!.reportId) - ) - .fetchOneInto(ReportFile.REPORT_FILE) - assertThat(sendReportFile).isNotNull() + assertThat(sendTask!!.reportId).isEqualTo(report.reportId) // verify message format is HL7 and is for the expected receiver assertThat(sendTask.receiverName).isEqualTo("phd.x") @@ -567,7 +558,7 @@ class FHIRTranslatorIntegrationTests : Logging { // verify message matches the original HL7 input val translatedValue = BlobAccess.downloadBlobAsByteArray( - sendReportFile!!.bodyUrl, + report.bodyUrl, UniversalPipelineTestUtils.getBlobContainerMetadata(azuriteContainer) ) assertThat(translatedValue).isEqualTo(reportContents.toByteArray()) @@ -620,6 +611,14 @@ class FHIRTranslatorIntegrationTests : Logging { // verify task and report_file tables were updated correctly in the Translate function (new task and new // record file created) ReportStreamTestDatabaseContainer.testDatabaseAccess.transact { txn -> + val report = fetchChildReports(receiveReport, txn, 1).single() + assertThat(report.nextAction).isEqualTo(TaskAction.send) + assertThat(report.receivingOrg).isEqualTo("phd") + assertThat(report.receivingOrgSvc).isEqualTo("x") + assertThat(report.schemaName).isEqualTo("None") + assertThat(report.schemaTopic).isEqualTo(Topic.ELR_ELIMS) + assertThat(report.bodyFormat).isEqualTo("HL7") + val batchTask = DSL.using(txn).select(Task.TASK.asterisk()).from(Task.TASK) .where(Task.TASK.NEXT_ACTION.eq(TaskAction.batch)) .fetchOneInto(Task.TASK) @@ -631,17 +630,7 @@ class FHIRTranslatorIntegrationTests : Logging { .fetchOneInto(Task.TASK) // verify send queue task exists assertThat(sendTask).isNotNull() - - // verify that report exists for the send task - val sendReportFile = - DSL.using(txn).select(ReportFile.REPORT_FILE.asterisk()) - .from(ReportFile.REPORT_FILE) - .where( - ReportFile.REPORT_FILE.REPORT_ID - .eq(sendTask!!.reportId) - ) - .fetchOneInto(ReportFile.REPORT_FILE) - assertThat(sendReportFile).isNotNull() + assertThat(sendTask!!.reportId).isEqualTo(report.reportId) // verify message format is HL7 and is for the expected receiver assertThat(sendTask.receiverName).isEqualTo("phd.x") @@ -649,7 +638,7 @@ class FHIRTranslatorIntegrationTests : Logging { // verify message matches the original HL7 input val translatedValue = BlobAccess.downloadBlobAsByteArray( - sendReportFile!!.bodyUrl, + report.bodyUrl, UniversalPipelineTestUtils.getBlobContainerMetadata(azuriteContainer) ) assertThat(translatedValue).isEqualTo(reportContents.toByteArray()) @@ -702,6 +691,14 @@ class FHIRTranslatorIntegrationTests : Logging { // verify task and report_file tables were updated correctly in the Translate function (new task and new // record file created) ReportStreamTestDatabaseContainer.testDatabaseAccess.transact { txn -> + val report = fetchChildReports(receiveReport, txn, 1).single() + assertThat(report.nextAction).isEqualTo(TaskAction.send) + assertThat(report.receivingOrg).isEqualTo("phd") + assertThat(report.receivingOrgSvc).isEqualTo("x") + assertThat(report.schemaName).isEqualTo("None") + assertThat(report.schemaTopic).isEqualTo(Topic.ELR_ELIMS) + assertThat(report.bodyFormat).isEqualTo("FHIR") + val batchTask = DSL.using(txn).select(Task.TASK.asterisk()).from(Task.TASK) .where(Task.TASK.NEXT_ACTION.eq(TaskAction.batch)) .fetchOneInto(Task.TASK) @@ -713,17 +710,7 @@ class FHIRTranslatorIntegrationTests : Logging { .fetchOneInto(Task.TASK) // verify send queue task exists assertThat(sendTask).isNotNull() - - // verify that report exists for the send task - val sendReportFile = - DSL.using(txn).select(ReportFile.REPORT_FILE.asterisk()) - .from(ReportFile.REPORT_FILE) - .where( - ReportFile.REPORT_FILE.REPORT_ID - .eq(sendTask!!.reportId) - ) - .fetchOneInto(ReportFile.REPORT_FILE) - assertThat(sendReportFile).isNotNull() + assertThat(sendTask!!.reportId).isEqualTo(report.reportId) // verify message format is FHIR and is for the expected receiver assertThat(sendTask.receiverName).isEqualTo("phd.x") @@ -731,7 +718,7 @@ class FHIRTranslatorIntegrationTests : Logging { // verify message matches the original FHIR input val translatedValue = BlobAccess.downloadBlobAsByteArray( - sendReportFile!!.bodyUrl, + report.bodyUrl, UniversalPipelineTestUtils.getBlobContainerMetadata(azuriteContainer) ) assertThat(translatedValue).isEqualTo(reportContents.toByteArray()) From c2577bcbc46f00c1ad20110a6d5400865d12e699 Mon Sep 17 00:00:00 2001 From: JessicaWNava <119880261+JessicaWNava@users.noreply.github.com> Date: Thu, 29 Aug 2024 12:42:23 -0400 Subject: [PATCH 03/40] Engagement/jessica/15405 deidentification enrichment (#15669) * Creating custom FHIR function that returns a random value for various types of data, using that function to create a CLI tool to remove the PII from a message. --- .../src/main/kotlin/cli/PIIRemovalCommands.kt | 211 +++++ prime-router/src/main/kotlin/cli/main.kt | 3 +- .../main/kotlin/cli/tests/RemovePIITest.kt | 402 +++++++++ .../main/kotlin/cli/tests/TestReportStream.kt | 1 + .../src/main/kotlin/cli/tests/fakePII.fhir | 767 ++++++++++++++++++ .../engine/CustomFhirPathFunctions.kt | 43 +- .../translation/hl7/FhirTransformer.kt | 7 +- .../src/main/kotlin/metadata/GeoData.kt | 18 +- .../common/remove-pii-address.yml | 18 + .../common/remove-pii-enrichment.yml | 56 ++ .../common/remove-pii-name.yml | 10 + .../common/remove-pii-telecom.yml | 15 + .../engine/CustomFhirPathFunctionTest.kt | 2 +- 13 files changed, 1530 insertions(+), 23 deletions(-) create mode 100644 prime-router/src/main/kotlin/cli/PIIRemovalCommands.kt create mode 100644 prime-router/src/main/kotlin/cli/tests/RemovePIITest.kt create mode 100644 prime-router/src/main/kotlin/cli/tests/fakePII.fhir create mode 100644 prime-router/src/main/resources/metadata/fhir_transforms/common/remove-pii-address.yml create mode 100644 prime-router/src/main/resources/metadata/fhir_transforms/common/remove-pii-enrichment.yml create mode 100644 prime-router/src/main/resources/metadata/fhir_transforms/common/remove-pii-name.yml create mode 100644 prime-router/src/main/resources/metadata/fhir_transforms/common/remove-pii-telecom.yml diff --git a/prime-router/src/main/kotlin/cli/PIIRemovalCommands.kt b/prime-router/src/main/kotlin/cli/PIIRemovalCommands.kt new file mode 100644 index 00000000000..c74cb829cc1 --- /dev/null +++ b/prime-router/src/main/kotlin/cli/PIIRemovalCommands.kt @@ -0,0 +1,211 @@ +package gov.cdc.prime.router.cli + +import com.github.ajalt.clikt.core.CliktCommand +import com.github.ajalt.clikt.core.CliktError +import com.github.ajalt.clikt.parameters.options.option +import com.github.ajalt.clikt.parameters.options.required +import com.github.ajalt.clikt.parameters.types.file +import fhirengine.engine.CustomFhirPathFunctions +import gov.cdc.prime.router.common.JacksonMapperUtilities +import gov.cdc.prime.router.fhirengine.translation.hl7.FhirTransformer +import gov.cdc.prime.router.fhirengine.translation.hl7.utils.FhirPathUtils +import gov.cdc.prime.router.fhirengine.utils.FhirTranscoder +import org.hl7.fhir.r4.model.Bundle +import org.hl7.fhir.r4.model.ContactPoint +import org.hl7.fhir.r4.model.Organization +import org.hl7.fhir.r4.model.Organization.OrganizationContactComponent +import org.hl7.fhir.r4.model.Patient +import org.hl7.fhir.r4.model.Patient.ContactComponent +import org.hl7.fhir.r4.model.Practitioner +import org.hl7.fhir.r4.model.StringType + +class PIIRemovalCommands : CliktCommand( + name = "piiRemoval", + help = "Remove PII" +) { + /** + * The input file to process. + */ + private val inputFile by option("-i", "--input-file", help = "Input file to process") + .file(true, canBeDir = false, mustBeReadable = true).required() + + /** + * Output file to write the data with PII removed. + */ + private val outputFile by option("-o", "--output-file", help = "output file") + .file() + + /** + * FHIR paths for ids to remove + */ + val idPaths = arrayListOf( + "Bundle.entry.resource.ofType(Patient).identifier.value", + "Bundle.entry.resource.ofType(ServiceRequest).requester.resolve().practitioner.resolve().identifier.value", + "Bundle.entry.resource.ofType(DiagnosticReport).identifier.value" + ) + + /** + * Method called when the command is run + */ + override fun run() { + // Read the contents of the file + val contents = inputFile.inputStream().readBytes().toString(Charsets.UTF_8) + if (contents.isBlank()) throw CliktError("File ${inputFile.absolutePath} is empty.") + + // Check on the extension of the file for supported operations + if (inputFile.extension.uppercase() != "FHIR") { + throw CliktError("File ${inputFile.absolutePath} is not a FHIR file.") + } + var bundle = FhirTranscoder.decode(contents) + + bundle.entry.map { it.resource }.filterIsInstance() + .forEach { patient -> + patient.name.forEach { name -> + name.given = mutableListOf(StringType(getFakeValueForElementCall("PERSON_GIVEN_NAME"))) + } + patient.address.forEach { address -> + address.line = mutableListOf(StringType(getFakeValueForElementCall("STREET"))) + } + patient.telecom.forEach { telecom -> + handleTelecom(telecom) + } + patient.contact.forEach { contact -> + handlePatientContact(contact) + } + } + + bundle.entry.map { it.resource }.filterIsInstance() + .forEach { organization -> + organization.address.forEach { address -> + address.line = mutableListOf(StringType(getFakeValueForElementCall("STREET"))) + } + organization.telecom.forEach { telecom -> + handleTelecom(telecom) + } + organization.contact.forEach { contact -> + handleOrganizationalContact(contact) + } + } + + bundle.entry.map { it.resource }.filterIsInstance() + .forEach { practitioner -> + practitioner.address.forEach { address -> + address.line = mutableListOf(StringType(getFakeValueForElementCall("STREET"))) + address.city = getFakeValueForElementCallUsingGeoData("CITY", address.state) + address.postalCode = getFakeValueForElementCallUsingGeoData("POSTAL_CODE", address.state) + address.district = getFakeValueForElementCallUsingGeoData("COUNTY", address.state) + } + practitioner.telecom.forEach { telecom -> + handleTelecom(telecom) + } + practitioner.name.forEach { name -> + name.given = mutableListOf(StringType(getFakeValueForElementCall("PERSON_GIVEN_NAME"))) + } + } + + bundle = FhirTransformer("classpath:/metadata/fhir_transforms/common/remove-pii-enrichment.yml").process(bundle) + + val jsonObject = JacksonMapperUtilities.defaultMapper + .readValue(FhirTranscoder.encode(bundle), Any::class.java) + var prettyText = JacksonMapperUtilities.defaultMapper.writeValueAsString(jsonObject) + prettyText = replaceIds(bundle, prettyText) + + // Write the output to the screen or a file. + if (outputFile != null) { + outputFile!!.writeText(prettyText, Charsets.UTF_8) + } + echo("Wrote output to ${outputFile!!.absolutePath}") + } + + /** + * Replaces the patient contact PII data + */ + private fun handlePatientContact(contact: ContactComponent): ContactComponent { + contact.name.given = mutableListOf(StringType(getFakeValueForElementCall("PERSON_GIVEN_NAME"))) + contact.name.family = getFakeValueForElementCall("PERSON_FAMILY_NAME") + contact.address.line = mutableListOf(StringType(getFakeValueForElementCall("STREET"))) + contact.address.city = getFakeValueForElementCallUsingGeoData("CITY", contact.address.state) + contact.address.postalCode = getFakeValueForElementCallUsingGeoData("POSTAL_CODE", contact.address.state) + contact.address.district = getFakeValueForElementCallUsingGeoData("COUNTY", contact.address.state) + contact.telecom.forEach { telecom -> + handleTelecom(telecom) + } + return contact + } + + /** + * Replaces the organizational contact PII. Unfortunately needs to be repeated because they do not share a common + * ancestor + */ + private fun handleOrganizationalContact(contact: OrganizationContactComponent): OrganizationContactComponent { + contact.name.given = mutableListOf(StringType(getFakeValueForElementCall("PERSON_GIVEN_NAME"))) + contact.name.family = getFakeValueForElementCall("PERSON_FAMILY_NAME") + contact.address.line = mutableListOf(StringType(getFakeValueForElementCall("STREET"))) + contact.address.city = getFakeValueForElementCallUsingGeoData("CITY", contact.address.state) + contact.address.postalCode = getFakeValueForElementCallUsingGeoData("POSTAL_CODE", contact.address.state) + contact.address.district = getFakeValueForElementCallUsingGeoData("COUNTY", contact.address.state) + contact.telecom.forEach { telecom -> + handleTelecom(telecom) + } + return contact + } + + /** + * Replaces PII in a telecom + */ + private fun handleTelecom(telecom: ContactPoint): ContactPoint { + if (telecom.system == ContactPoint.ContactPointSystem.EMAIL) { + telecom.value = getFakeValueForElementCall("EMAIL") + } else if (telecom.system == ContactPoint.ContactPointSystem.PHONE || + telecom.system == ContactPoint.ContactPointSystem.FAX + ) { + telecom.value = getFakeValueForElementCall("TELEPHONE") + } + return telecom + } + + /** + * Replaces the required IDs in the bundle + */ + private fun replaceIds(bundle: Bundle, prettyText: String): String { + var updatedBundle = prettyText + idPaths.forEach { path -> + updatedBundle = replaceId(bundle, path, updatedBundle) + } + return updatedBundle + } + + /** + * Replaces the ID for a specific ID + */ + private fun replaceId(bundle: Bundle, path: String, prettyText: String): String { + FhirPathUtils.evaluate( + null, + bundle, + bundle, + path + ).forEach { resourceId -> + val newIdentifier = getFakeValueForElementCall("UUID") + return prettyText.replace(resourceId.primitiveValue(), newIdentifier, true) + } + return prettyText + } + + /** + * Gets a fake value for a given type + */ + private fun getFakeValueForElementCall(dataType: String): String { + return CustomFhirPathFunctions().getFakeValueForElement( + mutableListOf(mutableListOf(StringType(dataType))) + )[0].primitiveValue() + } + + /** + * Gets a fake value for a given type that requires geo data + */ + private fun getFakeValueForElementCallUsingGeoData(dataType: String, state: String): String { + return CustomFhirPathFunctions().getFakeValueForElement( + mutableListOf(mutableListOf(StringType(dataType)), mutableListOf(StringType(state))) + )[0].primitiveValue() + } +} \ No newline at end of file diff --git a/prime-router/src/main/kotlin/cli/main.kt b/prime-router/src/main/kotlin/cli/main.kt index 32ec25668d5..d930724a661 100644 --- a/prime-router/src/main/kotlin/cli/main.kt +++ b/prime-router/src/main/kotlin/cli/main.kt @@ -299,6 +299,7 @@ fun main(args: Array) = RouterCli() ProcessHl7Commands(), ValidateTranslationSchemaCommand(), SyncTranslationSchemaCommand(), - ValidateYAMLCommand() + ValidateYAMLCommand(), + PIIRemovalCommands() ).context { terminal = Terminal(ansiLevel = AnsiLevel.TRUECOLOR) } .main(args) \ No newline at end of file diff --git a/prime-router/src/main/kotlin/cli/tests/RemovePIITest.kt b/prime-router/src/main/kotlin/cli/tests/RemovePIITest.kt new file mode 100644 index 00000000000..f8ba88c2d41 --- /dev/null +++ b/prime-router/src/main/kotlin/cli/tests/RemovePIITest.kt @@ -0,0 +1,402 @@ +package gov.cdc.prime.router.cli.tests + +import com.github.ajalt.clikt.testing.test +import gov.cdc.prime.router.cli.PIIRemovalCommands +import gov.cdc.prime.router.common.Environment +import gov.cdc.prime.router.fhirengine.translation.hl7.utils.FhirPathUtils +import gov.cdc.prime.router.fhirengine.utils.FhirTranscoder +import org.hl7.fhir.r4.model.Address +import org.hl7.fhir.r4.model.Bundle +import org.hl7.fhir.r4.model.HumanName +import org.hl7.fhir.r4.model.Observation +import org.hl7.fhir.r4.model.Organization +import org.hl7.fhir.r4.model.Patient +import org.hl7.fhir.r4.model.Practitioner +import org.hl7.fhir.r4.model.ServiceRequest +import org.hl7.fhir.r4.model.Specimen +import java.io.File +import java.nio.file.Paths + +class RemovePIITest : CoolTest() { + /** + * The name of the call + */ + override val name: String + get() = "removepiicheck" + + /** + * Description of the call + */ + override val description: String + get() = "Tests that all pii is removed from a message" + + /** + * Type of test + */ + override val status: TestStatus + get() = TestStatus.SMOKE + + /** + * Function that is run when this command is called + */ + override suspend fun run(environment: Environment, options: CoolTestOptions): Boolean { + ugly("Starting remove PII test") + val inputFilePath = Paths.get("").toAbsolutePath().toString() + "/src/main/kotlin/cli/tests/fakePII.fhir" + val outputFilePath = Paths.get("").toAbsolutePath().toString() + + "/src/main/kotlin/cli/tests/piiRemoved.fhir" + + PIIRemovalCommands().test( + "-i $inputFilePath -o $outputFilePath" + ) + + val inputContent = File(inputFilePath).inputStream().readBytes().toString(Charsets.UTF_8) + val inputBundle = FhirTranscoder.decode(inputContent) + val outputContent = File(outputFilePath).inputStream().readBytes().toString(Charsets.UTF_8) + val outputBundle = FhirTranscoder.decode(outputContent) + + if (!testIdsRemoved(inputBundle, outputContent)) { + ugly("Not all IDs removed. Test failed.") + return false + } + + if (!testPatientPIIRemoved(inputBundle, outputBundle)) { + ugly("Not all patient PII removed. Test failed.") + return false + } + + if (!testOrganizationPIIRemoved(inputBundle, outputBundle)) { + ugly("Not all organization PII removed. Test failed.") + return false + } + + if (!testPractitionerPIIRemoved(inputBundle, outputBundle)) { + ugly("Not all practitioner PII removed. Test failed.") + return false + } + + if (!testServiceRequestPIIRemoved(inputBundle, outputBundle)) { + ugly("Not all service request PII removed. Test failed.") + return false + } + + if (!testObservationPIIRemoved(inputBundle, outputBundle)) { + ugly("Not all observation PII removed. Test failed.") + return false + } + + if (!testSpecimenPIIRemoved(inputBundle, outputBundle)) { + ugly("Not all specimen PII removed. Test failed.") + return false + } + + ugly("PII removal test passed") + return true + } + + /** + * Tests patient PII is replaced + */ + private fun testPatientPIIRemoved(inputBundle: Bundle, outputBundle: Bundle): Boolean { + var patientIndex = 0 + val outputPatients = outputBundle.entry.map { it.resource }.filterIsInstance() + inputBundle.entry.map { it.resource }.filterIsInstance() + .forEach { inputPatient -> + val outputPatient = outputPatients[patientIndex] + var nameIndex = 0 + if (inputPatient.birthDate == outputPatient.birthDate) { + return false + } + inputPatient.name.forEach { name -> + if (!testName(name, outputPatient.name[nameIndex])) { + return false + } + nameIndex++ + } + + var addressIndex = 0 + inputPatient.address.forEach { address -> + testAddress(address, outputPatient.address[addressIndex]) + addressIndex++ + } + + var telecomIndex = 0 + inputPatient.telecom.forEach { telecom -> + if (!telecom.value.isNullOrBlank() && telecom.value == outputPatient.telecom[telecomIndex].value) { + return false + } + telecomIndex++ + } + + var contactIndex = 0 + inputPatient.contact.forEach { contact -> + val outputContact = outputPatient.contact[contactIndex] + if (!testName(contact.name, outputContact.name)) { + return false + } + if (!testAddress(contact.address, outputContact.address)) { + return false + } + + telecomIndex = 0 + contact.telecom.forEach { telecom -> + if (telecom.value == outputPatient.telecom[telecomIndex].value) { + return false + } + telecomIndex++ + } + + contactIndex++ + } + patientIndex++ + } + return true + } + + /** + * Tests name PII is replaced + */ + private fun testName(inputName: HumanName, outputName: HumanName): Boolean { + var givenNameIndex = 0 + inputName.given.forEach { givenName -> + if (!givenName.isEmpty && inputName.given == outputName.given[givenNameIndex]) { + return false + } + givenNameIndex++ + } + if (!inputName.family.isNullOrBlank() && + inputName.family == outputName.family + ) { + return false + } + return true + } + + /** + * Tests address PII is replaced + */ + private fun testAddress(inputAddress: Address, outputAddress: Address): Boolean { + var addressLineIndex = 0 + inputAddress.line.forEach { addressLine -> + if (!addressLine.isEmpty && addressLine == outputAddress.line[addressLineIndex]) { + return false + } + addressLineIndex++ + } + + if ( + ( + !inputAddress.city.isNullOrBlank() && + inputAddress.city == outputAddress.city + ) || + ( + !inputAddress.postalCode.isNullOrBlank() && + inputAddress.postalCode == outputAddress.postalCode + ) || + ( + !inputAddress.district.isNullOrBlank() && + inputAddress.district == outputAddress.district + ) + + ) { + return false + } + return true + } + + /** + * Tests service request PII is replaced + */ + private fun testServiceRequestPIIRemoved(inputBundle: Bundle, outputBundle: Bundle): Boolean { + var serviceRequestIndex = 0 + val outputServiceRequests = outputBundle.entry.map { it.resource }.filterIsInstance() + inputBundle.entry.map { it.resource }.filterIsInstance() + .forEach { inputServiceRequest -> + val outputServiceRequest = outputServiceRequests[serviceRequestIndex] + var noteIndex = 0 + inputServiceRequest.note.forEach { inputNote -> + if (!inputNote.text.isNullOrBlank() && + inputNote.text == outputServiceRequest.note[noteIndex].text + ) { + return false + } + noteIndex++ + } + serviceRequestIndex++ + } + return true + } + + /** + * Tests observation PII is replaced + */ + private fun testObservationPIIRemoved(inputBundle: Bundle, outputBundle: Bundle): Boolean { + var observationIndex = 0 + val outputObservations = outputBundle.entry.map { it.resource }.filterIsInstance() + inputBundle.entry.map { it.resource }.filterIsInstance() + .forEach { inputObservation -> + val outputObservation = outputObservations[observationIndex] + if (inputObservation.issued != null && inputObservation.issued == outputObservation.issued) { + return false + } + if (inputObservation.effective != null && inputObservation.effective == outputObservation.effective) { + return false + } + var noteIndex = 0 + inputObservation.note.forEach { inputNote -> + if (!inputNote.text.isNullOrBlank() && inputNote.text == outputObservation.note[noteIndex].text) { + return false + } + noteIndex++ + } + + observationIndex++ + } + return true + } + + /** + * Tests specimen PII is replaced + */ + private fun testSpecimenPIIRemoved(inputBundle: Bundle, outputBundle: Bundle): Boolean { + var specimenIndex = 0 + val outputSpecimens = outputBundle.entry.map { it.resource }.filterIsInstance() + inputBundle.entry.map { it.resource }.filterIsInstance() + .forEach { inputSpecimen -> + val outputSpecimen = outputSpecimens[specimenIndex] + var noteIndex = 0 + inputSpecimen.note.forEach { inputNote -> + if (inputNote.text != null && inputNote.text == outputSpecimen.note[noteIndex].text) { + return false + } + noteIndex++ + } + specimenIndex++ + } + return true + } + + /** + * Tests organization PII is replaced + */ + private fun testOrganizationPIIRemoved(inputBundle: Bundle, outputBundle: Bundle): Boolean { + var organizationIndex = 0 + val outputOrganizations = outputBundle.entry.map { it.resource }.filterIsInstance() + inputBundle.entry.map { it.resource }.filterIsInstance() + .forEach { inputOrganization -> + val outputOrganization = outputOrganizations[organizationIndex] + var addressIndex = 0 + inputOrganization.address.forEach { address -> + if ( + !testAddress(address, outputOrganization.address[addressIndex]) + ) { + return false + } + + addressIndex++ + } + + var telecomIndex = 0 + inputOrganization.telecom.forEach { telecom -> + if (!telecom.value.isNullOrBlank() && + telecom.value == outputOrganization.telecom[telecomIndex].value + ) { + return false + } + telecomIndex++ + } + + var contactIndex = 0 + inputOrganization.contact.forEach { contact -> + val outputContact = outputOrganization.contact[contactIndex] + if (!testName(contact.name, outputContact.name) || + !testAddress(contact.address, outputContact.address) + ) { + return false + } + + telecomIndex = 0 + contact.telecom.forEach { telecom -> + if (!telecom.value.isNullOrBlank() && + telecom.value == outputOrganization.telecom[telecomIndex].value + ) { + return false + } + telecomIndex++ + } + + contactIndex++ + } + organizationIndex++ + } + return true + } + + /** + * Tests practitioner PII is replaced + */ + private fun testPractitionerPIIRemoved(inputBundle: Bundle, outputBundle: Bundle): Boolean { + var practitionerIndex = 0 + val outputPractitioners = outputBundle.entry.map { it.resource }.filterIsInstance() + inputBundle.entry.map { it.resource }.filterIsInstance() + .forEach { inputPractitioner -> + val outputPractitioner = outputPractitioners[practitionerIndex] + var nameIndex = 0 + inputPractitioner.name.forEach { name -> + if (!testName(name, outputPractitioner.name[nameIndex])) { + return false + } + nameIndex++ + } + + var addressIndex = 0 + inputPractitioner.address.forEach { address -> + if (!testAddress(address, outputPractitioner.address[addressIndex])) { + return false + } + + addressIndex++ + } + + var telecomIndex = 0 + inputPractitioner.telecom.forEach { telecom -> + if (!telecom.value.isNullOrBlank() && + telecom.value == outputPractitioner.telecom[telecomIndex].value + ) { + return false + } + telecomIndex++ + } + practitionerIndex++ + } + return true + } + + /** + * Tests PII IDs replaced + */ + private fun testIdsRemoved(inputBundle: Bundle, outputContent: String): Boolean { + PIIRemovalCommands().idPaths.forEach { path -> + if (!testIdRemoved(path, inputBundle, outputContent)) { + return false + } + } + return true + } + + /** + * Tests specific PII id is replaced + */ + fun testIdRemoved(path: String, inputBundle: Bundle, outputcontent: String): Boolean { + FhirPathUtils.evaluate( + null, + inputBundle, + inputBundle, + path + ).forEach { resourceId -> + if (outputcontent.contains(resourceId.primitiveValue().toString())) { + return false + } + } + return true + } +} \ No newline at end of file diff --git a/prime-router/src/main/kotlin/cli/tests/TestReportStream.kt b/prime-router/src/main/kotlin/cli/tests/TestReportStream.kt index 2df46884a30..c20eeffe0ff 100644 --- a/prime-router/src/main/kotlin/cli/tests/TestReportStream.kt +++ b/prime-router/src/main/kotlin/cli/tests/TestReportStream.kt @@ -298,6 +298,7 @@ Examples: companion object { val coolTestList = listOf( + RemovePIITest(), Ping(), SftpcheckTest(), Merge(), diff --git a/prime-router/src/main/kotlin/cli/tests/fakePII.fhir b/prime-router/src/main/kotlin/cli/tests/fakePII.fhir new file mode 100644 index 00000000000..51f4372d48b --- /dev/null +++ b/prime-router/src/main/kotlin/cli/tests/fakePII.fhir @@ -0,0 +1,767 @@ +{ + "resourceType": "Bundle", + "identifier": { + "value": "0bab3f94-feb4-4915-939d-1adc5da201f3" + }, + "type": "message", + "timestamp": "2024-06-05T18:55:01.277Z", + "entry": [ + { + "fullUrl": "MessageHeader/5cbae40a-675e-49d4-b12a-04271de671a6", + "resource": { + "resourceType": "MessageHeader", + "id": "5cbae40a-675e-49d4-b12a-04271de671a6", + "meta": { + "tag": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0103", + "code": "P", + "display": "Production" + } + ] + }, + "eventCoding": { + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "code": "R01", + "display": "ORU/ACK - Unsolicited transmission of an observation message" + }, + "destination": [ + { + "name": "PRIME ReportStream", + "endpoint": "https://prime.cdc.gov/api/reports?option=SkipInvalidItems" + } + ], + "sender": { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + }, + "source": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/software-binary-id", + "valueString": "d5de310" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/software-install-date", + "valueInstant": "2024-06-05T15:42:52Z" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/software-vendor-org", + "valueReference": { + "reference": "Organization/07640c5d-87cd-488b-9343-a226c5166539" + } + } + ], + "software": "PRIME SimpleReport", + "version": "d5de310", + "endpoint": "https://simplereport.gov" + }, + "focus": [ + { + "reference": "Provenance/d0dd19cd-76a0-4e16-ab1d-dc5838247b61" + }, + { + "reference": "DiagnosticReport/0bab3f94-feb4-4915-939d-1adc5da201f3" + } + ] + } + }, + { + "fullUrl": "Provenance/d0dd19cd-76a0-4e16-ab1d-dc5838247b61", + "resource": { + "resourceType": "Provenance", + "id": "d0dd19cd-76a0-4e16-ab1d-dc5838247b61", + "recorded": "2024-06-05T18:55:01.277Z", + "activity": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "code": "R01", + "display": "ORU/ACK - Unsolicited transmission of an observation message" + } + ] + }, + "agent": [ + { + "who": { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + } + ] + } + }, + { + "fullUrl": "DiagnosticReport/0bab3f94-feb4-4915-939d-1adc5da201f3", + "resource": { + "resourceType": "DiagnosticReport", + "id": "0bab3f94-feb4-4915-939d-1adc5da201f3", + "identifier": [ + { + "value": "0bab3f94-feb4-4915-939d-1adc5da201f3" + } + ], + "basedOn": [ + { + "reference": "ServiceRequest/185170f3-4361-48ff-85e1-808a66624470" + } + ], + "status": "final", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "94531-1" + } + ] + }, + "subject": { + "reference": "Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67" + }, + "effectiveDateTime": "2024-06-05T18:39:58+00:00", + "issued": "2024-06-05T18:55:01+00:00", + "specimen": [ + { + "reference": "Specimen/dc7af370-fc07-4b00-abc7-9b5dd87cf4d2" + } + ], + "result": [ + { + "reference": "Observation/5ab37a34-59f5-421f-92bd-baffaf26bb72" + } + ] + } + }, + { + "fullUrl": "Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67", + "resource": { + "resourceType": "Patient", + "id": "7c0d1de9-270e-4d9c-a4ec-af92560cec67", + "extension": [ + { + "url": "http://ibm.com/fhir/cdm/StructureDefinition/local-race-cd", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-Race", + "code": "2028-9" + } + ], + "text": "asian" + } + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/ethnic-group", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0189", + "code": "N", + "display": "Not Hispanic or Latino" + } + ], + "text": "Not Hispanic or Latino" + } + } + ], + "identifier": [ + { + "value": "7c0d1de9-270e-4d9c-a4ec-af92560cec67" + } + ], + "name": [ + { + "family": "Granger", + "given": [ + "Hermione" + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "(212) 555 1234", + "use": "mobile" + } + ], + "gender": "female", + "birthDate": "1990-07-21", + "address": [ + { + "line": [ + "53 Buttonwood Ave" + ], + "city": "Brooklyn", + "state": "WA", + "postalCode": "11224", + "country": "USA" + } + ], + "managingOrganization": { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + } + }, + { + "fullUrl": "Organization/719ec8ad-cf59-405a-9832-c4065945c130", + "resource": { + "resourceType": "Organization", + "id": "719ec8ad-cf59-405a-9832-c4065945c130", + "identifier": [ + { + "use": "official", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0301", + "code": "CLIA" + } + ] + }, + "value": "12D4567890" + } + ], + "name": "Testing Lab", + "telecom": [ + { + "system": "phone", + "value": "(530) 867 5309", + "use": "work" + } + ], + "address": [ + { + "line": [ + "123 Beach Way" + ], + "city": "Denver", + "state": "WA", + "postalCode": "80210", + "country": "USA" + } + ] + } + }, + { + "fullUrl": "Practitioner/ee29ccf5-631d-4b35-a6d4-30a61c0eb8d9", + "resource": { + "resourceType": "Practitioner", + "id": "ee29ccf5-631d-4b35-a6d4-30a61c0eb8d9", + "identifier": [ + { + "system": "http://hl7.org/fhir/sid/us-npi", + "value": "1245319599" + } + ], + "name": [ + { + "family": "McTester", + "given": [ + "Phil" + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "(530) 867 5309", + "use": "work" + } + ], + "address": [ + { + "line": [ + "321 Ocean Drive" + ], + "city": "Denver", + "state": "WA", + "postalCode": "80210", + "country": "USA" + } + ] + } + }, + { + "fullUrl": "Specimen/dc7af370-fc07-4b00-abc7-9b5dd87cf4d2", + "resource": { + "resourceType": "Specimen", + "id": "dc7af370-fc07-4b00-abc7-9b5dd87cf4d2", + "identifier": [ + { + "value": "80ed36a0-4bd1-42c3-bb56-81ea4ac1e75a" + } + ], + "type": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "258500001" + } + ], + "text": "Nasopharyngeal swab" + }, + "subject": { + "reference": "Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67" + }, + "receivedTime": "2024-06-05T18:39:58+00:00", + "collection": { + "collectedDateTime": "2024-06-05T18:39:58+00:00", + "bodySite": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "87100004" + } + ], + "text": "Topography unknown (body structure)" + } + } + } + }, + { + "fullUrl": "ServiceRequest/185170f3-4361-48ff-85e1-808a66624470", + "resource": { + "resourceType": "ServiceRequest", + "id": "185170f3-4361-48ff-85e1-808a66624470", + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/order-control", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0119", + "code": "RE" + } + ] + } + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/order-effective-date", + "valueDateTime": "2024-06-05T18:54:58+00:00" + } + ], + "status": "completed", + "intent": "order", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "94531-1" + } + ] + }, + "subject": { + "reference": "Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67" + }, + "requester": { + "reference": "PractitionerRole/57a1a000-16e5-461a-930a-2e4779944bc2" + }, + "performer": [ + { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + ], + "supportingInfo": [ + { + "reference": "Observation/dd5369b2-91e7-32d9-8c7f-884cad6b0391" + }, + { + "reference": "Observation/fdf748f4-b187-31c6-b08d-334afc1c6a49" + }, + { + "reference": "Observation/4c669397-3b8b-3448-a7c8-d2fb8c5afde5" + }, + { + "reference": "Observation/4456d162-bfd8-37f3-aafe-1e6444c53934" + }, + { + "reference": "Observation/0042a1cb-8473-3181-9b65-fcb08dc112a3" + } + ] + } + }, + { + "fullUrl": "Device/d303372c-70cb-46b7-bf74-23f4dc91e661", + "resource": { + "resourceType": "Device", + "id": "d303372c-70cb-46b7-bf74-23f4dc91e661", + "identifier": [ + { + "type": { + "coding": [ + { + "code": "MNI" + } + ] + } + } + ], + "manufacturer": "Access Bio, Inc.", + "deviceName": [ + { + "name": "CareStart COVID-19 MDx RT-PCR", + "type": "model-name" + } + ] + } + }, + { + "fullUrl": "PractitionerRole/57a1a000-16e5-461a-930a-2e4779944bc2", + "resource": { + "resourceType": "PractitionerRole", + "id": "57a1a000-16e5-461a-930a-2e4779944bc2", + "practitioner": { + "reference": "Practitioner/ee29ccf5-631d-4b35-a6d4-30a61c0eb8d9" + }, + "organization": { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + } + }, + { + "fullUrl": "Organization/07640c5d-87cd-488b-9343-a226c5166539", + "resource": { + "resourceType": "Organization", + "id": "07640c5d-87cd-488b-9343-a226c5166539", + "name": "SimpleReport" + } + }, + { + "fullUrl": "Observation/5ab37a34-59f5-421f-92bd-baffaf26bb72", + "resource": { + "resourceType": "Observation", + "id": "5ab37a34-59f5-421f-92bd-baffaf26bb72", + "status": "final", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "94500-6" + } + ], + "text": "COVID-19" + }, + "subject": { + "reference": "Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67" + }, + "issued": "2024-06-05T18:54:58.594Z", + "performer": [ + { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + ], + "valueCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "260373001", + "display": "Detected" + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0078", + "code": "A", + "display": "Abnormal" + } + ] + } + ], + "method": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/testkit-name-id", + "valueCoding": { + "code": "CareStart COVID-19 MDx RT-PCR_Access Bio, Inc." + } + } + ], + "coding": [ + { + "display": "CareStart COVID-19 MDx RT-PCR" + } + ] + }, + "specimen": { + "reference": "Specimen/dc7af370-fc07-4b00-abc7-9b5dd87cf4d2" + }, + "device": { + "reference": "Device/d303372c-70cb-46b7-bf74-23f4dc91e661" + } + } + }, + { + "fullUrl": "Observation/dd5369b2-91e7-32d9-8c7f-884cad6b0391", + "resource": { + "resourceType": "Observation", + "id": "dd5369b2-91e7-32d9-8c7f-884cad6b0391", + "identifier": [ + { + "use": "official", + "type": { + "coding": [ + { + "system": "http://loinc.org", + "code": "81959-9", + "display": "Public health laboratory ask at order entry panel" + } + ] + } + } + ], + "status": "final", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "95419-8", + "display": "Has symptoms related to condition of interest", + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/condition-code", + "valueCoding": { + "system": "ReportStream", + "code": "AOE", + "display": "Ask at order entry question" + } + } + ] + } + ], + "text": "Has symptoms related to condition of interest" + }, + "subject": { + "reference": "Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67" + }, + "valueCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/ValueSet/v2-0136", + "code": "Y", + "display": "Yes" + } + ] + } + } + }, + { + "fullUrl": "Observation/fdf748f4-b187-31c6-b08d-334afc1c6a49", + "resource": { + "resourceType": "Observation", + "id": "fdf748f4-b187-31c6-b08d-334afc1c6a49", + "identifier": [ + { + "use": "official", + "type": { + "coding": [ + { + "system": "http://loinc.org", + "code": "81959-9", + "display": "Public health laboratory ask at order entry panel", + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/condition-code", + "valueCoding": { + "system": "ReportStream", + "code": "AOE", + "display": "Ask at order entry question" + } + } + ] + } + ] + } + } + ], + "status": "final", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "11368-8", + "display": "Illness or injury onset date and time" + } + ], + "text": "Illness or injury onset date and time" + }, + "subject": { + "reference": "Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67" + }, + "valueDateTime": "2024-06-01" + } + }, + { + "fullUrl": "Observation/4c669397-3b8b-3448-a7c8-d2fb8c5afde5", + "resource": { + "resourceType": "Observation", + "id": "4c669397-3b8b-3448-a7c8-d2fb8c5afde5", + "identifier": [ + { + "use": "official", + "type": { + "coding": [ + { + "system": "http://loinc.org", + "code": "81959-9", + "display": "Public health laboratory ask at order entry panel", + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/condition-code", + "valueCoding": { + "system": "ReportStream", + "code": "AOE", + "display": "Ask at order entry question" + } + } + ] + } + ] + } + } + ], + "status": "final", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "82810-3", + "display": "Pregnancy status" + } + ], + "text": "Pregnancy status" + }, + "subject": { + "reference": "Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67" + }, + "valueCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "60001007", + "display": "Not pregnant", + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/condition-code", + "valueCoding": { + "system": "ReportStream", + "code": "AOE", + "display": "Ask at order entry question" + } + } + ] + } + ] + } + } + }, + { + "fullUrl": "Observation/4456d162-bfd8-37f3-aafe-1e6444c53934", + "resource": { + "resourceType": "Observation", + "id": "4456d162-bfd8-37f3-aafe-1e6444c53934", + "identifier": [ + { + "use": "official", + "type": { + "coding": [ + { + "system": "http://loinc.org", + "code": "81959-9", + "display": "Public health laboratory ask at order entry panel", + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/condition-code", + "valueCoding": { + "system": "ReportStream", + "code": "AOE", + "display": "Ask at order entry question" + } + } + ] + } + ] + } + } + ], + "status": "final", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "95418-0", + "display": "Employed in a healthcare setting" + } + ], + "text": "Employed in a healthcare setting" + }, + "subject": { + "reference": "Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67" + }, + "valueCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/ValueSet/v2-0136", + "code": "Y", + "display": "Yes" + } + ] + } + } + }, + { + "fullUrl": "Observation/0042a1cb-8473-3181-9b65-fcb08dc112a3", + "resource": { + "resourceType": "Observation", + "id": "0042a1cb-8473-3181-9b65-fcb08dc112a3", + "identifier": [ + { + "use": "official", + "type": { + "coding": [ + { + "system": "http://loinc.org", + "code": "81959-9", + "display": "Public health laboratory ask at order entry panel", + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/condition-code", + "valueCoding": { + "system": "ReportStream", + "code": "AOE", + "display": "Ask at order entry question" + } + } + ] + } + ] + } + } + ], + "status": "final", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "95421-4", + "display": "Resides in a congregate care setting" + } + ], + "text": "Resides in a congregate care setting" + }, + "subject": { + "reference": "Patient/7c0d1de9-270e-4d9c-a4ec-af92560cec67" + }, + "valueCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/ValueSet/v2-0136", + "code": "Y", + "display": "Yes" + } + ] + } + } + } + ] +} \ No newline at end of file diff --git a/prime-router/src/main/kotlin/fhirengine/engine/CustomFhirPathFunctions.kt b/prime-router/src/main/kotlin/fhirengine/engine/CustomFhirPathFunctions.kt index 967d7179114..5fcfcaeb1f1 100644 --- a/prime-router/src/main/kotlin/fhirengine/engine/CustomFhirPathFunctions.kt +++ b/prime-router/src/main/kotlin/fhirengine/engine/CustomFhirPathFunctions.kt @@ -15,8 +15,10 @@ import org.hl7.fhir.r4.model.Device import org.hl7.fhir.r4.model.Observation import org.hl7.fhir.r4.model.StringType import org.hl7.fhir.r4.utils.FHIRPathUtilityClasses.FunctionDetails +import java.time.LocalDate import java.util.Date import java.util.UUID +import java.util.concurrent.ThreadLocalRandom import kotlin.math.abs import kotlin.random.Random @@ -194,7 +196,7 @@ class CustomFhirPathFunctions : FhirPathFunctions { if (parameters.size != 2) { throw SchemaException( "Must call the getFakeValueForElement function for city or postal code with" + - " a state specified." + " a state specified." ) } } @@ -213,7 +215,7 @@ class CustomFhirPathFunctions : FhirPathFunctions { metadata ) GeoData.DataTypes.TESTING_LAB -> "Any lab USA" - GeoData.DataTypes.SENDER_IDENTIFIER -> UUID.randomUUID().toString() + GeoData.DataTypes.UUID -> UUID.randomUUID().toString() GeoData.DataTypes.FACILITY_NAME -> "Any facility USA" GeoData.DataTypes.NAME_OF_SCHOOL -> "Any Fake School" GeoData.DataTypes.REFERENCE_RANGE -> randomChoice("", "Normal", "Abnormal", "Negative") @@ -228,9 +230,9 @@ class CustomFhirPathFunctions : FhirPathFunctions { metadata ) GeoData.DataTypes.EQUIPMENT_MODEL_NAME -> randomChoice( - "LumiraDx SARS-CoV-2 Ag Test", - "BD Veritor System for Rapid Detection of SARS-CoV-2" - ) + "LumiraDx SARS-CoV-2 Ag Test", + "BD Veritor System for Rapid Detection of SARS-CoV-2" + ) GeoData.DataTypes.TEST_PERFORMED_CODE -> randomChoice( "95209-3", "94558-4" @@ -239,14 +241,18 @@ class CustomFhirPathFunctions : FhirPathFunctions { GeoData.DataTypes.BLANK -> "" GeoData.DataTypes.TEXT_OR_BLANK -> randomChoice("I am some random text", "") GeoData.DataTypes.NUMBER -> Random.nextInt().toString().replace("-", "") - GeoData.DataTypes.DATE -> DateUtilities.getDateAsFormattedString( - getRandomDate().toInstant(), - DateUtilities.datePattern - ) - GeoData.DataTypes.BIRTHDAY -> DateUtilities.getDateAsFormattedString( - getRandomDate().toInstant(), - DateUtilities.datePattern - ) + GeoData.DataTypes.DATE -> { + val minDay: Long = LocalDate.of(2000, 1, 1).toEpochDay() + val maxDay: Long = LocalDate.of(2023, 12, 31).toEpochDay() + val randomDay = ThreadLocalRandom.current().nextLong(minDay, maxDay) + LocalDate.ofEpochDay(randomDay).toString() + } + GeoData.DataTypes.BIRTHDAY -> { + val minDay: Long = LocalDate.of(1950, 1, 1).toEpochDay() + val maxDay: Long = LocalDate.of(2023, 12, 31).toEpochDay() + val randomDay = ThreadLocalRandom.current().nextLong(minDay, maxDay) + LocalDate.ofEpochDay(randomDay).toString() + } GeoData.DataTypes.DATETIME -> DateUtilities.getDateAsFormattedString( getRandomDate().toInstant(), DateUtilities.datetimePattern @@ -259,7 +265,14 @@ class CustomFhirPathFunctions : FhirPathFunctions { GeoData.DataTypes.ID_SSN -> Faker().idNumber().validSvSeSsn() GeoData.DataTypes.ID_NPI -> NPIUtilities.generateRandomNPI(Faker()) GeoData.DataTypes.STREET -> Faker().address().streetAddress() - GeoData.DataTypes.PERSON_NAME -> Faker().name().fullName() + GeoData.DataTypes.PERSON_GIVEN_NAME -> { + val fullName = Faker().name().fullName() + fullName.substring(0, fullName.indexOf(" ")) + } + GeoData.DataTypes.PERSON_FAMILY_NAME -> { + val fullName = Faker().name().fullName() + fullName.substring(fullName.lastIndexOf(' '), fullName.length) + } GeoData.DataTypes.TELEPHONE -> Faker().numerify("12#########") GeoData.DataTypes.EMAIL -> Faker().name().fullName() .replace(" ", "") @@ -269,7 +282,7 @@ class CustomFhirPathFunctions : FhirPathFunctions { GeoData.DataTypes.PROCESSING_MODE_CODE -> "P" GeoData.DataTypes.VALUE_TYPE -> "CWE" GeoData.DataTypes.TEST_RESULT -> randomChoice("260373001", "260415000", "419984006") - GeoData.DataTypes.PATIENT_STREET_ADDRESS_2 -> randomChoice("Apt. 305", "Suite 22", "Building 2") + GeoData.DataTypes.STREET_ADDRESS_2 -> randomChoice("Apt. 305", "Suite 22", "Building 2") GeoData.DataTypes.ID_NUMBER -> randomChoice("ABC123", "123LKJ", "bjh098") GeoData.DataTypes.SOURCE_OF_COMMENT -> randomChoice("L", "O", "P") } diff --git a/prime-router/src/main/kotlin/fhirengine/translation/hl7/FhirTransformer.kt b/prime-router/src/main/kotlin/fhirengine/translation/hl7/FhirTransformer.kt index 14d251f4a42..8720b3ed611 100644 --- a/prime-router/src/main/kotlin/fhirengine/translation/hl7/FhirTransformer.kt +++ b/prime-router/src/main/kotlin/fhirengine/translation/hl7/FhirTransformer.kt @@ -1,5 +1,6 @@ package gov.cdc.prime.router.fhirengine.translation.hl7 +import fhirengine.engine.CustomFhirPathFunctions import gov.cdc.prime.router.azure.BlobAccess import gov.cdc.prime.router.common.Environment import gov.cdc.prime.router.fhirengine.translation.hl7.schema.ConfigSchemaElementProcessingException @@ -62,7 +63,7 @@ class FhirTransformer( schema: FhirTransformSchema, bundle: Bundle, focusResource: Base, - context: CustomContext = CustomContext(bundle, focusResource), + context: CustomContext = CustomContext(bundle, focusResource, customFhirFunctions = CustomFhirPathFunctions()), debug: Boolean = false, ) { val logLevel = if (debug) Level.INFO else Level.DEBUG @@ -367,9 +368,9 @@ class FhirTransformer( elementsToUpdate.forEach { penultimateElement -> val property = penultimateElement.getNamedProperty(propertyName) val newValue = FhirBundleUtils.convertFhirType(value, value.fhirType(), property.typeCode, logger) - penultimateElement.setProperty(propertyName, newValue.copy()) + penultimateElement.setProperty(propertyName, newValue.copy()) + } } - } private fun createMissingElementsInBundleProperty( fhirPath: String, diff --git a/prime-router/src/main/kotlin/metadata/GeoData.kt b/prime-router/src/main/kotlin/metadata/GeoData.kt index 50620c3672d..7f01c409dc5 100644 --- a/prime-router/src/main/kotlin/metadata/GeoData.kt +++ b/prime-router/src/main/kotlin/metadata/GeoData.kt @@ -28,6 +28,17 @@ object GeoData { var filters = tableRef?.FilterBuilder() ?: error("Could not find table '$tableRef'\"") filters = filters.equalsIgnoreCase(ColumnNames.STATE_ABBR.columnName, state) val uniqueValues = filters.findAllUnique(column.columnName) + if (uniqueValues.isEmpty()) { + // bad data passed, just return default + return when (column) { + ColumnNames.STATE_FIPS -> "12345" + ColumnNames.STATE -> state + ColumnNames.STATE_ABBR -> state + ColumnNames.ZIP_CODE -> "98765" + ColumnNames.COUNTY -> "Multnomah" + ColumnNames.CITY -> "Portland" + } + } return uniqueValues[Random().nextInt(uniqueValues.size)] } @@ -47,7 +58,7 @@ object GeoData { CITY("city"), POSTAL_CODE("postal_code"), TESTING_LAB("testing_lab"), - SENDER_IDENTIFIER("sender_identifier"), + UUID("sender_identifier"), FACILITY_NAME("facility_name"), NAME_OF_SCHOOL("name_of_school"), REFERENCE_RANGE("reference_range"), @@ -78,12 +89,13 @@ object GeoData { ID_SSN("id_ssn"), ID_NPI("id_npi"), STREET("street"), - PERSON_NAME("person_name"), + PERSON_GIVEN_NAME("person_given_name"), + PERSON_FAMILY_NAME("person_family_name"), TELEPHONE("telephone"), EMAIL("email"), BIRTHDAY("birthday"), ID_NUMBER("id_number"), - PATIENT_STREET_ADDRESS_2("patient_street_address_2"), + STREET_ADDRESS_2("patient_street_address_2"), SOURCE_OF_COMMENT("source_of_comment"), } } \ 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 new file mode 100644 index 00000000000..52117eab502 --- /dev/null +++ b/prime-router/src/main/resources/metadata/fhir_transforms/common/remove-pii-address.yml @@ -0,0 +1,18 @@ +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 + value: [ 'getFakeValueForElement("STREET_ADDRESS_2")' ] + bundleProperty: '%resource.extension(%`rsext-xad-address`).extension.where(url = "XAD.2").value' + + - name: pii-removal-city + value: [ 'getFakeValueForElement("CITY",%resource.state)' ] + bundleProperty: '%resource.city' + + - name: pii-removal-zip + value: [ 'getFakeValueForElement("POSTAL_CODE", %resource.state)' ] + bundleProperty: '%resource.postalCode' + + - name: pii-removal-county + value: [ 'getFakeValueForElement("COUNTY", %resource.state)' ] + bundleProperty: '%resource.district' \ No newline at end of file diff --git a/prime-router/src/main/resources/metadata/fhir_transforms/common/remove-pii-enrichment.yml b/prime-router/src/main/resources/metadata/fhir_transforms/common/remove-pii-enrichment.yml new file mode 100644 index 00000000000..951abf18684 --- /dev/null +++ b/prime-router/src/main/resources/metadata/fhir_transforms/common/remove-pii-enrichment.yml @@ -0,0 +1,56 @@ +elements: +# telecoms will be removed via code since they are lists and this is more complicated + - name: pii-removal-patient-name + resource: 'Bundle.entry.resource.ofType(Patient).name' + resourceIndex: nameIndex + schema: classpath:/metadata/fhir_transforms/common/remove-pii-name.yml + + - name: pii-removal-patient-dob + resource: 'Bundle.entry.resource.ofType(Patient)' + value: [ 'getFakeValueForElement("BIRTHDAY")' ] + bundleProperty: '%resource.birthDate' + + - name: pii-removal-patient-address + resource: 'Bundle.entry.resource.ofType(Patient).address' + resourceIndex: addressIndex + schema: classpath:/metadata/fhir_transforms/common/remove-pii-address.yml + + - name: pii-removal-ordering-provider-name + resource: 'Bundle.entry.resource.ofType(ServiceRequest).requester.resolve().practitioner.resolve().name' + resourceIndex: nameIndex + schema: classpath:/metadata/fhir_transforms/common/remove-pii-name.yml + + - name: pii-removal-ordering-facility-address + resource: 'Bundle.entry.resource.ofType(ServiceRequest).requester.resolve().organization.resolve().address' + resourceIndex: addressIndex + schema: classpath:/metadata/fhir_transforms/common/remove-pii-address.yml + + - name: pii-removal-service-request-note + resource: 'Bundle.entry.resource.ofType(ServiceRequest)' + value: [ 'getFakeValueForElement("OTHER_TEXT")' ] + bundleProperty: '%resource.note.text' + + - name: pii-removal-observation-result-date-issued + resource: 'Bundle.entry.resource.ofType(Observation)' + value: [ 'getFakeValueForElement("DATETIME")' ] + bundleProperty: '%resource.issued' + + - name: pii-removal-observation-result-date-effective + resource: 'Bundle.entry.resource.ofType(Observation)' + value: [ 'getFakeValueForElement("DATETIME")' ] + bundleProperty: '%resource.effective[x]' + + - name: pii-removal-observation-note + resource: 'Bundle.entry.resource.ofType(Observation)' + value: [ 'getFakeValueForElement("OTHER_TEXT")' ] + bundleProperty: '%resource.note.text' + + - name: pii-removal-specimen-note + resource: 'Bundle.entry.resource.ofType(Specimen)' + value: [ 'getFakeValueForElement("OTHER_TEXT")' ] + bundleProperty: '%resource.note.text' + + + + + diff --git a/prime-router/src/main/resources/metadata/fhir_transforms/common/remove-pii-name.yml b/prime-router/src/main/resources/metadata/fhir_transforms/common/remove-pii-name.yml new file mode 100644 index 00000000000..4968f5eac5a --- /dev/null +++ b/prime-router/src/main/resources/metadata/fhir_transforms/common/remove-pii-name.yml @@ -0,0 +1,10 @@ +elements: + - name: pii-removal-last-name + value: [ 'getFakeValueForElement("PERSON_FAMILY_NAME")' ] + bundleProperty: '%resource.family' + + # removing a given name is more complicated because it is a list so we will do this in code + + - name: pii-removal-middle-name + value: [ 'getFakeValueForElement("PERSON_GIVEN_NAME")' ] + bundleProperty: '%resource.extension(%`rsext-xpn-human-name`).extension.where(url="XPN.3").value' \ No newline at end of file diff --git a/prime-router/src/main/resources/metadata/fhir_transforms/common/remove-pii-telecom.yml b/prime-router/src/main/resources/metadata/fhir_transforms/common/remove-pii-telecom.yml new file mode 100644 index 00000000000..fef6b43d8a6 --- /dev/null +++ b/prime-router/src/main/resources/metadata/fhir_transforms/common/remove-pii-telecom.yml @@ -0,0 +1,15 @@ +elements: + - name: pii-removal-phone-area-code + condition: "%resource.where(system = 'phone')" + value: [ 'getFakeValueForElement("TELEPHONE").substring(0,3)' ] + bundleProperty: '%resource.extension(%`ext-contactpoint-area`).value' + + - name: pii-removal-local-phone + condition: "%resource.where(system = 'phone')" + value: [ 'getFakeValueForElement("TELEPHONE")' ] + bundleProperty: '%resource.value' + + - name: pii-removal-email + condition: "%resource.where(system = 'email')" + value: [ 'getFakeValueForElement("EMAIL")' ] + bundleProperty: '%resource.value' \ No newline at end of file diff --git a/prime-router/src/test/kotlin/fhirengine/engine/CustomFhirPathFunctionTest.kt b/prime-router/src/test/kotlin/fhirengine/engine/CustomFhirPathFunctionTest.kt index 5c002daf3c0..95f92e40785 100644 --- a/prime-router/src/test/kotlin/fhirengine/engine/CustomFhirPathFunctionTest.kt +++ b/prime-router/src/test/kotlin/fhirengine/engine/CustomFhirPathFunctionTest.kt @@ -161,7 +161,7 @@ class CustomFhirPathFunctionTest { @Test fun `test get fake value for element function`() { - // Fails if city, county, or postal code and no state + // Fails if city, county, or postal code and no state assertFailure { CustomFhirPathFunctions().getFakeValueForElement( mutableListOf(mutableListOf(StringType("CITY"))), From 487d454db0a7ba5f7989f2f7986c504303d4bb9c Mon Sep 17 00:00:00 2001 From: Joseph Andersen <12385932+jpandersen87@users.noreply.github.com> Date: Thu, 29 Aug 2024 12:58:42 -0500 Subject: [PATCH 04/40] Create E2E tests for the API Getting Started, documentation pages (#15711) * Create E2E tests for the API Getting Started, documentation pages Fixes #14789 --- frontend-react/e2e/helpers/internal-links.ts | 23 ++++++++ .../api/documentation/index.ts | 17 ++++++ .../responses-from-reportstream.ts | 17 ++++++ .../sample-payloads-and-output.ts | 17 ++++++ .../api/getting-started.ts | 17 ++++++ .../api/documentation/index.spec.ts | 56 +++++++++++++++++++ .../responses-from-reportstream.spec.ts | 56 +++++++++++++++++++ .../sample-payloads-and-output.spec.ts | 56 +++++++++++++++++++ .../api/getting-started.spec.ts | 56 +++++++++++++++++++ 9 files changed, 315 insertions(+) create mode 100644 frontend-react/e2e/pages/public/developer-resources/api/documentation/index.ts create mode 100644 frontend-react/e2e/pages/public/developer-resources/api/documentation/responses-from-reportstream.ts create mode 100644 frontend-react/e2e/pages/public/developer-resources/api/documentation/sample-payloads-and-output.ts create mode 100644 frontend-react/e2e/pages/public/developer-resources/api/getting-started.ts create mode 100644 frontend-react/e2e/spec/all/public/developer-resources/api/documentation/index.spec.ts create mode 100644 frontend-react/e2e/spec/all/public/developer-resources/api/documentation/responses-from-reportstream.spec.ts create mode 100644 frontend-react/e2e/spec/all/public/developer-resources/api/documentation/sample-payloads-and-output.spec.ts create mode 100644 frontend-react/e2e/spec/all/public/developer-resources/api/getting-started.spec.ts diff --git a/frontend-react/e2e/helpers/internal-links.ts b/frontend-react/e2e/helpers/internal-links.ts index 3ad68bb073a..641137fb76b 100644 --- a/frontend-react/e2e/helpers/internal-links.ts +++ b/frontend-react/e2e/helpers/internal-links.ts @@ -56,3 +56,26 @@ export const gettingStartedSideNav = [ path: "/getting-started/receiving-data", }, ]; + +export const developerResourcesApiSideNav = [ + { + name: "ReportStream API", + path: "/developer-resources/api", + }, + { + name: "Getting started", + path: "/developer-resources/api/getting-started", + }, + { + name: "Documentation", + path: "/developer-resources/api/documentation", + }, + { + name: "Responses from ReportStream", + path: "/developer-resources/api/documentation/responses-from-reportstream", + }, + { + name: "Sample payloads and output", + path: "/developer-resources/api/documentation/sample-payloads-and-output", + }, +]; diff --git a/frontend-react/e2e/pages/public/developer-resources/api/documentation/index.ts b/frontend-react/e2e/pages/public/developer-resources/api/documentation/index.ts new file mode 100644 index 00000000000..01facc38faa --- /dev/null +++ b/frontend-react/e2e/pages/public/developer-resources/api/documentation/index.ts @@ -0,0 +1,17 @@ +import { BasePage, BasePageTestArgs } from "../../../../BasePage"; + +export class DeveloperResourcesApiDocumentationPage extends BasePage { + constructor(testArgs: BasePageTestArgs) { + super( + { + url: "/developer-resources/api/documentation", + title: "ReportStream API documentation", + heading: testArgs.page.getByRole("heading", { + name: "Documentation", + exact: true, + }), + }, + testArgs, + ); + } +} diff --git a/frontend-react/e2e/pages/public/developer-resources/api/documentation/responses-from-reportstream.ts b/frontend-react/e2e/pages/public/developer-resources/api/documentation/responses-from-reportstream.ts new file mode 100644 index 00000000000..81724ff952c --- /dev/null +++ b/frontend-react/e2e/pages/public/developer-resources/api/documentation/responses-from-reportstream.ts @@ -0,0 +1,17 @@ +import { BasePage, BasePageTestArgs } from "../../../../BasePage"; + +export class ResponsesFromReportStreamPage extends BasePage { + constructor(testArgs: BasePageTestArgs) { + super( + { + url: "/developer-resources/api/documentation/responses-from-reportstream", + title: "API responses from ReportStream", + heading: testArgs.page.getByRole("heading", { + name: "Responses from ReportStream", + exact: true, + }), + }, + testArgs, + ); + } +} diff --git a/frontend-react/e2e/pages/public/developer-resources/api/documentation/sample-payloads-and-output.ts b/frontend-react/e2e/pages/public/developer-resources/api/documentation/sample-payloads-and-output.ts new file mode 100644 index 00000000000..064141c4f89 --- /dev/null +++ b/frontend-react/e2e/pages/public/developer-resources/api/documentation/sample-payloads-and-output.ts @@ -0,0 +1,17 @@ +import { BasePage, BasePageTestArgs } from "../../../../BasePage"; + +export class SamplePayloadsAndOutputs extends BasePage { + constructor(testArgs: BasePageTestArgs) { + super( + { + url: "/developer-resources/api/documentation/sample-payloads-and-output", + title: "ReportStream API sample payloads and output", + heading: testArgs.page.getByRole("heading", { + name: "Sample payloads and output", + exact: true, + }), + }, + testArgs, + ); + } +} diff --git a/frontend-react/e2e/pages/public/developer-resources/api/getting-started.ts b/frontend-react/e2e/pages/public/developer-resources/api/getting-started.ts new file mode 100644 index 00000000000..818b87b95af --- /dev/null +++ b/frontend-react/e2e/pages/public/developer-resources/api/getting-started.ts @@ -0,0 +1,17 @@ +import { BasePage, BasePageTestArgs } from "../../../BasePage"; + +export class DeveloperResourcesApiGettingStartedPage extends BasePage { + constructor(testArgs: BasePageTestArgs) { + super( + { + url: "/developer-resources/api/getting-started", + title: "Getting started with ReportStream's API", + heading: testArgs.page.getByRole("heading", { + name: "Getting started", + exact: true, + }), + }, + testArgs, + ); + } +} diff --git a/frontend-react/e2e/spec/all/public/developer-resources/api/documentation/index.spec.ts b/frontend-react/e2e/spec/all/public/developer-resources/api/documentation/index.spec.ts new file mode 100644 index 00000000000..68f26edaae5 --- /dev/null +++ b/frontend-react/e2e/spec/all/public/developer-resources/api/documentation/index.spec.ts @@ -0,0 +1,56 @@ +import { developerResourcesApiSideNav } from "../../../../../../helpers/internal-links"; +import { DeveloperResourcesApiDocumentationPage } from "../../../../../../pages/public/developer-resources/api/documentation/index"; +import { test as baseTest } from "../../../../../../test"; + +export interface SecurityPageFixtures { + developerResourcesApiDocumentationPage: DeveloperResourcesApiDocumentationPage; +} + +const test = baseTest.extend({ + developerResourcesApiDocumentationPage: async ( + { + page: _page, + isMockDisabled, + adminLogin, + senderLogin, + receiverLogin, + storageState, + isFrontendWarningsLog, + frontendWarningsLogPath, + }, + use, + ) => { + const page = new DeveloperResourcesApiDocumentationPage({ + page: _page, + isMockDisabled, + adminLogin, + senderLogin, + receiverLogin, + storageState, + isFrontendWarningsLog, + frontendWarningsLogPath, + }); + await page.goto(); + await use(page); + }, +}); + +test.describe( + "Developer Resources / API / Documentation / Index page", + { + tag: "@smoke", + }, + () => { + test("has side nav", async ({ developerResourcesApiDocumentationPage }) => { + await developerResourcesApiDocumentationPage.testSidenav(developerResourcesApiSideNav); + }); + + test("has correct title + heading", async ({ developerResourcesApiDocumentationPage }) => { + await developerResourcesApiDocumentationPage.testHeader(); + }); + + test("footer", async ({ developerResourcesApiDocumentationPage }) => { + await developerResourcesApiDocumentationPage.testFooter(); + }); + }, +); diff --git a/frontend-react/e2e/spec/all/public/developer-resources/api/documentation/responses-from-reportstream.spec.ts b/frontend-react/e2e/spec/all/public/developer-resources/api/documentation/responses-from-reportstream.spec.ts new file mode 100644 index 00000000000..caa38df4110 --- /dev/null +++ b/frontend-react/e2e/spec/all/public/developer-resources/api/documentation/responses-from-reportstream.spec.ts @@ -0,0 +1,56 @@ +import { developerResourcesApiSideNav } from "../../../../../../helpers/internal-links"; +import { ResponsesFromReportStreamPage } from "../../../../../../pages/public/developer-resources/api/documentation/responses-from-reportstream"; +import { test as baseTest } from "../../../../../../test"; + +export interface SecurityPageFixtures { + responsesFromReportStreamPage: ResponsesFromReportStreamPage; +} + +const test = baseTest.extend({ + responsesFromReportStreamPage: async ( + { + page: _page, + isMockDisabled, + adminLogin, + senderLogin, + receiverLogin, + storageState, + isFrontendWarningsLog, + frontendWarningsLogPath, + }, + use, + ) => { + const page = new ResponsesFromReportStreamPage({ + page: _page, + isMockDisabled, + adminLogin, + senderLogin, + receiverLogin, + storageState, + isFrontendWarningsLog, + frontendWarningsLogPath, + }); + await page.goto(); + await use(page); + }, +}); + +test.describe( + "Developer Resources / API / Documentation / Responses From ReportStream page", + { + tag: "@smoke", + }, + () => { + test("has side nav", async ({ responsesFromReportStreamPage }) => { + await responsesFromReportStreamPage.testSidenav(developerResourcesApiSideNav); + }); + + test("has correct title + heading", async ({ responsesFromReportStreamPage }) => { + await responsesFromReportStreamPage.testHeader(); + }); + + test("footer", async ({ responsesFromReportStreamPage }) => { + await responsesFromReportStreamPage.testFooter(); + }); + }, +); diff --git a/frontend-react/e2e/spec/all/public/developer-resources/api/documentation/sample-payloads-and-output.spec.ts b/frontend-react/e2e/spec/all/public/developer-resources/api/documentation/sample-payloads-and-output.spec.ts new file mode 100644 index 00000000000..5000be4d748 --- /dev/null +++ b/frontend-react/e2e/spec/all/public/developer-resources/api/documentation/sample-payloads-and-output.spec.ts @@ -0,0 +1,56 @@ +import { developerResourcesApiSideNav } from "../../../../../../helpers/internal-links"; +import { SamplePayloadsAndOutputs } from "../../../../../../pages/public/developer-resources/api/documentation/sample-payloads-and-output"; +import { test as baseTest } from "../../../../../../test"; + +export interface SecurityPageFixtures { + samplePayloadsAndOutputs: SamplePayloadsAndOutputs; +} + +const test = baseTest.extend({ + samplePayloadsAndOutputs: async ( + { + page: _page, + isMockDisabled, + adminLogin, + senderLogin, + receiverLogin, + storageState, + isFrontendWarningsLog, + frontendWarningsLogPath, + }, + use, + ) => { + const page = new SamplePayloadsAndOutputs({ + page: _page, + isMockDisabled, + adminLogin, + senderLogin, + receiverLogin, + storageState, + isFrontendWarningsLog, + frontendWarningsLogPath, + }); + await page.goto(); + await use(page); + }, +}); + +test.describe( + "Developer Resources / API / Documentation / Sample payloads and output page", + { + tag: "@smoke", + }, + () => { + test("has side nav", async ({ samplePayloadsAndOutputs }) => { + await samplePayloadsAndOutputs.testSidenav(developerResourcesApiSideNav); + }); + + test("has correct title + heading", async ({ samplePayloadsAndOutputs }) => { + await samplePayloadsAndOutputs.testHeader(); + }); + + test("footer", async ({ samplePayloadsAndOutputs }) => { + await samplePayloadsAndOutputs.testFooter(); + }); + }, +); diff --git a/frontend-react/e2e/spec/all/public/developer-resources/api/getting-started.spec.ts b/frontend-react/e2e/spec/all/public/developer-resources/api/getting-started.spec.ts new file mode 100644 index 00000000000..b88ff296fee --- /dev/null +++ b/frontend-react/e2e/spec/all/public/developer-resources/api/getting-started.spec.ts @@ -0,0 +1,56 @@ +import { developerResourcesApiSideNav } from "../../../../../helpers/internal-links"; +import { DeveloperResourcesApiGettingStartedPage } from "../../../../../pages/public/developer-resources/api/getting-started"; +import { test as baseTest } from "../../../../../test"; + +export interface SecurityPageFixtures { + developerResourcesApiGettingStartedPage: DeveloperResourcesApiGettingStartedPage; +} + +const test = baseTest.extend({ + developerResourcesApiGettingStartedPage: async ( + { + page: _page, + isMockDisabled, + adminLogin, + senderLogin, + receiverLogin, + storageState, + isFrontendWarningsLog, + frontendWarningsLogPath, + }, + use, + ) => { + const page = new DeveloperResourcesApiGettingStartedPage({ + page: _page, + isMockDisabled, + adminLogin, + senderLogin, + receiverLogin, + storageState, + isFrontendWarningsLog, + frontendWarningsLogPath, + }); + await page.goto(); + await use(page); + }, +}); + +test.describe( + "Developer Resources / API / Getting started page", + { + tag: "@smoke", + }, + () => { + test("has side nav", async ({ developerResourcesApiGettingStartedPage }) => { + await developerResourcesApiGettingStartedPage.testSidenav(developerResourcesApiSideNav); + }); + + test("has correct title + heading", async ({ developerResourcesApiGettingStartedPage }) => { + await developerResourcesApiGettingStartedPage.testHeader(); + }); + + test("footer", async ({ developerResourcesApiGettingStartedPage }) => { + await developerResourcesApiGettingStartedPage.testFooter(); + }); + }, +); From 1ba9021a2aefee4b13fc274dc6578742f32f0df1 Mon Sep 17 00:00:00 2001 From: Joseph Andersen <12385932+jpandersen87@users.noreply.github.com> Date: Thu, 29 Aug 2024 13:24:40 -0500 Subject: [PATCH 05/40] Create E2E tests for the Release Notes and Case Studies pages (#15710) * Create E2E tests for the Release Notes, Case Studies, Roadmap pages Fixes #14777 #14775 #14774 --- .../e2e/pages/public/about/case-studies.ts | 17 ++++++ .../e2e/pages/public/about/release-notes.ts | 17 ++++++ .../all/public/about/case-studies.spec.ts | 56 +++++++++++++++++++ .../all/public/about/release-notes.spec.ts | 56 +++++++++++++++++++ 4 files changed, 146 insertions(+) create mode 100644 frontend-react/e2e/pages/public/about/case-studies.ts create mode 100644 frontend-react/e2e/pages/public/about/release-notes.ts create mode 100644 frontend-react/e2e/spec/all/public/about/case-studies.spec.ts create mode 100644 frontend-react/e2e/spec/all/public/about/release-notes.spec.ts diff --git a/frontend-react/e2e/pages/public/about/case-studies.ts b/frontend-react/e2e/pages/public/about/case-studies.ts new file mode 100644 index 00000000000..d856cd823e3 --- /dev/null +++ b/frontend-react/e2e/pages/public/about/case-studies.ts @@ -0,0 +1,17 @@ +import { BasePage, BasePageTestArgs } from "../../BasePage"; + +export class AboutCaseStudiesPage extends BasePage { + constructor(testArgs: BasePageTestArgs) { + super( + { + url: "/about/case-studies", + title: "ReportStream case studies", + heading: testArgs.page.getByRole("heading", { + name: "Case studies", + exact: true, + }), + }, + testArgs, + ); + } +} diff --git a/frontend-react/e2e/pages/public/about/release-notes.ts b/frontend-react/e2e/pages/public/about/release-notes.ts new file mode 100644 index 00000000000..b5de124a158 --- /dev/null +++ b/frontend-react/e2e/pages/public/about/release-notes.ts @@ -0,0 +1,17 @@ +import { BasePage, BasePageTestArgs } from "../../BasePage"; + +export class AboutReleaseNotesPage extends BasePage { + constructor(testArgs: BasePageTestArgs) { + super( + { + url: "/about/release-notes", + title: "ReportStream release notes", + heading: testArgs.page.getByRole("heading", { + name: "Release notes", + exact: true, + }), + }, + testArgs, + ); + } +} diff --git a/frontend-react/e2e/spec/all/public/about/case-studies.spec.ts b/frontend-react/e2e/spec/all/public/about/case-studies.spec.ts new file mode 100644 index 00000000000..32c47edccdb --- /dev/null +++ b/frontend-react/e2e/spec/all/public/about/case-studies.spec.ts @@ -0,0 +1,56 @@ +import { aboutSideNav } from "../../../../helpers/internal-links"; +import { AboutCaseStudiesPage } from "../../../../pages/public/about/case-studies"; +import { test as baseTest } from "../../../../test"; + +export interface Fixtures { + aboutCaseStudiesPage: AboutCaseStudiesPage; +} + +const test = baseTest.extend({ + aboutCaseStudiesPage: async ( + { + page: _page, + isMockDisabled, + adminLogin, + senderLogin, + receiverLogin, + storageState, + isFrontendWarningsLog, + frontendWarningsLogPath, + }, + use, + ) => { + const page = new AboutCaseStudiesPage({ + page: _page, + isMockDisabled, + adminLogin, + senderLogin, + receiverLogin, + storageState, + isFrontendWarningsLog, + frontendWarningsLogPath, + }); + await page.goto(); + await use(page); + }, +}); + +test.describe( + "About / Case Studies page", + { + tag: "@smoke", + }, + () => { + test("has side nav", async ({ aboutCaseStudiesPage }) => { + await aboutCaseStudiesPage.testSidenav(aboutSideNav); + }); + + test("has correct title + heading", async ({ aboutCaseStudiesPage }) => { + await aboutCaseStudiesPage.testHeader(); + }); + + test("footer", async ({ aboutCaseStudiesPage }) => { + await aboutCaseStudiesPage.testFooter(); + }); + }, +); diff --git a/frontend-react/e2e/spec/all/public/about/release-notes.spec.ts b/frontend-react/e2e/spec/all/public/about/release-notes.spec.ts new file mode 100644 index 00000000000..2793f47c7f0 --- /dev/null +++ b/frontend-react/e2e/spec/all/public/about/release-notes.spec.ts @@ -0,0 +1,56 @@ +import { aboutSideNav } from "../../../../helpers/internal-links"; +import { AboutReleaseNotesPage } from "../../../../pages/public/about/release-notes"; +import { test as baseTest } from "../../../../test"; + +export interface Fixtures { + aboutReleaseNotesPage: AboutReleaseNotesPage; +} + +const test = baseTest.extend({ + aboutReleaseNotesPage: async ( + { + page: _page, + isMockDisabled, + adminLogin, + senderLogin, + receiverLogin, + storageState, + isFrontendWarningsLog, + frontendWarningsLogPath, + }, + use, + ) => { + const page = new AboutReleaseNotesPage({ + page: _page, + isMockDisabled, + adminLogin, + senderLogin, + receiverLogin, + storageState, + isFrontendWarningsLog, + frontendWarningsLogPath, + }); + await page.goto(); + await use(page); + }, +}); + +test.describe( + "About / Release Notes page", + { + tag: "@smoke", + }, + () => { + test("has side nav", async ({ aboutReleaseNotesPage }) => { + await aboutReleaseNotesPage.testSidenav(aboutSideNav); + }); + + test("has correct title + heading", async ({ aboutReleaseNotesPage }) => { + await aboutReleaseNotesPage.testHeader(); + }); + + test("footer", async ({ aboutReleaseNotesPage }) => { + await aboutReleaseNotesPage.testFooter(); + }); + }, +); From eee3ae901b0d6e6dd686d70abfdbf7ac5fc667d0 Mon Sep 17 00:00:00 2001 From: Joseph Andersen <12385932+jpandersen87@users.noreply.github.com> Date: Thu, 29 Aug 2024 14:08:51 -0500 Subject: [PATCH 06/40] Create E2E tests for api page (#15709) * Create E2E tests for developer resources index and api pages Fixes #14782 #14781 --- .../public/developer-resources/api/api.ts | 17 +++++ .../{ => developer-resources}/resources.ts | 2 +- .../developer-resources/api/api.spec.ts | 64 +++++++++++++++++++ .../resources-page.spec.ts | 4 +- 4 files changed, 84 insertions(+), 3 deletions(-) create mode 100644 frontend-react/e2e/pages/public/developer-resources/api/api.ts rename frontend-react/e2e/pages/public/{ => developer-resources}/resources.ts (88%) create mode 100644 frontend-react/e2e/spec/all/public/developer-resources/api/api.spec.ts rename frontend-react/e2e/spec/all/public/{ => developer-resources}/resources-page.spec.ts (91%) diff --git a/frontend-react/e2e/pages/public/developer-resources/api/api.ts b/frontend-react/e2e/pages/public/developer-resources/api/api.ts new file mode 100644 index 00000000000..2267192ac75 --- /dev/null +++ b/frontend-react/e2e/pages/public/developer-resources/api/api.ts @@ -0,0 +1,17 @@ +import { BasePage, BasePageTestArgs } from "../../../BasePage"; + +export class DeveloperResourcesApiPage extends BasePage { + constructor(testArgs: BasePageTestArgs) { + super( + { + url: "/developer-resources/api", + title: "Guide to connecting with ReportStream's API", + heading: testArgs.page.getByRole("heading", { + name: "ReportStream API", + exact: true, + }), + }, + testArgs, + ); + } +} diff --git a/frontend-react/e2e/pages/public/resources.ts b/frontend-react/e2e/pages/public/developer-resources/resources.ts similarity index 88% rename from frontend-react/e2e/pages/public/resources.ts rename to frontend-react/e2e/pages/public/developer-resources/resources.ts index 5accb844500..30e23a65b85 100644 --- a/frontend-react/e2e/pages/public/resources.ts +++ b/frontend-react/e2e/pages/public/developer-resources/resources.ts @@ -1,4 +1,4 @@ -import { BasePage, BasePageTestArgs } from "../BasePage"; +import { BasePage, BasePageTestArgs } from "../../BasePage"; export class DeveloperResourcesPage extends BasePage { constructor(testArgs: BasePageTestArgs) { diff --git a/frontend-react/e2e/spec/all/public/developer-resources/api/api.spec.ts b/frontend-react/e2e/spec/all/public/developer-resources/api/api.spec.ts new file mode 100644 index 00000000000..16f850ce267 --- /dev/null +++ b/frontend-react/e2e/spec/all/public/developer-resources/api/api.spec.ts @@ -0,0 +1,64 @@ +import { developerResourcesApiSideNav } from "../../../../../helpers/internal-links"; +import { DeveloperResourcesApiPage } from "../../../../../pages/public/developer-resources/api/api"; +import { test as baseTest, expect } from "../../../../../test.js"; + +export interface Fixtures { + developerResourcesApiPage: DeveloperResourcesApiPage; +} + +const test = baseTest.extend({ + developerResourcesApiPage: async ( + { + page: _page, + isMockDisabled, + adminLogin, + senderLogin, + receiverLogin, + storageState, + isFrontendWarningsLog, + frontendWarningsLogPath, + }, + use, + ) => { + const page = new DeveloperResourcesApiPage({ + page: _page, + isMockDisabled, + adminLogin, + senderLogin, + receiverLogin, + storageState, + isFrontendWarningsLog, + frontendWarningsLogPath, + }); + await page.goto(); + await use(page); + }, +}); + +test.describe( + "Developer Resources / API page", + { + tag: "@smoke", + }, + () => { + test("has side nav", async ({ developerResourcesApiPage }) => { + await developerResourcesApiPage.testSidenav(developerResourcesApiSideNav); + }); + + test("pdf file download works", async ({ developerResourcesApiPage }) => { + const downloadPromise = developerResourcesApiPage.page.waitForEvent("download"); + await developerResourcesApiPage.page.getByRole("link", { name: "downloadable PDF" }).click(); + const download = await downloadPromise; + expect(download.suggestedFilename()).toMatch(/^.+\.pdf$/); + await download.cancel(); + }); + + test("has correct title + heading", async ({ developerResourcesApiPage }) => { + await developerResourcesApiPage.testHeader(); + }); + + test("footer", async ({ developerResourcesApiPage }) => { + await developerResourcesApiPage.testFooter(); + }); + }, +); diff --git a/frontend-react/e2e/spec/all/public/resources-page.spec.ts b/frontend-react/e2e/spec/all/public/developer-resources/resources-page.spec.ts similarity index 91% rename from frontend-react/e2e/spec/all/public/resources-page.spec.ts rename to frontend-react/e2e/spec/all/public/developer-resources/resources-page.spec.ts index 1acd4e1883f..02b5003b9b1 100644 --- a/frontend-react/e2e/spec/all/public/resources-page.spec.ts +++ b/frontend-react/e2e/spec/all/public/developer-resources/resources-page.spec.ts @@ -1,5 +1,5 @@ -import { DeveloperResourcesPage } from "../../../pages/public/resources"; -import { test as baseTest } from "../../../test"; +import { DeveloperResourcesPage } from "../../../../pages/public/developer-resources/resources"; +import { test as baseTest } from "../../../../test"; export interface DeveloperResourcesPageFixtures { developerResourcesPage: DeveloperResourcesPage; From 6193885df41ae4f097ae615687cead85c304ae1a Mon Sep 17 00:00:00 2001 From: etanb Date: Thu, 29 Aug 2024 14:52:21 -0700 Subject: [PATCH 07/40] fix download issue e2e --- frontend-react/e2e/helpers/utils.ts | 15 +++++++++++++++ .../daily-data-page-user-flow.spec.ts | 16 ++++++++-------- 2 files changed, 23 insertions(+), 8 deletions(-) rename frontend-react/e2e/spec/{all => chromium-only}/authenticated/daily-data-page-user-flow.spec.ts (97%) diff --git a/frontend-react/e2e/helpers/utils.ts b/frontend-react/e2e/helpers/utils.ts index 00324bebd68..384cfdcf438 100644 --- a/frontend-react/e2e/helpers/utils.ts +++ b/frontend-react/e2e/helpers/utils.ts @@ -139,3 +139,18 @@ export function toDateWithTime(date: string, time?: string) { } return toDateTime; } + +export function removeTimestamp(filename: string) { + // Example string: "co.yml-beb0c9d9-ca1f-4af3-853e-0aba61541f66-20240829191221.hl7" + // Find the last hyphen and the last dot in the string + const lastHyphenIndex = filename.lastIndexOf("-"); + const lastDotIndex = filename.lastIndexOf("."); + + // If both indices are found, implying a properly formatted file extension, + // remove the timestamp + if (lastHyphenIndex !== -1 && lastDotIndex !== -1 && lastHyphenIndex < lastDotIndex) { + return filename.slice(0, lastHyphenIndex); + } + + return filename; +} diff --git a/frontend-react/e2e/spec/all/authenticated/daily-data-page-user-flow.spec.ts b/frontend-react/e2e/spec/chromium-only/authenticated/daily-data-page-user-flow.spec.ts similarity index 97% rename from frontend-react/e2e/spec/all/authenticated/daily-data-page-user-flow.spec.ts rename to frontend-react/e2e/spec/chromium-only/authenticated/daily-data-page-user-flow.spec.ts index 891a2d47340..8b952d433df 100644 --- a/frontend-react/e2e/spec/all/authenticated/daily-data-page-user-flow.spec.ts +++ b/frontend-react/e2e/spec/chromium-only/authenticated/daily-data-page-user-flow.spec.ts @@ -4,6 +4,7 @@ import { format } from "date-fns"; import fs from "node:fs"; import { expectTableColumnValues, + removeTimestamp, tableColumnDateTimeInRange, tableDataCellValue, tableRows, @@ -79,10 +80,6 @@ test.describe( test.describe("admin user", () => { test.use({ storageState: "e2e/.auth/admin.json" }); - test.beforeAll(({ browserName }) => { - test.skip(browserName !== "chromium"); - }); - test.describe(`${TEST_ORG_IGNORE} org - ${TEST_ORG_UP_RECEIVER_UP} receiver`, () => { test.describe("onLoad", () => { test("has correct title", async ({ dailyDataPage }) => { @@ -102,6 +99,7 @@ test.describe( }); test("table has pagination", async ({ dailyDataPage }) => { + await dailyDataPage.page.locator(".usa-table tbody").waitFor({ state: "visible" }); await expect(dailyDataPage.page.locator('[aria-label="Pagination"]')).toBeAttached(); }); @@ -292,9 +290,11 @@ test.describe( expect(await tableDataCellValue(dailyDataPage.page, 0, 0)).toEqual(reportId); }); - test("returns match for Filename", async ({ dailyDataPage }) => { + test.skip("returns match for Filename", async ({ dailyDataPage }) => { + // Filename search is currently broken and being tracked + // in ticket #15644 const fileName = await tableDataCellValue(dailyDataPage.page, 0, 4); - await searchInput(dailyDataPage.page).fill(fileName); + await searchInput(dailyDataPage.page).fill(removeTimestamp(fileName)); await searchButton(dailyDataPage.page).click(); await dailyDataPage.page.locator(".usa-table tbody").waitFor({ state: "visible" }); @@ -365,7 +365,7 @@ test.describe( }); }); - test.describe.skip("on 'Filename' click", () => { + test.describe("on 'Filename' click", () => { test.beforeEach(async ({ dailyDataPage }) => { await dailyDataPage.page.locator(".usa-table tbody").waitFor({ state: "visible" }); await dailyDataPage.page.locator("#receiver-dropdown").selectOption(TEST_ORG_UP_RECEIVER_UP); @@ -387,7 +387,7 @@ test.describe( const download = await downloadProm; // assert filename - expect(download.suggestedFilename()).toEqual(expect.stringContaining(fileName)); + expect(removeTimestamp(download.suggestedFilename())).toEqual(removeTimestamp(fileName)); // get and assert stats expect((await fs.promises.stat(await download.path())).size).toBeGreaterThan(200); From 25702ac5c6ae5a4419a4aa8d3855f26bf6da8cc9 Mon Sep 17 00:00:00 2001 From: etanb Date: Thu, 29 Aug 2024 16:59:14 -0700 Subject: [PATCH 08/40] make sure link tester waits properly --- .../e2e/spec/chromium-only/public-pages-link-check.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend-react/e2e/spec/chromium-only/public-pages-link-check.spec.ts b/frontend-react/e2e/spec/chromium-only/public-pages-link-check.spec.ts index 8c615cfa158..5902eb33851 100644 --- a/frontend-react/e2e/spec/chromium-only/public-pages-link-check.spec.ts +++ b/frontend-react/e2e/spec/chromium-only/public-pages-link-check.spec.ts @@ -55,7 +55,9 @@ test.describe("Evaluate links on public facing pages", { tag: "@warning" }, () = // Set test timeout to be 1 minute instead of 30 seconds test.setTimeout(60000); for (const path of urlPaths) { - await page.goto(path); + await page.goto(path, { + waitUntil: "networkidle", + }); const baseUrl = new URL(page.url()).origin; const allATags = await page.getByRole("link", { includeHidden: true }).elementHandles(); From f7755ac2f2fbe22ff5d2a8b88873c31a27b687ef Mon Sep 17 00:00:00 2001 From: etanb Date: Fri, 30 Aug 2024 10:17:08 -0700 Subject: [PATCH 09/40] PR comment fix --- frontend-react/e2e/helpers/utils.ts | 2 +- .../authenticated/daily-data-page-user-flow.spec.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend-react/e2e/helpers/utils.ts b/frontend-react/e2e/helpers/utils.ts index 384cfdcf438..eaa20ef8e30 100644 --- a/frontend-react/e2e/helpers/utils.ts +++ b/frontend-react/e2e/helpers/utils.ts @@ -140,7 +140,7 @@ export function toDateWithTime(date: string, time?: string) { return toDateTime; } -export function removeTimestamp(filename: string) { +export function removeDateTime(filename: string) { // Example string: "co.yml-beb0c9d9-ca1f-4af3-853e-0aba61541f66-20240829191221.hl7" // Find the last hyphen and the last dot in the string const lastHyphenIndex = filename.lastIndexOf("-"); diff --git a/frontend-react/e2e/spec/chromium-only/authenticated/daily-data-page-user-flow.spec.ts b/frontend-react/e2e/spec/chromium-only/authenticated/daily-data-page-user-flow.spec.ts index 8b952d433df..cfb01acbe8c 100644 --- a/frontend-react/e2e/spec/chromium-only/authenticated/daily-data-page-user-flow.spec.ts +++ b/frontend-react/e2e/spec/chromium-only/authenticated/daily-data-page-user-flow.spec.ts @@ -4,7 +4,7 @@ import { format } from "date-fns"; import fs from "node:fs"; import { expectTableColumnValues, - removeTimestamp, + removeDateTime, tableColumnDateTimeInRange, tableDataCellValue, tableRows, @@ -294,7 +294,7 @@ test.describe( // Filename search is currently broken and being tracked // in ticket #15644 const fileName = await tableDataCellValue(dailyDataPage.page, 0, 4); - await searchInput(dailyDataPage.page).fill(removeTimestamp(fileName)); + await searchInput(dailyDataPage.page).fill(removeDateTime(fileName)); await searchButton(dailyDataPage.page).click(); await dailyDataPage.page.locator(".usa-table tbody").waitFor({ state: "visible" }); @@ -387,7 +387,7 @@ test.describe( const download = await downloadProm; // assert filename - expect(removeTimestamp(download.suggestedFilename())).toEqual(removeTimestamp(fileName)); + expect(removeDateTime(download.suggestedFilename())).toEqual(removeDateTime(fileName)); // get and assert stats expect((await fs.promises.stat(await download.path())).size).toBeGreaterThan(200); From 3563a1c578d2ea9d11f1e87712d1f3d5f0cff021 Mon Sep 17 00:00:00 2001 From: etanb Date: Fri, 30 Aug 2024 11:59:34 -0700 Subject: [PATCH 10/40] lint fix --- .../e2e/spec/chromium-only/public-pages-link-check.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend-react/e2e/spec/chromium-only/public-pages-link-check.spec.ts b/frontend-react/e2e/spec/chromium-only/public-pages-link-check.spec.ts index 5902eb33851..a53fdbc0b7a 100644 --- a/frontend-react/e2e/spec/chromium-only/public-pages-link-check.spec.ts +++ b/frontend-react/e2e/spec/chromium-only/public-pages-link-check.spec.ts @@ -1,4 +1,4 @@ -/* eslint-disable playwright/no-conditional-in-test */ +/* eslint-disable playwright/no-networkidle */ import axios, { AxiosError } from "axios"; import * as fs from "fs"; import { test as baseTest, expect } from "../../test"; From bde68c5d846f40f4db09f4eb1a971e84e3a2bdd9 Mon Sep 17 00:00:00 2001 From: Denis Krylov Date: Fri, 30 Aug 2024 16:03:18 -0400 Subject: [PATCH 11/40] Modified export_cost_data.yml GHA workflow to add costs by resource to the export. --- .github/actions/az-cost/action.yml | 12 +++++++++- .github/workflows/export_cost_data.yml | 31 +++++++++++++++++++++++--- 2 files changed, 39 insertions(+), 4 deletions(-) diff --git a/.github/actions/az-cost/action.yml b/.github/actions/az-cost/action.yml index 5cafdf639fb..b1520c52d78 100644 --- a/.github/actions/az-cost/action.yml +++ b/.github/actions/az-cost/action.yml @@ -38,6 +38,16 @@ runs: dotnet azure-cost accumulatedCost -g ${{ inputs.rg }} -t custom --from $(date --date='${{ inputs.days_ago }} days ago' '+%m/%d/%Y') --to $(date --date='1 days ago' '+%m/%d/%Y') -o csv >> $GITHUB_OUTPUT echo "$EOF" >> $GITHUB_OUTPUT + - name: Run azure-cost-cli for daily totals by resource + if: inputs.total_format == 'dailyByResource' + id: run_azure_cost_daily_by_resource + shell: bash + run: | + EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64) + echo "RESULT<<$EOF" >> $GITHUB_OUTPUT + dotnet azure-cost dailyCosts -g ${{ inputs.rg }} -t custom --from $(date --date='${{ inputs.days_ago }} days ago' '+%m/%d/%Y') --to $(date --date='1 days ago' '+%m/%d/%Y') -o csv --exclude-meter-details --dimension ConsumedService >> $GITHUB_OUTPUT + echo "$EOF" >> $GITHUB_OUTPUT + - name: Run azure-cost-cli for total if: inputs.total_format == 'summary' id: run_azure_cost_summary @@ -52,5 +62,5 @@ runs: run: | EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64) echo "RESULT<<$EOF" >> $GITHUB_OUTPUT - echo -e "${{ steps.run_azure_cost_daily.outputs.RESULT }}${{ steps.run_azure_cost_summary.outputs.RESULT }}" >> $GITHUB_OUTPUT + echo -e "${{ steps.run_azure_cost_daily.outputs.RESULT }}${{ steps.run_azure_cost_daily_by_resource.outputs.RESULT }}${{ steps.run_azure_cost_summary.outputs.RESULT }}" >> $GITHUB_OUTPUT echo "$EOF" >> $GITHUB_OUTPUT \ No newline at end of file diff --git a/.github/workflows/export_cost_data.yml b/.github/workflows/export_cost_data.yml index 7609207fb42..fe3fcab9ac9 100644 --- a/.github/workflows/export_cost_data.yml +++ b/.github/workflows/export_cost_data.yml @@ -29,8 +29,21 @@ jobs: run: | echo "${{ steps.az-cost.outputs.result }}" > costs_raw.csv touch costs.csv - sed 's/\r//' costs_raw.csv > costs.csv - cat ./costs.csv + sed 's/\r//' costs_raw.csv > costs_total.csv + cat ./costs_total.csv + - name: Run Az Cost CLI By Resource + id: az-cost-by-resource + uses: ./.github/actions/az-cost + with: + rg: prime-data-hub-prod + days_ago: 180 + total_format: dailyByResource + - name: Get Az Cost Result By Resource + run: | + echo "${{ steps.az-cost-by-resource.outputs.result }}" > costs_by_res_raw.csv + touch costs_by_res.csv + sed 's/\r//' costs_by_res_raw.csv > costs_by_res.csv + cat ./costs_by_res.csv - name: Get runner ip id: runner_ip uses: ./.github/actions/runner-ip @@ -60,7 +73,19 @@ jobs: Currency varchar(3) ); TRUNCATE Azure_Costs; - \copy Azure_Costs (Date, Cost, CostUsd, Currency) FROM './costs.csv' WITH DELIMITER ',' CSV HEADER; + \copy Azure_Costs (Date, Cost, CostUsd, Currency) FROM './costs_total.csv' WITH DELIMITER ',' CSV HEADER; + + CREATE TABLE IF NOT EXISTS Azure_Resource_Costs ( + Date date, + Name varchar(128), + Cost NUMERIC(13, 8), + CostUsd NUMERIC(13, 8), + Currency varchar(3), + Tags varchar(256) + ); + TRUNCATE Azure_Resource_Costs; + \copy Azure_Resource_Costs (Date, Name, Cost, CostUsd, Currency, Tags) FROM './costs_by_res.csv' WITH DELIMITER ',' CSV HEADER; + # Remove runner db access - name: Remove DB access if: always() && steps.add-db-access.outcome == 'success' From ea415c73f8db05c99123eb7b9b60cdc01e9bf9f7 Mon Sep 17 00:00:00 2001 From: Denis Krylov Date: Fri, 30 Aug 2024 16:06:12 -0400 Subject: [PATCH 12/40] Added trigger on: push: branches: - dkrylov/azure_resource_costs --- .github/workflows/export_cost_data.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/export_cost_data.yml b/.github/workflows/export_cost_data.yml index fe3fcab9ac9..8c06b54548a 100644 --- a/.github/workflows/export_cost_data.yml +++ b/.github/workflows/export_cost_data.yml @@ -1,10 +1,9 @@ name: Export Cost Data on: - schedule: - # The workflow runs every day at 3PM - - cron: "0 19 * * *" #UTC-5 - + push: + branches: + - dkrylov/azure_resource_costs jobs: export_cost_data: name: Export Azure Cost Data to Storage From 46b9706b17179ed6d9fc3bc952508286dcaab762 Mon Sep 17 00:00:00 2001 From: Denis Krylov Date: Fri, 30 Aug 2024 16:08:38 -0400 Subject: [PATCH 13/40] Added `dotnet new tool-manifest --force` --- .github/actions/az-cost/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/az-cost/action.yml b/.github/actions/az-cost/action.yml index b1520c52d78..ce0d8330fbc 100644 --- a/.github/actions/az-cost/action.yml +++ b/.github/actions/az-cost/action.yml @@ -25,7 +25,7 @@ runs: - name: Install azure-cost-cli shell: bash run: | - dotnet new tool-manifest + dotnet new tool-manifest --force dotnet tool install azure-cost-cli - name: Run azure-cost-cli for daily totals From 373d5c661b4f85d4143a64ec82ccceeb3a4b31a3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 3 Sep 2024 08:40:50 -0400 Subject: [PATCH 14/40] Bump tj-actions/changed-files from 45.0.0 to 45.0.1 (#15756) Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 45.0.0 to 45.0.1. - [Release notes](https://github.com/tj-actions/changed-files/releases) - [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md) - [Commits](https://github.com/tj-actions/changed-files/compare/40853de9f8ce2d6cfdc73c1b96f14e22ba44aec4...e9772d140489982e0e3704fea5ee93d536f1e275) --- updated-dependencies: - dependency-name: tj-actions/changed-files dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/sonarcloud.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 9a16052d958..29ae17f7afc 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -52,7 +52,7 @@ jobs: - name: "Get changed files with yaml" id: changed-files-yaml - uses: tj-actions/changed-files@40853de9f8ce2d6cfdc73c1b96f14e22ba44aec4 + uses: tj-actions/changed-files@e9772d140489982e0e3704fea5ee93d536f1e275 with: files_yaml: | frontend: From 7b48c989559dee46d5265f6d80b69add82a2ab79 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 3 Sep 2024 12:44:17 +0000 Subject: [PATCH 15/40] Bump bridgecrewio/checkov-action from 12.2860.0 to 12.2863.0 (#15757) Bumps [bridgecrewio/checkov-action](https://github.com/bridgecrewio/checkov-action) from 12.2860.0 to 12.2863.0. - [Release notes](https://github.com/bridgecrewio/checkov-action/releases) - [Commits](https://github.com/bridgecrewio/checkov-action/compare/1b813e8f72afe2b6263a6ea10c873707e21ebe44...37f985492b07e3c4985330361b4c8b299437d05e) --- updated-dependencies: - dependency-name: bridgecrewio/checkov-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/validate_terraform.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate_terraform.yml b/.github/workflows/validate_terraform.yml index 14bdbf2dd74..25751c2f3a7 100644 --- a/.github/workflows/validate_terraform.yml +++ b/.github/workflows/validate_terraform.yml @@ -48,7 +48,7 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - name: Run Checkov action - uses: bridgecrewio/checkov-action@1b813e8f72afe2b6263a6ea10c873707e21ebe44 + uses: bridgecrewio/checkov-action@37f985492b07e3c4985330361b4c8b299437d05e with: directory: operations/app/terraform skip_check: CKV_AZURE_139,CKV_AZURE_137,CKV_AZURE_103,CKV_AZURE_104,CKV_AZURE_102,CKV_AZURE_130,CKV_AZURE_121,CKV_AZURE_67,CKV_AZURE_56,CKV_AZURE_17,CKV_AZURE_63,CKV_AZURE_18,CKV_AZURE_88,CKV_AZURE_65,CKV_AZURE_13,CKV_AZURE_66,CKV_AZURE_33,CKV_AZURE_35,CKV_AZURE_36,CKV_AZURE_98,CKV2_AZURE_1,CKV2_AZURE_15,CKV2_AZURE_21,CKV_AZURE_213,CKV_AZURE_59,CKV2_AZURE_33,CKV2_AZURE_32,CKV2_AZURE_28,CKV_AZURE_206,CKV_AZURE_42,CKV_AZURE_110,CKV_AZURE_109,CKV_AZURE_166,CKV2_AZURE_38,CKV2_AZURE_40,CKV2_AZURE_41,CKV_AZURE_235 From 687391a4787d737e0bfa0b5d8a93af858feeafdf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 3 Sep 2024 10:07:58 -0400 Subject: [PATCH 16/40] Bump actions/upload-artifact from 4.3.6 to 4.4.0 (#15755) Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.3.6 to 4.4.0. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/834a144ee995460fba8ed112a2fc961b36a5ec5a...50769540e7f4bd5e21e526ee35c689e35e0d6874) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/frontend_ci.yml | 4 ++-- .github/workflows/restore_databases.yml | 2 +- .github/workflows/start_frontend_smoke.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/frontend_ci.yml b/.github/workflows/frontend_ci.yml index b0ba5bae38a..b1f93c6bb21 100644 --- a/.github/workflows/frontend_ci.yml +++ b/.github/workflows/frontend_ci.yml @@ -114,7 +114,7 @@ jobs: run: yarn run test:e2e --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} - name: Upload blob report to GitHub Actions Artifacts if: ${{ !cancelled() }} - uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a + uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 with: name: frontend-e2e-data--shard-${{ matrix.shardIndex }} path: frontend-react/e2e-data @@ -170,7 +170,7 @@ jobs: - name: Merge folders run: mv ./playwright-report/* ./e2e-data/report && rmdir ./playwright-report && rm ./e2e-data/report/*.zip && rm -rf ./e2e-data/report/resources - name: Upload final e2e-data - uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a + uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 with: name: frontend-e2e-data--attempt-${{ github.run_attempt }} path: frontend-react/e2e-data diff --git a/.github/workflows/restore_databases.yml b/.github/workflows/restore_databases.yml index 9d79d50a6e1..2f71e9fd54e 100644 --- a/.github/workflows/restore_databases.yml +++ b/.github/workflows/restore_databases.yml @@ -311,7 +311,7 @@ jobs: if: | needs.pre_job.outputs.sink_env_name != 'prod' && (${{ matrix.db }} == 'prime_data_hub' || ${{ matrix.db }} == 'prime_data_hub_candidate') - uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a + uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 with: name: clean_output_${{ matrix.db }} path: clean_output_${{ matrix.db }}.html diff --git a/.github/workflows/start_frontend_smoke.yml b/.github/workflows/start_frontend_smoke.yml index 1353c1ed5b8..868af24d535 100644 --- a/.github/workflows/start_frontend_smoke.yml +++ b/.github/workflows/start_frontend_smoke.yml @@ -41,7 +41,7 @@ jobs: echo "::endgroup::" - name: "Store E2E Results" if: ${{ !cancelled() }} - uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a + uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 with: name: smoke-data path: frontend-react/e2e-data/ From beea8daca04c3ba4694b6cdce8e561da8bc9deb7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 3 Sep 2024 14:18:22 +0000 Subject: [PATCH 17/40] Bump actions/upload-artifact in /.github/actions/build-frontend (#15758) Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.3.6 to 4.4.0. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/834a144ee995460fba8ed112a2fc961b36a5ec5a...50769540e7f4bd5e21e526ee35c689e35e0d6874) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/actions/build-frontend/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/build-frontend/action.yml b/.github/actions/build-frontend/action.yml index 5521be573c3..6e12c24b089 100644 --- a/.github/actions/build-frontend/action.yml +++ b/.github/actions/build-frontend/action.yml @@ -113,7 +113,7 @@ runs: shell: bash - name: Store E2E Results - uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a + uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 if: always() && ${{ !startsWith(inputs.env-name, 'trialfrontend') }} with: name: e2e-data @@ -182,7 +182,7 @@ runs: run: tar -czf static-website-react.tar.gz build - name: Upload frontend artifact - uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a + uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 with: name: static-website-react-${{ inputs.version }} path: frontend-react/static-website-react.tar.gz From d6391f856d04e57ec77899f19d8c95f3050e7ba8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 3 Sep 2024 15:03:21 +0000 Subject: [PATCH 18/40] Bump actions/upload-artifact in /.github/actions/build-backend (#15759) Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.3.6 to 4.4.0. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/834a144ee995460fba8ed112a2fc961b36a5ec5a...50769540e7f4bd5e21e526ee35c689e35e0d6874) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/actions/build-backend/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/build-backend/action.yml b/.github/actions/build-backend/action.yml index aa3e5d95152..bc43dab3a6f 100644 --- a/.github/actions/build-backend/action.yml +++ b/.github/actions/build-backend/action.yml @@ -194,7 +194,7 @@ runs: - name: Upload Artifact if: inputs.upload-build == 'true' - uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a + uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 with: name: prime-router-build-${{ inputs.version }} path: prime-router/prime-router-build.tar.gz From ec72d7358be2de3a716b5d7f166438cf49cd7327 Mon Sep 17 00:00:00 2001 From: Denis Krylov Date: Tue, 3 Sep 2024 14:54:57 -0400 Subject: [PATCH 19/40] Added matrix config to export_cost_data.yml. --- .github/workflows/export_cost_data.yml | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/.github/workflows/export_cost_data.yml b/.github/workflows/export_cost_data.yml index 8c06b54548a..f3be7bb84d0 100644 --- a/.github/workflows/export_cost_data.yml +++ b/.github/workflows/export_cost_data.yml @@ -7,6 +7,14 @@ on: jobs: export_cost_data: name: Export Azure Cost Data to Storage + strategy: + fail-fast: false + matrix: + include: + - rg: "prime-data-hub-staging" + env: "staging" + pwd_key: "POSTGRESQL_STAGING_PWD" + db: "pdhstaging-pgsql" runs-on: ubuntu-latest steps: - name: "Check out changes" @@ -14,14 +22,14 @@ jobs: - name: Connect to VPN and login to Azure uses: ./.github/actions/vpn-azure with: - env-name: prod + env-name: ${{ matrix.env }} sp-creds: ${{ secrets.SERVICE_PRINCIPAL_CREDS }} tf-auth: false - name: Run Az Cost CLI id: az-cost uses: ./.github/actions/az-cost with: - rg: prime-data-hub-prod + rg: ${{ matrix.rg }} days_ago: 180 total_format: daily - name: Get Az Cost Result @@ -34,7 +42,7 @@ jobs: id: az-cost-by-resource uses: ./.github/actions/az-cost with: - rg: prime-data-hub-prod + rg: ${{ matrix.rg }} days_ago: 180 total_format: dailyByResource - name: Get Az Cost Result By Resource @@ -51,15 +59,15 @@ jobs: id: add-db-access shell: bash run: | - az postgres server update -g prime-data-hub-prod -n pdhprod-pgsql --public-network-access "Enabled" + az postgres server update -g ${{ matrix.rg }} -n ${{ matrix.db }} --public-network-access "Enabled" sleep 10; - az postgres server firewall-rule create -g prime-data-hub-prod -s pdhprod-pgsql -n github_actions_runner \ + az postgres server firewall-rule create -g ${{ matrix.rg }} -s ${{ matrix.db }} -n github_actions_runner \ --start-ip-address ${{ steps.runner_ip.outputs.ip-address }} --end-ip-address ${{ steps.runner_ip.outputs.ip-address }} - name: Store cost data in DB uses: ./.github/actions/db-query with: - pass: ${{ secrets['POSTGRESQL_PROD_PWD'] }} - host: pdhprod-pgsql + pass: ${{ secrets[matrix.pwd_key] }} + host: ${{ matrix.db }} port: 5432 user: prime database: prime_data_hub @@ -90,6 +98,6 @@ jobs: if: always() && steps.add-db-access.outcome == 'success' shell: bash run: | - az postgres server firewall-rule delete -g prime-data-hub-prod -s pdhprod-pgsql -n github_actions_runner --yes + az postgres server firewall-rule delete -g ${{ matrix.rg }} -s ${{ matrix.db }} -n github_actions_runner --yes sleep 10; - az postgres server update -g prime-data-hub-prod -n pdhprod-pgsql --public-network-access "Disabled" + az postgres server update -g ${{ matrix.rg }} -n ${{ matrix.db }} --public-network-access "Disabled" From ae8fd5c69cdad168ac57cb2697b2fd051510c5d2 Mon Sep 17 00:00:00 2001 From: Denis Krylov Date: Tue, 3 Sep 2024 15:02:24 -0400 Subject: [PATCH 20/40] Added a retry to remove-db-access. --- .github/workflows/export_cost_data.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/export_cost_data.yml b/.github/workflows/export_cost_data.yml index f3be7bb84d0..a0c557e2cf6 100644 --- a/.github/workflows/export_cost_data.yml +++ b/.github/workflows/export_cost_data.yml @@ -96,6 +96,9 @@ jobs: # Remove runner db access - name: Remove DB access if: always() && steps.add-db-access.outcome == 'success' + uses: nick-fields/retry@v3 + max_attempts: 3 + retry_wait_seconds: 30 shell: bash run: | az postgres server firewall-rule delete -g ${{ matrix.rg }} -s ${{ matrix.db }} -n github_actions_runner --yes From e7ad02bddac2ffc3c9515115dff31759e79ab8db Mon Sep 17 00:00:00 2001 From: Denis Krylov Date: Tue, 3 Sep 2024 15:03:32 -0400 Subject: [PATCH 21/40] Revert "Added a retry to remove-db-access." This reverts commit ae8fd5c69cdad168ac57cb2697b2fd051510c5d2. --- .github/workflows/export_cost_data.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/export_cost_data.yml b/.github/workflows/export_cost_data.yml index a0c557e2cf6..f3be7bb84d0 100644 --- a/.github/workflows/export_cost_data.yml +++ b/.github/workflows/export_cost_data.yml @@ -96,9 +96,6 @@ jobs: # Remove runner db access - name: Remove DB access if: always() && steps.add-db-access.outcome == 'success' - uses: nick-fields/retry@v3 - max_attempts: 3 - retry_wait_seconds: 30 shell: bash run: | az postgres server firewall-rule delete -g ${{ matrix.rg }} -s ${{ matrix.db }} -n github_actions_runner --yes From bccb517b5bba357a764f68d8f054ee5a9f5d2473 Mon Sep 17 00:00:00 2001 From: Denis Krylov Date: Tue, 3 Sep 2024 15:13:53 -0400 Subject: [PATCH 22/40] Added Prod to the matrix. --- .github/workflows/export_cost_data.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/export_cost_data.yml b/.github/workflows/export_cost_data.yml index f3be7bb84d0..252efcd9dcc 100644 --- a/.github/workflows/export_cost_data.yml +++ b/.github/workflows/export_cost_data.yml @@ -15,6 +15,10 @@ jobs: env: "staging" pwd_key: "POSTGRESQL_STAGING_PWD" db: "pdhstaging-pgsql" + - rg: "prime-data-hub-prod" + env: "prod" + pwd_key: "POSTGRESQL_PROD_PWD" + db: "pdhprod-pgsql" runs-on: ubuntu-latest steps: - name: "Check out changes" From 25df8644e0493135f2e112176a53bcea6fedea1c Mon Sep 17 00:00:00 2001 From: Denis Krylov Date: Tue, 3 Sep 2024 15:43:48 -0400 Subject: [PATCH 23/40] The workflow runs every day at 3PM --- .github/workflows/export_cost_data.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/export_cost_data.yml b/.github/workflows/export_cost_data.yml index 252efcd9dcc..b7f451d3b25 100644 --- a/.github/workflows/export_cost_data.yml +++ b/.github/workflows/export_cost_data.yml @@ -1,9 +1,9 @@ name: Export Cost Data on: - push: - branches: - - dkrylov/azure_resource_costs + schedule: + # The workflow runs every day at 3PM + - cron: "0 19 * * *" #UTC-5 jobs: export_cost_data: name: Export Azure Cost Data to Storage From 448cf5d5433eba6c65a8b4ed5de9498610d4cb2e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 4 Sep 2024 10:54:05 -0400 Subject: [PATCH 24/40] Bump bridgecrewio/checkov-action from 12.2863.0 to 12.2864.0 (#15768) Bumps [bridgecrewio/checkov-action](https://github.com/bridgecrewio/checkov-action) from 12.2863.0 to 12.2864.0. - [Release notes](https://github.com/bridgecrewio/checkov-action/releases) - [Commits](https://github.com/bridgecrewio/checkov-action/compare/37f985492b07e3c4985330361b4c8b299437d05e...c9421864e014ef6b8acfa35d0bf3c7e52c13ab10) --- updated-dependencies: - dependency-name: bridgecrewio/checkov-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/validate_terraform.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate_terraform.yml b/.github/workflows/validate_terraform.yml index 25751c2f3a7..07e6b3068bd 100644 --- a/.github/workflows/validate_terraform.yml +++ b/.github/workflows/validate_terraform.yml @@ -48,7 +48,7 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - name: Run Checkov action - uses: bridgecrewio/checkov-action@37f985492b07e3c4985330361b4c8b299437d05e + uses: bridgecrewio/checkov-action@c9421864e014ef6b8acfa35d0bf3c7e52c13ab10 with: directory: operations/app/terraform skip_check: CKV_AZURE_139,CKV_AZURE_137,CKV_AZURE_103,CKV_AZURE_104,CKV_AZURE_102,CKV_AZURE_130,CKV_AZURE_121,CKV_AZURE_67,CKV_AZURE_56,CKV_AZURE_17,CKV_AZURE_63,CKV_AZURE_18,CKV_AZURE_88,CKV_AZURE_65,CKV_AZURE_13,CKV_AZURE_66,CKV_AZURE_33,CKV_AZURE_35,CKV_AZURE_36,CKV_AZURE_98,CKV2_AZURE_1,CKV2_AZURE_15,CKV2_AZURE_21,CKV_AZURE_213,CKV_AZURE_59,CKV2_AZURE_33,CKV2_AZURE_32,CKV2_AZURE_28,CKV_AZURE_206,CKV_AZURE_42,CKV_AZURE_110,CKV_AZURE_109,CKV_AZURE_166,CKV2_AZURE_38,CKV2_AZURE_40,CKV2_AZURE_41,CKV_AZURE_235 From dc601230f767c5376a176769713d598045e26e04 Mon Sep 17 00:00:00 2001 From: Stephen Nesman <94193373+snesm@users.noreply.github.com> Date: Wed, 4 Sep 2024 11:22:32 -0400 Subject: [PATCH 25/40] Add submissions action to dependabot.yml (#15769) --- .github/dependabot.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9f8aaca041a..e96977a7103 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -115,6 +115,10 @@ updates: directory: "/.github/actions/az-cost" schedule: interval: "daily" + - package-ecosystem: "github-actions" + directory: "/.github/actions/build-submissions" + schedule: + interval: "daily" # Frontend - package-ecosystem: "npm" From 16a107bdfc1f54cef668d191a29a72e3af36a166 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 4 Sep 2024 11:26:22 -0400 Subject: [PATCH 26/40] Bump gradle/actions in /.github/actions/build-submissions (#15772) Bumps [gradle/actions](https://github.com/gradle/actions) from 4.0.0 to 4.0.1. - [Release notes](https://github.com/gradle/actions/releases) - [Commits](https://github.com/gradle/actions/compare/af1da67850ed9a4cedd57bfd976089dd991e2582...16bf8bc8fe830fa669c3c9f914d3eb147c629707) --- updated-dependencies: - dependency-name: gradle/actions dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/actions/build-submissions/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/build-submissions/action.yml b/.github/actions/build-submissions/action.yml index 630c1e46f85..f189ce652f6 100644 --- a/.github/actions/build-submissions/action.yml +++ b/.github/actions/build-submissions/action.yml @@ -39,7 +39,7 @@ runs: distribution: "temurin" cache: "gradle" - - uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 + - uses: gradle/actions/setup-gradle@16bf8bc8fe830fa669c3c9f914d3eb147c629707 - name: Lint if: inputs.run-integration-tests == 'true' From 9e4a97c095b4e1f35ea194c4732552039d2a36b7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 4 Sep 2024 16:45:20 +0000 Subject: [PATCH 27/40] Bump EnricoMi/publish-unit-test-result-action (#15771) Bumps [EnricoMi/publish-unit-test-result-action](https://github.com/enricomi/publish-unit-test-result-action) from 2.17.0 to 2.17.1. - [Release notes](https://github.com/enricomi/publish-unit-test-result-action/releases) - [Commits](https://github.com/enricomi/publish-unit-test-result-action/compare/567cc7f8dcea3eba5da355f6ebc95663310d8a07...82082dac68ad6a19d980f8ce817e108b9f496c2a) --- updated-dependencies: - dependency-name: EnricoMi/publish-unit-test-result-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/actions/build-backend/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/build-backend/action.yml b/.github/actions/build-backend/action.yml index bc43dab3a6f..7f2f489d485 100644 --- a/.github/actions/build-backend/action.yml +++ b/.github/actions/build-backend/action.yml @@ -100,7 +100,7 @@ runs: shell: bash - name: Publish Unit Test Results - uses: EnricoMi/publish-unit-test-result-action/linux@567cc7f8dcea3eba5da355f6ebc95663310d8a07 + uses: EnricoMi/publish-unit-test-result-action/linux@82082dac68ad6a19d980f8ce817e108b9f496c2a if: > always() && github.event.sender.login != 'dependabot[bot]' && @@ -151,7 +151,7 @@ runs: shell: bash - name: Publish Integration Test Results - uses: EnricoMi/publish-unit-test-result-action/linux@567cc7f8dcea3eba5da355f6ebc95663310d8a07 + uses: EnricoMi/publish-unit-test-result-action/linux@82082dac68ad6a19d980f8ce817e108b9f496c2a if: > always() && github.event.sender.login != 'dependabot[bot]' && From 11474dbb52e2474c87cb5a560b18c59ce28bf173 Mon Sep 17 00:00:00 2001 From: victor-chaparro <117938212+victor-chaparro@users.noreply.github.com> Date: Wed, 4 Sep 2024 11:44:22 -0600 Subject: [PATCH 28/40] Fixes a bug while truncating OBX-23-1. (#15770) --- .../hl7_mapping/receivers/STLTs/CA/ca-observation-result.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prime-router/src/main/resources/metadata/hl7_mapping/receivers/STLTs/CA/ca-observation-result.yml b/prime-router/src/main/resources/metadata/hl7_mapping/receivers/STLTs/CA/ca-observation-result.yml index 619f90b28da..83241bcd518 100644 --- a/prime-router/src/main/resources/metadata/hl7_mapping/receivers/STLTs/CA/ca-observation-result.yml +++ b/prime-router/src/main/resources/metadata/hl7_mapping/receivers/STLTs/CA/ca-observation-result.yml @@ -33,7 +33,7 @@ elements: - name: ca-organization-performer-identifier resource: '%resource.performer.resolve()' - value: [ '(%resource.name + "-"+ %resource.identifier[0].value).substring(0,50) ' ] + value: [ '(%resource.name.substring(0,39) + "-"+ %resource.identifier[0].value.substring(0,10)) ' ] hl7Spec: [ '%{hl7ObservationPath}/OBX-23-1' ] - name: ca-organization-namespace-id From 5fffd7545cff8c3a19601227e2cefa7f51e77258 Mon Sep 17 00:00:00 2001 From: JessicaWNava <119880261+JessicaWNava@users.noreply.github.com> Date: Wed, 4 Sep 2024 14:52:21 -0400 Subject: [PATCH 29/40] Engagement/jessica/15545 test bank return messages api (#15736) * API to retrieve messages from the test bank --- prime-router/docs/api/reports.yml | 17 ++- .../src/main/kotlin/azure/ReportFunction.kt | 70 +++++++++++ .../test/kotlin/azure/ReportFunctionTests.kt | 112 ++++++++++++++++++ 3 files changed, 198 insertions(+), 1 deletion(-) diff --git a/prime-router/docs/api/reports.yml b/prime-router/docs/api/reports.yml index 523f6ee695e..e3475f53e21 100644 --- a/prime-router/docs/api/reports.yml +++ b/prime-router/docs/api/reports.yml @@ -102,7 +102,22 @@ paths: $ref: '#/components/schemas/Report' '500': description: Internal Server Error - + /reports/testing: + get: + summary: Gets the message from the test message bank in the environment + security: + - OAuth2: [ system_admin ] + responses: + '200': + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Report' + '500': + description: Internal Server Error # Building components: schemas: diff --git a/prime-router/src/main/kotlin/azure/ReportFunction.kt b/prime-router/src/main/kotlin/azure/ReportFunction.kt index 540ea89d3d3..99168f9f3d9 100644 --- a/prime-router/src/main/kotlin/azure/ReportFunction.kt +++ b/prime-router/src/main/kotlin/azure/ReportFunction.kt @@ -1,5 +1,8 @@ package gov.cdc.prime.router.azure +import com.fasterxml.jackson.databind.ObjectMapper +import com.fasterxml.jackson.databind.json.JsonMapper +import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule import com.google.common.net.HttpHeaders import com.microsoft.azure.functions.HttpMethod import com.microsoft.azure.functions.HttpRequestMessage @@ -19,6 +22,8 @@ import gov.cdc.prime.router.Sender import gov.cdc.prime.router.Sender.ProcessingType import gov.cdc.prime.router.SubmissionReceiver 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.observability.event.IReportStreamEventService import gov.cdc.prime.router.azure.observability.event.ReportStreamEventName @@ -28,6 +33,7 @@ import gov.cdc.prime.router.common.AzureHttpUtils.getSenderIP import gov.cdc.prime.router.common.JacksonMapperUtilities import gov.cdc.prime.router.history.azure.SubmissionsFacade 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 org.apache.logging.log4j.kotlin.Logging @@ -85,6 +91,70 @@ class ReportFunction( } } + /** + * GET messages from test bank + * + * @see ../../../docs/api/reports.yml + */ + @FunctionName("getMessagesFromTestBank") + fun getMessagesFromTestBank( + @HttpTrigger( + name = "getMessagesFromTestBank", + methods = [HttpMethod.GET], + authLevel = AuthorizationLevel.ANONYMOUS, + route = "reports/testing" + ) request: HttpRequestMessage, + ): HttpResponseMessage { + val claims = AuthenticatedClaims.authenticate(request) + if (claims != null && claims.authorized(setOf(Scope.primeAdminScope))) { + return processGetMessageFromTestBankRequest(request) + } + return HttpUtilities.unauthorizedResponse(request) + } + + /** + * Moved the logic to a separate function for testing purposes + */ + fun processGetMessageFromTestBankRequest( + request: HttpRequestMessage, + blobAccess: BlobAccess.Companion = BlobAccess, + defaultBlobMetadata: BlobAccess.BlobContainerMetadata = BlobAccess.defaultBlobMetadata, + ): HttpResponseMessage { + return try { + val updatedBlobMetadata = defaultBlobMetadata.copy(containerName = "test-bank") + val results = blobAccess.listBlobs("", updatedBlobMetadata) + val reports = mutableListOf() + val sourceContainer = getBlobContainer(updatedBlobMetadata) + results.forEach { currentResult -> + if (currentResult.currentBlobItem.name.endsWith(".fhir")) { + val sourceBlobClient = sourceContainer.getBlobClient(currentResult.currentBlobItem.name) + val data = sourceBlobClient.downloadContent() + + val currentTestReportInfo = TestReportInfo( + currentResult.currentBlobItem.properties.creationTime.toString(), + currentResult.currentBlobItem.name, + data.toString() + ) + reports.add(currentTestReportInfo) + } + } + + val mapper: ObjectMapper = JsonMapper.builder() + .addModule(JavaTimeModule()) + .build() + HttpUtilities.okResponse(request, mapper.writeValueAsString(reports) ?: "[]") + } catch (e: Exception) { + logger.error("Unable to fetch messages from test bank", e) + HttpUtilities.internalErrorResponse(request) + } + } + + class TestReportInfo( + var dateCreated: String, + var fileName: String, + var reportBody: String, + ) + /** * The Waters API, in memory of Dr. Michael Waters * (The older version of this API is "/api/reports") diff --git a/prime-router/src/test/kotlin/azure/ReportFunctionTests.kt b/prime-router/src/test/kotlin/azure/ReportFunctionTests.kt index e08577b2ad4..74ed50419a3 100644 --- a/prime-router/src/test/kotlin/azure/ReportFunctionTests.kt +++ b/prime-router/src/test/kotlin/azure/ReportFunctionTests.kt @@ -2,6 +2,15 @@ package gov.cdc.prime.router.azure import assertk.assertThat import assertk.assertions.isEqualTo +import com.azure.core.util.BinaryData +import com.azure.storage.blob.BlobClient +import com.azure.storage.blob.BlobContainerClient +import com.azure.storage.blob.BlobServiceClientBuilder +import com.azure.storage.blob.models.BlobItem +import com.azure.storage.blob.models.BlobItemProperties +import com.fasterxml.jackson.databind.ObjectMapper +import com.fasterxml.jackson.databind.json.JsonMapper +import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule import com.google.common.net.HttpHeaders import com.microsoft.azure.functions.HttpStatus import gov.cdc.prime.router.ActionLog @@ -23,6 +32,7 @@ import gov.cdc.prime.router.SubmissionReceiver import gov.cdc.prime.router.Topic import gov.cdc.prime.router.TopicReceiver import gov.cdc.prime.router.UniversalPipelineSender +import gov.cdc.prime.router.azure.BlobAccess.BlobContainerMetadata import gov.cdc.prime.router.azure.db.enums.TaskAction import gov.cdc.prime.router.history.DetailedSubmissionHistory import gov.cdc.prime.router.history.azure.SubmissionsFacade @@ -30,10 +40,12 @@ import gov.cdc.prime.router.serializers.Hl7Serializer import gov.cdc.prime.router.tokens.AuthenticatedClaims import gov.cdc.prime.router.tokens.AuthenticationType import gov.cdc.prime.router.unittest.UnitTestUtils +import io.ktor.utils.io.core.toByteArray import io.mockk.clearAllMocks import io.mockk.every import io.mockk.mockk import io.mockk.mockkClass +import io.mockk.mockkConstructor import io.mockk.mockkObject import io.mockk.spyk import io.mockk.verify @@ -172,6 +184,11 @@ class ReportFunctionTests { "05D2222542&ISO||445297001^Swab of internal nose^SCT^^^^2.67||||53342003^Internal nose structure" + " (body structure)^SCT^^^^2020-09-01|||||||||202108020000-0500|20210802000006.0000-0500" + @Suppress("ktlint:standard:max-line-length") + val fhirReport = """{"resourceType":"Bundle","id":"1667861767830636000.7db38d22-b713-49fc-abfa-2edba9c12347", + |"meta":{"lastUpdated":"2022-11-07T22:56:07.832+00:00"},"identifier":{"value":"1234d1d1-95fe-462c-8ac6-46728dba581c"},"type":"message","timestamp":"2021-08-03T13:15:11.015+00:00","entry":[{"fullUrl":"Observation/d683b42a-bf50-45e8-9fce-6c0531994f09","resource":{"resourceType":"Observation","id":"d683b42a-bf50-45e8-9fce-6c0531994f09","status":"final","code":{"coding":[{"system":"http://loinc.org","code":"80382-5"}],"text":"Flu A"},"subject":{"reference":"Patient/9473889b-b2b9-45ac-a8d8-191f27132912"},"performer":[{"reference":"Organization/1a0139b9-fc23-450b-9b6c-cd081e5cea9d"}],"valueCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"260373001","display":"Detected"}]},"interpretation":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v2-0078","code":"A","display":"Abnormal"}]}],"method":{"extension":[{"url":"https://reportstream.cdc.gov/fhir/StructureDefinition/testkit-name-id","valueCoding":{"code":"BD Veritor System for Rapid Detection of SARS-CoV-2 & Flu A+B_Becton, Dickinson and Company (BD)"}},{"url":"https://reportstream.cdc.gov/fhir/StructureDefinition/equipment-uid","valueCoding":{"code":"BD Veritor System for Rapid Detection of SARS-CoV-2 & Flu A+B_Becton, Dickinson and Company (BD)"}}],"coding":[{"display":"BD Veritor System for Rapid Detection of SARS-CoV-2 & Flu A+B*"}]},"specimen":{"reference":"Specimen/52a582e4-d389-42d0-b738-bee51cf5244d"},"device":{"reference":"Device/78dc4d98-2958-43a3-a445-76ceef8c0698"}}}]} +""".trimMargin() + private fun makeEngine(metadata: Metadata, settings: SettingsProvider): WorkflowEngine = spyk( WorkflowEngine.Builder().metadata(metadata).settingsProvider(settings).databaseAccess(accessSpy) .blobAccess(blobMock).queueAccess(queueMock).hl7Serializer(serializer).build() @@ -730,4 +747,99 @@ class ReportFunctionTests { reportFunc.extractPayloadName(mockHttpRequest) } } + + @Test + fun `Test Bank Message Retrieval - Unauthorized `() { + val metadata = UnitTestUtils.simpleMetadata + val settings = FileSettings().loadOrganizations(oneOrganization) + val actionHistory = spyk(ActionHistory(TaskAction.receive)) + mockkObject(AuthenticatedClaims) + every { AuthenticatedClaims.authenticate(any()) } returns null + + val result = ReportFunction( + makeEngine(metadata, settings), + actionHistory + ).getMessagesFromTestBank(MockHttpRequestMessage()) + assert(result.status == HttpStatus.UNAUTHORIZED) + } + + @Test + fun `Test Bank Message Retrieval - Authorized, but no reports`() { + mockkClass(BlobAccess::class) + mockkObject(BlobAccess.Companion) + every { BlobAccess.Companion.getBlobConnection(any()) } returns "testconnection" + mockkConstructor(BlobServiceClientBuilder::class) + every { anyConstructed().connectionString(any()) } answers + { BlobServiceClientBuilder() } + every { anyConstructed().buildClient() } returns mockk() + val testBlobMetadata = BlobContainerMetadata.build("testcontainer", "test") + every { BlobAccess.Companion.listBlobs("", any()) } returns listOf() + every { BlobAccess.Companion.getBlobContainer(any()) } returns mockk() + + val metadata = UnitTestUtils.simpleMetadata + val settings = FileSettings().loadOrganizations(oneOrganization) + val actionHistory = spyk(ActionHistory(TaskAction.receive)) + + val result = ReportFunction(makeEngine(metadata, settings), actionHistory).processGetMessageFromTestBankRequest( + MockHttpRequestMessage(), + BlobAccess.Companion, + testBlobMetadata + ) + assert(result.status == HttpStatus.OK) + assert(result.body == "[]") + } + + @Test + fun `Test Bank Message Retrieval - Authorized, reports`() { + mockkClass(BlobAccess::class) + mockkObject(BlobAccess.Companion) + every { BlobAccess.Companion.getBlobConnection(any()) } returns "testconnection" + mockkConstructor(BlobServiceClientBuilder::class) + every { anyConstructed().connectionString(any()) } answers + { BlobServiceClientBuilder() } + every { anyConstructed().buildClient() } returns mockk() + val testBlobMetadata = BlobContainerMetadata.build("testcontainer", "test") + val mockedBlobClient = mockkClass(BlobClient::class) + val mockedBlobContainerClient = mockkClass(BlobContainerClient::class) + every { mockedBlobContainerClient.getBlobClient(any()) } returns mockedBlobClient + every { BlobAccess.Companion.getBlobContainer(any()) } returns mockedBlobContainerClient + + val dateCreated = OffsetDateTime.now() + val fileName = UUID.randomUUID().toString() + ".fhir" + val blob1 = BlobItem() + blob1.name = fileName + blob1.properties = BlobItemProperties() + blob1.properties.creationTime = dateCreated + + every { mockedBlobClient.downloadContent() } returns BinaryData.fromBytes(fhirReport.toByteArray()) + + every { BlobAccess.Companion.listBlobs("", any()) } returns listOf( + BlobAccess.Companion.BlobItemAndPreviousVersions( + currentBlobItem = blob1, null + ) + ) + + val metadata = UnitTestUtils.simpleMetadata + val settings = FileSettings().loadOrganizations(oneOrganization) + val actionHistory = spyk(ActionHistory(TaskAction.receive)) + + val result = ReportFunction(makeEngine(metadata, settings), actionHistory).processGetMessageFromTestBankRequest( + MockHttpRequestMessage(), + BlobAccess.Companion, + testBlobMetadata + ) + assert(result.status == HttpStatus.OK) + val mapper: ObjectMapper = JsonMapper.builder() + .addModule(JavaTimeModule()) + .build() + assert( + result.body == "[" + mapper.writeValueAsString( + ReportFunction.TestReportInfo( + dateCreated.toString(), + fileName, + fhirReport + ) + ) + "]" + ) + } } \ No newline at end of file From 1cf0d93e460748659d962021b1fa333f916f0431 Mon Sep 17 00:00:00 2001 From: Joseph Andersen <12385932+jpandersen87@users.noreply.github.com> Date: Wed, 4 Sep 2024 15:09:59 -0500 Subject: [PATCH 30/40] check for hook only if frontend modified (#15787) #15786 --- .environment/frontend/run-frontend.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.environment/frontend/run-frontend.sh b/.environment/frontend/run-frontend.sh index 98be63ff919..397a13b140c 100755 --- a/.environment/frontend/run-frontend.sh +++ b/.environment/frontend/run-frontend.sh @@ -19,13 +19,12 @@ function modified_check() { cd "$DIR/../../frontend-react"; FRONTEND_DIR=$(pwd); -if [ ! -f "$HOOK_FILE" ]; then - echo "$FRONTEND_DIR/$HOOK_FILE does not exist. Please make sure you run yarn first." - exit 1 -fi - modified_check if [[ ${isModified} == 1 ]]; then + if [ ! -f "$HOOK_FILE" ]; then + echo "$FRONTEND_DIR/$HOOK_FILE does not exist. Please make sure you run yarn first." + exit 1 + fi "./$HOOK_FILE" fi RC=$? From 5ee2a42dc530ff25720d06463e370cd28cf54aac Mon Sep 17 00:00:00 2001 From: Penelope Lischer <102491809+penny-lischer@users.noreply.github.com> Date: Thu, 5 Sep 2024 09:03:59 -0700 Subject: [PATCH 31/40] Experience/e2e fixes (#15788) * skip broken e2e test --- .../daily-data-page-user-flow.spec.ts | 2 +- .../submission-history-page-user-flow.spec.ts | 45 ++++++++++++------- frontend-react/playwright.config.ts | 18 ++++---- 3 files changed, 38 insertions(+), 27 deletions(-) rename frontend-react/e2e/spec/{all => chromium-only}/authenticated/submission-history-page-user-flow.spec.ts (80%) diff --git a/frontend-react/e2e/spec/chromium-only/authenticated/daily-data-page-user-flow.spec.ts b/frontend-react/e2e/spec/chromium-only/authenticated/daily-data-page-user-flow.spec.ts index cfb01acbe8c..5950c5a4314 100644 --- a/frontend-react/e2e/spec/chromium-only/authenticated/daily-data-page-user-flow.spec.ts +++ b/frontend-react/e2e/spec/chromium-only/authenticated/daily-data-page-user-flow.spec.ts @@ -373,7 +373,7 @@ test.describe( await dailyDataPage.page.locator(".usa-table tbody").waitFor({ state: "visible" }); }); - test("downloads the file", async ({ dailyDataPage }) => { + test.skip("downloads the file", async ({ dailyDataPage }) => { await setDate(dailyDataPage.page, "#start-date", 14); await setDate(dailyDataPage.page, "#end-date", 0); diff --git a/frontend-react/e2e/spec/all/authenticated/submission-history-page-user-flow.spec.ts b/frontend-react/e2e/spec/chromium-only/authenticated/submission-history-page-user-flow.spec.ts similarity index 80% rename from frontend-react/e2e/spec/all/authenticated/submission-history-page-user-flow.spec.ts rename to frontend-react/e2e/spec/chromium-only/authenticated/submission-history-page-user-flow.spec.ts index 613836d3560..116d84beea7 100644 --- a/frontend-react/e2e/spec/all/authenticated/submission-history-page-user-flow.spec.ts +++ b/frontend-react/e2e/spec/chromium-only/authenticated/submission-history-page-user-flow.spec.ts @@ -7,7 +7,11 @@ import { import { tableColumnDateTimeInRange, tableDataCellValue, TEST_ORG_IGNORE } from "../../../helpers/utils"; import { endDate, setDate, startDate } from "../../../pages/authenticated/daily-data"; import * as submissionHistory from "../../../pages/authenticated/submission-history"; -import { openReportIdDetailPage, SubmissionHistoryPage } from "../../../pages/authenticated/submission-history"; +import { + openReportIdDetailPage, + SubmissionHistoryPage, + URL_SUBMISSION_HISTORY, +} from "../../../pages/authenticated/submission-history"; import { test as baseTest } from "../../../test"; export interface SubmissionHistoryPageFixtures { @@ -53,10 +57,6 @@ test.describe( test.describe("admin user", () => { test.use({ storageState: "e2e/.auth/admin.json" }); - test.beforeAll(({ browserName }) => { - test.skip(browserName !== "chromium"); - }); - test.describe(`${TEST_ORG_IGNORE} org`, () => { test("nav contains the 'Submission History' option", async ({ submissionHistoryPage }) => { const navItems = submissionHistoryPage.page.locator(".usa-nav li"); @@ -119,22 +119,35 @@ test.describe( }); test.describe("on 'Filter'", () => { - test("with 'From' date, 'To' date", async ({ submissionHistoryPage }) => { - const fromDate = await setDate(submissionHistoryPage.page, "#start-date", 180); + /** + * TODO: Fix. From/To fields appear to reset (and table data is unchanged) + * after clicking filter + */ + // eslint-disable-next-line playwright/no-skipped-test + test.skip("with 'From' date, 'To' date", async ({ submissionHistoryPage }) => { + const fromDate = await setDate(submissionHistoryPage.page, "#start-date", 7); const toDate = await setDate(submissionHistoryPage.page, "#end-date", 0); // Apply button is enabled await submissionHistoryPage.filterButton.click(); - await submissionHistoryPage.page.locator(".usa-table tbody").waitFor({ state: "visible" }); - - // Check that table data contains the dates/times that were selected - const areDatesInRange = await tableColumnDateTimeInRange( - submissionHistoryPage.page, - 1, - fromDate, - toDate, + const responsePromise = await submissionHistoryPage.page.waitForResponse( + (res) => res.status() === 200 && res.url().includes(URL_SUBMISSION_HISTORY), ); - expect(areDatesInRange).toBe(true); + + if (responsePromise) { + // Check that table data contains the dates/times that were selected + const areDatesInRange = await tableColumnDateTimeInRange( + submissionHistoryPage.page, + 1, + fromDate, + toDate, + ); + + // eslint-disable-next-line playwright/no-conditional-expect + expect(areDatesInRange).toBe(true); + } else { + console.error("Request not received within the timeout period"); + } }); test("on 'clear' resets the dates", async ({ submissionHistoryPage }) => { diff --git a/frontend-react/playwright.config.ts b/frontend-react/playwright.config.ts index 79ff5540a92..428b8dbb7ef 100644 --- a/frontend-react/playwright.config.ts +++ b/frontend-react/playwright.config.ts @@ -37,30 +37,28 @@ export default defineConfig({ { name: "setup", testMatch: /\w+\.setup\.ts$/ }, // We have a suite of tests that are ONLY checking links so to // save bandwidth, we only need to utilize a single browser - { - name: "chromium-only", - use: { browserName: "chromium" }, - // currently only uses public pages, uncomment when not the case - // dependencies: ["setup"], - testMatch: "spec/chromium-only/*.spec.ts", - }, { name: "chromium", use: { browserName: "chromium" }, dependencies: ["setup"], - testMatch: "spec/all/**/*.spec.ts", + testMatch: [ + "spec/all/*.spec.ts", + "spec/all/**/*.spec.ts", + "spec/chromium-only/*.spec.ts", + "spec/chromium-only/**/*.spec.ts", + ], }, { name: "firefox", use: { browserName: "firefox" }, dependencies: ["setup"], - testMatch: "spec/all/**/*.spec.ts", + testMatch: ["spec/all/*.spec.ts", "spec/all/**/*.spec.ts"], }, { name: "webkit", use: { browserName: "webkit" }, dependencies: ["setup"], - testMatch: "spec/all/**/*.spec.ts", + testMatch: ["spec/all/*.spec.ts", "spec/all/**/*.spec.ts"], }, ], webServer: { From 9c3c63ef6b8143c37d6222794cd53def4ee873e7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 5 Sep 2024 16:38:39 +0000 Subject: [PATCH 32/40] Bump actions/download-artifact from 4.1.7 to 4.1.8 (#15080) Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4.1.7 to 4.1.8. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/65a9edc5881444af0b9093a5e628f2fe47ea3b2e...fa0a91b85d4f404e444e00e005971372dc801d16) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Stephen Nesman <94193373+snesm@users.noreply.github.com> --- .github/workflows/frontend_ci.yml | 2 +- .github/workflows/release_to_github.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/frontend_ci.yml b/.github/workflows/frontend_ci.yml index b1f93c6bb21..dc05dc522e0 100644 --- a/.github/workflows/frontend_ci.yml +++ b/.github/workflows/frontend_ci.yml @@ -158,7 +158,7 @@ jobs: cache-dependency-path: frontend-react/yarn.lock - name: Download blob reports from GitHub Actions Artifacts - uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e + uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 with: path: frontend-react/e2e-data pattern: frontend-e2e-data--shard-* diff --git a/.github/workflows/release_to_github.yml b/.github/workflows/release_to_github.yml index 363c01282bc..373e48d4ccc 100644 --- a/.github/workflows/release_to_github.yml +++ b/.github/workflows/release_to_github.yml @@ -83,13 +83,13 @@ jobs: fetch-depth: 0 - name: Download router artifact if: ${{ needs.wf_vars.outputs.enable_builds == 'true' }} - uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e + uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 with: name: prime-router-build-${{ needs.wf_vars.outputs.version }} path: archives/ - name: Download frontend artifact if: ${{ needs.wf_vars.outputs.enable_builds == 'true' }} - uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e + uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 with: name: static-website-react-${{ needs.wf_vars.outputs.version }} path: archives/ From 38ee70ccb35f66128a2f3c6385e27c2e1b09a087 Mon Sep 17 00:00:00 2001 From: James Gilmore <109554461+GilmoreA6@users.noreply.github.com> Date: Thu, 5 Sep 2024 10:50:22 -0700 Subject: [PATCH 33/40] update SR transform valueset for entered-in-error (#15790) * update SR transform valueset for entered-in-error * fix CO integration test --- .../simple-report-sender-transform.yml | 2 +- .../FHIR_to_HL7/sample_CO_20240403.hl7 | 2 +- ...ample_SR_ENTEREDINERROR_20240904-0001.fhir | 715 ++++++++++++++++++ ...sample_SR_ENTEREDINERROR_20240904-0001.hl7 | 13 + .../datatests/translation-test-config.csv | 3 +- 5 files changed, 732 insertions(+), 3 deletions(-) create mode 100644 prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_SR_ENTEREDINERROR_20240904-0001.fhir create mode 100644 prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_SR_ENTEREDINERROR_20240904-0001.hl7 diff --git a/prime-router/src/main/resources/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml b/prime-router/src/main/resources/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml index b67d5ddff39..5e3ee512e1e 100644 --- a/prime-router/src/main/resources/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml +++ b/prime-router/src/main/resources/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml @@ -627,12 +627,12 @@ elements: values: partial: A corrected: C + entered-in-error: C amended: C final: F preliminary: P cancelled: X - # Observation - name: sr-observation-value-type-cwe condition: '%resource.value is CodeableConcept' diff --git a/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_CO_20240403.hl7 b/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_CO_20240403.hl7 index dab0af227b0..4bbfc29e9c5 100644 --- a/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_CO_20240403.hl7 +++ b/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_CO_20240403.hl7 @@ -1 +1 @@ -MSH|^~\&|CDC PRIME - Atlanta, Georgia (Dekalb)^2.16.840.1.114222.4.1.237821^ISO|CDC PRIME^11D2030855^CLIA|CO-ELR|CO|20240321222008+0000||ORU^R01^ORU_R01|a375227a-751f-4035-8e0b-e81322f356c9|P|2.5.1|||NE|NE|USA|UNICODE UTF-8|ENG^English^ISO||PHLabReport-NoAck^ELR_Receiver^2.16.840.1.113883.9.11^ISO SFT|Centers for Disease Control and Prevention|0.2-SNAPSHOT|PRIME ReportStream|0.2-SNAPSHOT||20240321194832+0000 PID|1||10083d1d-dc8b-4ea0-91fa-8744cf0f013b^^^Testing Lab&12D4567890&CLIA^PI^Testing Lab&12D4567890&CLIA||Wolf^Karolann^^^^^L||19700201|F||1002-5^native^^^^^2.5.1^^native|123 Main st^^Austtin^TX^78731^USA||(800) 232 4636^PRS^CP^^1^800^2324636^^^^^(800) 232 4636|^NET^Internet^wolf@test.com||||||||H^Hispanic or Latino^HL70189^^^^2.9^^Hispanic or Latino||||||||N ORC|RE|a375227a-751f-4035-8e0b-e81322f356c9^Testing Lab^12D4567890^CLIA|a375227a-751f-4035-8e0b-e81322f356c9^Testing Lab^12D4567890^CLIA|||||||||1245319599^McTester^Phil^^^^^^NPI&2.16.840.1.113883.4.6&ISO^L^^^NPI||(530) 867 5309^WPN^PH^^1^530^8675309^^^^^(530) 867 5309|20240321222008+0000||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|(530) 867 5309^WPN^PH^^1^530^8675309^^^^^(530) 867 5309|321 Ocean Drive^^Houston^TX^77001^USA OBR|1|a375227a-751f-4035-8e0b-e81322f356c9^Testing Lab^12D4567890^CLIA|a375227a-751f-4035-8e0b-e81322f356c9^Testing Lab^12D4567890^CLIA|95422-2^Influenza virus A and B and SARS-CoV-2 (COVID-19) RNA panel - Respiratory system specimen by NAA with probe detection^LN|||20240321220508+0000|||||||||1245319599^McTester^Phil^^^^^^NPI&2.16.840.1.113883.4.6&ISO^L^^^NPI|(530) 867 5309^WPN^PH^^1^530^8675309^^^^^(530) 867 5309|||||20240321222008+0000 OBX|1|CWE|92141-1^Influenza virus B RNA [Presence] in Respiratory system specimen by NAA with probe detection^LN^^^^^^Flu B||260373001^Detected^SCT|||A^Abnormal^HL70078^^^^2.7|||W|||20240321220508+0000|12D4567890^Testing Lab^CLIA||Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay_Centers for Disease Control and Prevention (CDC)^Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay^^^^^^^Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay_Centers for Disease Control and Prevention (CDC)|10190302000222^^DII|20240321222008+0000||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA NTE|1||Corrected Result: DUPLICATE_TEST OBX|2|CWE|95423-0^Influenza virus A and B and SARS-CoV-2 (COVID-19) identified in Respiratory system specimen by NAA with probe detection^LN^^^^^^COVID-19||260373001^Detected^SCT|||A^Abnormal^HL70078^^^^2.7|||W|||20240321220508+0000|12D4567890^Testing Lab^CLIA||Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay_Centers for Disease Control and Prevention (CDC)^Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay^^^^^^^Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay_Centers for Disease Control and Prevention (CDC)|10190302000222^^DII|20240321222008+0000||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA OBX|3|CWE|92142-9^Influenza virus A RNA [Presence] in Respiratory system specimen by NAA with probe detection^LN^^^^^^Flu A||260373001^Detected^SCT|||A^Abnormal^HL70078^^^^2.7|||W|||20240321220508+0000|12D4567890^Testing Lab^CLIA||Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay_Centers for Disease Control and Prevention (CDC)^Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay^^^^^^^Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay_Centers for Disease Control and Prevention (CDC)|10190302000222^^DII|20240321222008+0000||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA OBX|4|CWE|95419-8^Has symptoms related to condition of interest^LN^^^^2.69^^Has symptoms related to condition of interest||Y^Yes^HL70136|||^^^^^^2.7|||F|||20240321220508+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|||||QST OBX|5|DT|11368-8^Illness or injury onset date and time^LN^^^^^^Illness or injury onset date and time||20240321000000+0000|||^^^^^^2.7|||F|||20240321220508+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|||||QST OBX|6|CWE|82810-3^Pregnancy status^LN^^^^2.68^^Pregnancy status||60001007^Not pregnant^SCT|||^^^^^^2.7|||F|||20240321220508+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|||||QST OBX|7|CWE|95418-0^Employed in a healthcare setting^LN^^^^2.69^^Employed in a healthcare setting||Y^Yes^HL70136|||^^^^^^2.7|||F|||20240321220508+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|||||QST OBX|8|CWE|95421-4^Resides in a congregate care setting^LN^^^^2.69^^Resides in a congregate care setting||Y^Yes^HL70136|||^^^^^^2.7|||F|||20240321220508+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|||||QST OBX|9|CWE|76691-5^Gender identity^LN^^^^^^Gender identity||446151000124109^Male gender identity^SCT|||^^^^^^2.7|||F|||20240321220508+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|||||QST SPM|1|a375227a-751f-4035-8e0b-e81322f356c9&Testing Lab&12D4567890&CLIA^a375227a-751f-4035-8e0b-e81322f356c9&Testing Lab&12D4567890&CLIA||258467004^Nasopharyngeal washings^SCT^^^^2.67^^Nasopharyngeal washings||||87100004^Topography unknown (body structure)^SCT^^^^^^Topography unknown (body structure)|||||||||20240321220508+0000|20240321220508+0000 \ No newline at end of file +MSH|^~\&|CDC PRIME - Atlanta, Georgia (Dekalb)^2.16.840.1.114222.4.1.237821^ISO|CDC PRIME^11D2030855^CLIA|CO-ELR|CO|20240321222008+0000||ORU^R01^ORU_R01|a375227a-751f-4035-8e0b-e81322f356c9|P|2.5.1|||NE|NE|USA|UNICODE UTF-8|ENG^English^ISO||PHLabReport-NoAck^ELR_Receiver^2.16.840.1.113883.9.11^ISO SFT|Centers for Disease Control and Prevention|0.2-SNAPSHOT|PRIME ReportStream|0.2-SNAPSHOT||20240321194832+0000 PID|1||10083d1d-dc8b-4ea0-91fa-8744cf0f013b^^^Testing Lab&12D4567890&CLIA^PI^Testing Lab&12D4567890&CLIA||Wolf^Karolann^^^^^L||19700201|F||1002-5^native^^^^^2.5.1^^native|123 Main st^^Austtin^TX^78731^USA||(800) 232 4636^PRS^CP^^1^800^2324636^^^^^(800) 232 4636|^NET^Internet^wolf@test.com||||||||H^Hispanic or Latino^HL70189^^^^2.9^^Hispanic or Latino||||||||N ORC|RE|a375227a-751f-4035-8e0b-e81322f356c9^Testing Lab^12D4567890^CLIA|a375227a-751f-4035-8e0b-e81322f356c9^Testing Lab^12D4567890^CLIA|||||||||1245319599^McTester^Phil^^^^^^NPI&2.16.840.1.113883.4.6&ISO^L^^^NPI||(530) 867 5309^WPN^PH^^1^530^8675309^^^^^(530) 867 5309|20240321222008+0000||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|(530) 867 5309^WPN^PH^^1^530^8675309^^^^^(530) 867 5309|321 Ocean Drive^^Houston^TX^77001^USA OBR|1|a375227a-751f-4035-8e0b-e81322f356c9^Testing Lab^12D4567890^CLIA|a375227a-751f-4035-8e0b-e81322f356c9^Testing Lab^12D4567890^CLIA|95422-2^Influenza virus A and B and SARS-CoV-2 (COVID-19) RNA panel - Respiratory system specimen by NAA with probe detection^LN|||20240321220508+0000|||||||||1245319599^McTester^Phil^^^^^^NPI&2.16.840.1.113883.4.6&ISO^L^^^NPI|(530) 867 5309^WPN^PH^^1^530^8675309^^^^^(530) 867 5309|||||20240321222008+0000|||C OBX|1|CWE|92141-1^Influenza virus B RNA [Presence] in Respiratory system specimen by NAA with probe detection^LN^^^^^^Flu B||260373001^Detected^SCT|||A^Abnormal^HL70078^^^^2.7|||W|||20240321220508+0000|12D4567890^Testing Lab^CLIA||Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay_Centers for Disease Control and Prevention (CDC)^Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay^^^^^^^Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay_Centers for Disease Control and Prevention (CDC)|10190302000222^^DII|20240321222008+0000||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA NTE|1||Corrected Result: DUPLICATE_TEST OBX|2|CWE|95423-0^Influenza virus A and B and SARS-CoV-2 (COVID-19) identified in Respiratory system specimen by NAA with probe detection^LN^^^^^^COVID-19||260373001^Detected^SCT|||A^Abnormal^HL70078^^^^2.7|||W|||20240321220508+0000|12D4567890^Testing Lab^CLIA||Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay_Centers for Disease Control and Prevention (CDC)^Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay^^^^^^^Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay_Centers for Disease Control and Prevention (CDC)|10190302000222^^DII|20240321222008+0000||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA OBX|3|CWE|92142-9^Influenza virus A RNA [Presence] in Respiratory system specimen by NAA with probe detection^LN^^^^^^Flu A||260373001^Detected^SCT|||A^Abnormal^HL70078^^^^2.7|||W|||20240321220508+0000|12D4567890^Testing Lab^CLIA||Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay_Centers for Disease Control and Prevention (CDC)^Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay^^^^^^^Influenza SARS-CoV-2 (Flu SC2) Multiplex Assay_Centers for Disease Control and Prevention (CDC)|10190302000222^^DII|20240321222008+0000||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA OBX|4|CWE|95419-8^Has symptoms related to condition of interest^LN^^^^2.69^^Has symptoms related to condition of interest||Y^Yes^HL70136|||^^^^^^2.7|||F|||20240321220508+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|||||QST OBX|5|DT|11368-8^Illness or injury onset date and time^LN^^^^^^Illness or injury onset date and time||20240321000000+0000|||^^^^^^2.7|||F|||20240321220508+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|||||QST OBX|6|CWE|82810-3^Pregnancy status^LN^^^^2.68^^Pregnancy status||60001007^Not pregnant^SCT|||^^^^^^2.7|||F|||20240321220508+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|||||QST OBX|7|CWE|95418-0^Employed in a healthcare setting^LN^^^^2.69^^Employed in a healthcare setting||Y^Yes^HL70136|||^^^^^^2.7|||F|||20240321220508+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|||||QST OBX|8|CWE|95421-4^Resides in a congregate care setting^LN^^^^2.69^^Resides in a congregate care setting||Y^Yes^HL70136|||^^^^^^2.7|||F|||20240321220508+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|||||QST OBX|9|CWE|76691-5^Gender identity^LN^^^^^^Gender identity||446151000124109^Male gender identity^SCT|||^^^^^^2.7|||F|||20240321220508+0000|12D4567890^Testing Lab^CLIA||||||||Testing Lab^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Houston^TX^77001^USA|||||QST SPM|1|a375227a-751f-4035-8e0b-e81322f356c9&Testing Lab&12D4567890&CLIA^a375227a-751f-4035-8e0b-e81322f356c9&Testing Lab&12D4567890&CLIA||258467004^Nasopharyngeal washings^SCT^^^^2.67^^Nasopharyngeal washings||||87100004^Topography unknown (body structure)^SCT^^^^^^Topography unknown (body structure)|||||||||20240321220508+0000|20240321220508+0000 \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_SR_ENTEREDINERROR_20240904-0001.fhir b/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_SR_ENTEREDINERROR_20240904-0001.fhir new file mode 100644 index 00000000000..fda7c714fba --- /dev/null +++ b/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_SR_ENTEREDINERROR_20240904-0001.fhir @@ -0,0 +1,715 @@ +{ + "resourceType": "Bundle", + "identifier": { + "value": "8c66de45-62e3-453c-a5b2-90b6f90a407c" + }, + "type": "message", + "timestamp": "2024-09-04T22:36:25.330Z", + "entry": [ + { + "fullUrl": "MessageHeader/f72ed4cf-0368-4dbb-8be6-66626d96dce0", + "resource": { + "resourceType": "MessageHeader", + "id": "f72ed4cf-0368-4dbb-8be6-66626d96dce0", + "meta": { + "tag": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0103", + "code": "P", + "display": "Production" + } + ] + }, + "eventCoding": { + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "code": "R01", + "display": "ORU/ACK - Unsolicited transmission of an observation message" + }, + "destination": [ + { + "name": "PRIME ReportStream", + "endpoint": "https://prime.cdc.gov/api/reports?option=SkipInvalidItems" + } + ], + "sender": { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + }, + "source": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/software-binary-id", + "valueString": "b47c73d" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/software-install-date", + "valueInstant": "2024-09-03T19:08:30Z" + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/software-vendor-org", + "valueReference": { + "reference": "Organization/07640c5d-87cd-488b-9343-a226c5166539" + } + } + ], + "software": "PRIME SimpleReport", + "version": "b47c73d", + "endpoint": "https://simplereport.gov" + }, + "focus": [ + { + "reference": "Provenance/25ac95a9-e5df-46c3-a0b2-0d938cc13474" + }, + { + "reference": "DiagnosticReport/8c66de45-62e3-453c-a5b2-90b6f90a407c" + } + ] + } + }, + { + "fullUrl": "Provenance/25ac95a9-e5df-46c3-a0b2-0d938cc13474", + "resource": { + "resourceType": "Provenance", + "id": "25ac95a9-e5df-46c3-a0b2-0d938cc13474", + "recorded": "2024-09-04T22:36:25.330Z", + "activity": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "code": "R01", + "display": "ORU/ACK - Unsolicited transmission of an observation message" + } + ] + }, + "agent": [ + { + "who": { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + } + ] + } + }, + { + "fullUrl": "DiagnosticReport/8c66de45-62e3-453c-a5b2-90b6f90a407c", + "resource": { + "resourceType": "DiagnosticReport", + "id": "8c66de45-62e3-453c-a5b2-90b6f90a407c", + "identifier": [ + { + "value": "8c66de45-62e3-453c-a5b2-90b6f90a407c" + } + ], + "basedOn": [ + { + "reference": "ServiceRequest/c68eff18-e441-445e-8087-8c4364b6eec1" + } + ], + "status": "entered-in-error", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "94558-4" + } + ] + }, + "subject": { + "reference": "Patient/2f5d5a55-11c5-4e9f-92b0-418a0eb1fe1e" + }, + "effectiveDateTime": "2024-09-04T22:21:21+00:00", + "issued": "2024-09-04T22:36:25+00:00", + "specimen": [ + { + "reference": "Specimen/dc7af370-fc07-4b00-abc7-9b5dd87cf4d2" + } + ], + "result": [ + { + "reference": "Observation/003f9a7e-26bf-4c94-811c-ae58d96fb59b" + } + ] + } + }, + { + "fullUrl": "Patient/2f5d5a55-11c5-4e9f-92b0-418a0eb1fe1e", + "resource": { + "resourceType": "Patient", + "id": "2f5d5a55-11c5-4e9f-92b0-418a0eb1fe1e", + "extension": [ + { + "url": "http://ibm.com/fhir/cdm/StructureDefinition/local-race-cd", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-Race", + "code": "2131-1" + } + ], + "text": "other" + } + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/ethnic-group", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0189", + "code": "H", + "display": "Hispanic or Latino" + } + ], + "text": "Hispanic or Latino" + } + } + ], + "identifier": [ + { + "value": "2f5d5a55-11c5-4e9f-92b0-418a0eb1fe1e" + } + ], + "name": [ + { + "family": "Test", + "given": [ + "Patientfour" + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "(340) 555 5555", + "use": "mobile" + } + ], + "gender": "male", + "birthDate": "1994-07-28", + "address": [ + { + "line": [ + "456 SE Broadway" + ], + "city": "Fresno", + "district": "Fresno", + "state": "CA", + "postalCode": "93650", + "country": "USA" + } + ], + "managingOrganization": { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + } + }, + { + "fullUrl": "Organization/719ec8ad-cf59-405a-9832-c4065945c130", + "resource": { + "resourceType": "Organization", + "id": "719ec8ad-cf59-405a-9832-c4065945c130", + "identifier": [ + { + "use": "official", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0301", + "code": "CLIA" + } + ] + }, + "value": "12D4567890" + } + ], + "name": "Testing Lab", + "telecom": [ + { + "system": "phone", + "value": "(530) 867 5309", + "use": "work" + } + ], + "address": [ + { + "line": [ + "123 Beach Way" + ], + "city": "Denver", + "state": "CO", + "postalCode": "80210", + "country": "USA" + } + ] + } + }, + { + "fullUrl": "Practitioner/ee29ccf5-631d-4b35-a6d4-30a61c0eb8d9", + "resource": { + "resourceType": "Practitioner", + "id": "ee29ccf5-631d-4b35-a6d4-30a61c0eb8d9", + "identifier": [ + { + "system": "http://hl7.org/fhir/sid/us-npi", + "value": "1245319599" + } + ], + "name": [ + { + "family": "McTester", + "given": [ + "Phil" + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "(530) 867 5309", + "use": "work" + } + ], + "address": [ + { + "line": [ + "321 Ocean Drive" + ], + "city": "Denver", + "state": "CO", + "postalCode": "80210", + "country": "USA" + } + ] + } + }, + { + "fullUrl": "Specimen/dc7af370-fc07-4b00-abc7-9b5dd87cf4d2", + "resource": { + "resourceType": "Specimen", + "id": "dc7af370-fc07-4b00-abc7-9b5dd87cf4d2", + "identifier": [ + { + "value": "12252b87-7cf7-46bd-af95-678ad8494417" + } + ], + "type": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "258500001" + } + ], + "text": "Nasopharyngeal swab" + }, + "subject": { + "reference": "Patient/2f5d5a55-11c5-4e9f-92b0-418a0eb1fe1e" + }, + "receivedTime": "2024-09-04T22:21:21+00:00", + "collection": { + "collectedDateTime": "2024-09-04T22:21:21+00:00", + "bodySite": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "87100004" + } + ], + "text": "Topography unknown (body structure)" + } + } + } + }, + { + "fullUrl": "ServiceRequest/c68eff18-e441-445e-8087-8c4364b6eec1", + "resource": { + "resourceType": "ServiceRequest", + "id": "c68eff18-e441-445e-8087-8c4364b6eec1", + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/order-control", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0119", + "code": "RE" + } + ] + } + }, + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/order-effective-date", + "valueDateTime": "2024-09-04T22:36:21+00:00" + } + ], + "status": "completed", + "intent": "order", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "94558-4" + } + ] + }, + "subject": { + "reference": "Patient/2f5d5a55-11c5-4e9f-92b0-418a0eb1fe1e" + }, + "requester": { + "reference": "PractitionerRole/2f27ddec-3920-47f3-ba7c-060489481b13" + }, + "performer": [ + { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + ], + "supportingInfo": [ + { + "reference": "Observation/a502cd02-074d-34f5-ae58-c43b495b5b42" + }, + { + "reference": "Observation/aa396021-efb3-3a87-8425-ff09d2830706" + }, + { + "reference": "Observation/e121ce8a-f781-3c42-8c88-5e40a76a6fd0" + }, + { + "reference": "Observation/42279871-9913-3168-8363-a2be9b7c3f55" + }, + { + "reference": "Observation/32c4068c-ccb8-3b97-a7e7-5456ae20eba4" + } + ] + } + }, + { + "fullUrl": "Device/3b4282df-bb1d-495c-aecb-790d202159cc", + "resource": { + "resourceType": "Device", + "id": "3b4282df-bb1d-495c-aecb-790d202159cc", + "identifier": [ + { + "value": "No Equipment" + } + ], + "manufacturer": "Access Bio, Inc.", + "deviceName": [ + { + "name": "CareStart COVID-19 Antigen test", + "type": "model-name" + } + ] + } + }, + { + "fullUrl": "PractitionerRole/2f27ddec-3920-47f3-ba7c-060489481b13", + "resource": { + "resourceType": "PractitionerRole", + "id": "2f27ddec-3920-47f3-ba7c-060489481b13", + "practitioner": { + "reference": "Practitioner/ee29ccf5-631d-4b35-a6d4-30a61c0eb8d9" + }, + "organization": { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + } + }, + { + "fullUrl": "Organization/07640c5d-87cd-488b-9343-a226c5166539", + "resource": { + "resourceType": "Organization", + "id": "07640c5d-87cd-488b-9343-a226c5166539", + "name": "SimpleReport" + } + }, + { + "fullUrl": "Observation/003f9a7e-26bf-4c94-811c-ae58d96fb59b", + "resource": { + "resourceType": "Observation", + "id": "003f9a7e-26bf-4c94-811c-ae58d96fb59b", + "status": "entered-in-error", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "94558-4" + } + ], + "text": "COVID-19" + }, + "subject": { + "reference": "Patient/2f5d5a55-11c5-4e9f-92b0-418a0eb1fe1e" + }, + "issued": "2024-09-04T22:36:21.596Z", + "performer": [ + { + "reference": "Organization/719ec8ad-cf59-405a-9832-c4065945c130" + } + ], + "valueCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "260373001", + "display": "Detected" + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0078", + "code": "A", + "display": "Abnormal" + } + ] + } + ], + "note": [ + { + "text": "Corrected Result: DUPLICATE_TEST" + } + ], + "method": { + "extension": [ + { + "url": "https://reportstream.cdc.gov/fhir/StructureDefinition/testkit-name-id", + "valueCoding": { + "code": "CareStart COVID-19 Antigen test_Access Bio, Inc." + } + } + ], + "coding": [ + { + "display": "CareStart COVID-19 Antigen test" + } + ] + }, + "specimen": { + "reference": "Specimen/dc7af370-fc07-4b00-abc7-9b5dd87cf4d2" + }, + "device": { + "reference": "Device/3b4282df-bb1d-495c-aecb-790d202159cc" + } + } + }, + { + "fullUrl": "Observation/a502cd02-074d-34f5-ae58-c43b495b5b42", + "resource": { + "resourceType": "Observation", + "id": "a502cd02-074d-34f5-ae58-c43b495b5b42", + "identifier": [ + { + "use": "official", + "type": { + "coding": [ + { + "system": "http://loinc.org", + "code": "81959-9", + "display": "Public health laboratory ask at order entry panel" + } + ] + } + } + ], + "status": "final", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "95419-8", + "display": "Has symptoms related to condition of interest" + } + ], + "text": "Has symptoms related to condition of interest" + }, + "subject": { + "reference": "Patient/2f5d5a55-11c5-4e9f-92b0-418a0eb1fe1e" + }, + "valueCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/ValueSet/v2-0136", + "code": "N", + "display": "No" + } + ] + } + } + }, + { + "fullUrl": "Observation/aa396021-efb3-3a87-8425-ff09d2830706", + "resource": { + "resourceType": "Observation", + "id": "aa396021-efb3-3a87-8425-ff09d2830706", + "identifier": [ + { + "use": "official", + "type": { + "coding": [ + { + "system": "http://loinc.org", + "code": "81959-9", + "display": "Public health laboratory ask at order entry panel" + } + ] + } + } + ], + "status": "final", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "82810-3", + "display": "Pregnancy status" + } + ], + "text": "Pregnancy status" + }, + "subject": { + "reference": "Patient/2f5d5a55-11c5-4e9f-92b0-418a0eb1fe1e" + }, + "valueCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "60001007", + "display": "Not pregnant" + } + ] + } + } + }, + { + "fullUrl": "Observation/e121ce8a-f781-3c42-8c88-5e40a76a6fd0", + "resource": { + "resourceType": "Observation", + "id": "e121ce8a-f781-3c42-8c88-5e40a76a6fd0", + "identifier": [ + { + "use": "official", + "type": { + "coding": [ + { + "system": "http://loinc.org", + "code": "81959-9", + "display": "Public health laboratory ask at order entry panel" + } + ] + } + } + ], + "status": "final", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "95418-0", + "display": "Employed in a healthcare setting" + } + ], + "text": "Employed in a healthcare setting" + }, + "subject": { + "reference": "Patient/2f5d5a55-11c5-4e9f-92b0-418a0eb1fe1e" + }, + "valueCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/ValueSet/v2-0136", + "code": "N", + "display": "No" + } + ] + } + } + }, + { + "fullUrl": "Observation/42279871-9913-3168-8363-a2be9b7c3f55", + "resource": { + "resourceType": "Observation", + "id": "42279871-9913-3168-8363-a2be9b7c3f55", + "identifier": [ + { + "use": "official", + "type": { + "coding": [ + { + "system": "http://loinc.org", + "code": "81959-9", + "display": "Public health laboratory ask at order entry panel" + } + ] + } + } + ], + "status": "final", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "95421-4", + "display": "Resides in a congregate care setting" + } + ], + "text": "Resides in a congregate care setting" + }, + "subject": { + "reference": "Patient/2f5d5a55-11c5-4e9f-92b0-418a0eb1fe1e" + }, + "valueCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/ValueSet/v2-0136", + "code": "N", + "display": "No" + } + ] + } + } + }, + { + "fullUrl": "Observation/32c4068c-ccb8-3b97-a7e7-5456ae20eba4", + "resource": { + "resourceType": "Observation", + "id": "32c4068c-ccb8-3b97-a7e7-5456ae20eba4", + "identifier": [ + { + "use": "official", + "type": { + "coding": [ + { + "system": "http://loinc.org", + "code": "81959-9", + "display": "Public health laboratory ask at order entry panel" + } + ] + } + } + ], + "status": "final", + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "76691-5", + "display": "Gender identity" + } + ], + "text": "Gender identity" + }, + "subject": { + "reference": "Patient/2f5d5a55-11c5-4e9f-92b0-418a0eb1fe1e" + }, + "valueCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/5.0.0/CodeSystem-data-absent-reason.html", + "code": "asked-declined", + "display": "Asked But Declined" + } + ] + } + } + } + ] +} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_SR_ENTEREDINERROR_20240904-0001.hl7 b/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_SR_ENTEREDINERROR_20240904-0001.hl7 new file mode 100644 index 00000000000..e8c00cabbcc --- /dev/null +++ b/prime-router/src/testIntegration/resources/datatests/FHIR_to_HL7/sample_SR_ENTEREDINERROR_20240904-0001.hl7 @@ -0,0 +1,13 @@ +MSH|^~\&|CDC PRIME - Atlanta^2.16.840.1.114222.4.1.237821^ISO|Simple Report^CDPH000085^CLIA|CDPH CA REDIE^2.16.840.1.114222.4.3.3.10.1.1^ISO|CDPH_CID^2.16.840.1.114222.4.1.214104^ISO|20240904223625+0000||ORU^R01^ORU_R01|8c66de45-62e3-453c-a5b2-90b6f90a407c|P|2.5.1|||NE|NE|USA|UNICODE UTF-8|ENG^English^ISO||PHLabReport-NoAck^ELR_Receiver^2.16.840.1.113883.9.11^ISO +SFT|Centers for Disease Control and Prevention|0.2-SNAPSHOT|PRIME ReportStream|0.2-SNAPSHOT||20240903190830+0000 +PID|1||2f5d5a55-11c5-4e9f-92b0-418a0eb1fe1e^^^Testing Lab&12D4567890&CLIA^PI^Testing Lab&12D4567890&CLIA||Test^Patientfour^^^^^L||19940728|M||2131-1^other^HL70005^^^^2.5.1|456 SE Broadway^^Fresno^CA^93650^USA^^^Fresno||(340) 555 5555^PRS^CP^^1^340^5555555^^^^^(340) 555 5555|||||||||H^Hispanic or Latino^HL70189^^^^2.9||||||||N +ORC|RE|8c66de45-62e3-453c-a5b2-90b6f90a407c^Testing Lab^12D4567890^CLIA|8c66de45-62e3-453c-a5b2-90b6f90a407c^Testing Lab^12D4567890^CLIA|||||||||1245319599^McTester^Phil^^^^^^NPI&2.16.840.1.113883.4.6&ISO^L^^^NPI||(530) 867 5309^WPN^PH^^1^530^8675309^^^^^(530) 867 5309|20240904223621+0000||||||Testing Lab^^^^^^XX|123 Beach Way^^Denver^CO^80210^USA|(530) 867 5309^WPN^PH^^1^530^8675309^^^^^(530) 867 5309|321 Ocean Drive^^Denver^CO^80210^USA +OBR|1|8c66de45-62e3-453c-a5b2-90b6f90a407c^Testing Lab^12D4567890^CLIA|8c66de45-62e3-453c-a5b2-90b6f90a407c^Testing Lab^12D4567890^CLIA|94558-4^^LN|||20240904222121+0000|||||||||1245319599^McTester^Phil^^^^^^NPI&2.16.840.1.113883.4.6&ISO^L^^^NPI|(530) 867 5309^WPN^PH^^1^530^8675309^^^^^(530) 867 5309|||||20240904223625+0000|||C +OBX|1|CE|94558-4^COVID-19^LN||260373001^Detected^SCT|||A^Abnormal^HL70078^^^^2.7|||W|||20240904222121+0000|12D4567890^Testing Lab^CLIA||^CareStart COVID-19 Antigen test^^^^^^^CareStart COVID-19 Antigen test|No Equipment|20240904223621+0000||||Testing Lab-12D4567890^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^12D4567890|123 Beach Way^^Denver^CO^80210^USA +NTE|1|L +NTE|2|L|95419-8 Has symptoms related to condition of interest: No N HL70136 +NTE|3|L|82810-3 Pregnancy status: Not pregnant 60001007 SCT +NTE|4|L|95418-0 Employed in a healthcare setting: No N HL70136 +NTE|5|L|95421-4 Resides in a congregate care setting: No N HL70136 +NTE|6|L|76691-5 Gender identity: Asked But Declined asked-declined +SPM|1|8c66de45-62e3-453c-a5b2-90b6f90a407c&Testing Lab&12D4567890&CLIA^8c66de45-62e3-453c-a5b2-90b6f90a407c&Testing Lab&12D4567890&CLIA||258500001^Nasopharyngeal swab^SCT^^^^2.67||||87100004^Topography unknown (body structure)^SCT^^^^^^Topography unknown (body structure)|||||||||20240904222121+0000|20240904222121+0000 \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/translation-test-config.csv b/prime-router/src/testIntegration/resources/datatests/translation-test-config.csv index 48a4472482d..98ca0f96664 100644 --- a/prime-router/src/testIntegration/resources/datatests/translation-test-config.csv +++ b/prime-router/src/testIntegration/resources/datatests/translation-test-config.csv @@ -67,4 +67,5 @@ FHIR_to_HL7/sample_MN_20240816-0001.fhir,,FHIR_to_HL7/sample_MN_20240816-0001.hl FHIR_to_HL7/sample_MA_20240805-0001.fhir,,FHIR_to_HL7/sample_MA_20240805-0001.hl7,classpath:/metadata/hl7_mapping/receivers/STLTs/MA/MA-receiver-transform.yml,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml","","","" FHIR_to_HL7/sample_AR_20240805-0001.fhir,,FHIR_to_HL7/sample_AR_20240805-0001.hl7,classpath:/metadata/hl7_mapping/receivers/STLTs/AR/AR-receiver-transform.yml,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml","","","" FHIR_to_HL7/sample_ME_20240806-0001.fhir,,FHIR_to_HL7/sample_ME_20240806-0001.hl7,classpath:/metadata/hl7_mapping/receivers/STLTs/ME/ME-receiver-transform.yml,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml","","","" -FHIR_to_HL7/sample_SR_CSVUPLOADER_20240819-0001.fhir,,FHIR_to_HL7/sample_SR_CSVUPLOADER_20240819-0001.hl7,classpath:/metadata/hl7_mapping/receivers/STLTs/MA/MA-receiver-transform.yml,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml","","","" \ No newline at end of file +FHIR_to_HL7/sample_SR_CSVUPLOADER_20240819-0001.fhir,,FHIR_to_HL7/sample_SR_CSVUPLOADER_20240819-0001.hl7,classpath:/metadata/hl7_mapping/receivers/STLTs/MA/MA-receiver-transform.yml,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml","","","" +FHIR_to_HL7/sample_SR_ENTEREDINERROR_20240904-0001.fhir,,FHIR_to_HL7/sample_SR_ENTEREDINERROR_20240904-0001.hl7,classpath:/metadata/hl7_mapping/receivers/STLTs/CA/CA-receiver-transform.yml,HL7,PASS,"","","classpath:/metadata/fhir_transforms/senders/SimpleReport/simple-report-sender-transform.yml","","","" \ No newline at end of file From 29b996b8f1e9bb5c6afa48f93e8c5c284671555c Mon Sep 17 00:00:00 2001 From: Josiah Siegel Date: Thu, 5 Sep 2024 14:05:09 -0400 Subject: [PATCH 34/40] add cdctiautomated env var --- .environment/gitleaks/gitleaks-config.toml | 1 + operations/app/terraform/modules/function_app/locals.tf | 1 + operations/app/terraform/modules/function_app/~inputs.tf | 3 +++ operations/app/terraform/vars/staging/data.tf | 6 ++++++ operations/app/terraform/vars/staging/main.tf | 1 + 5 files changed, 12 insertions(+) diff --git a/.environment/gitleaks/gitleaks-config.toml b/.environment/gitleaks/gitleaks-config.toml index 469d0793cd8..d95d877f4b8 100644 --- a/.environment/gitleaks/gitleaks-config.toml +++ b/.environment/gitleaks/gitleaks-config.toml @@ -204,6 +204,7 @@ title = "PRIME ReportStream Gitleaks Configuration" 'ApiKeyCredential\(\"flexion\"', 'authType: \"two-legged\"', 'Authorization-Type: \"username/password\"', + 'cdctiautomated_sa' ] paths = [ '.terraform/modules/', diff --git a/operations/app/terraform/modules/function_app/locals.tf b/operations/app/terraform/modules/function_app/locals.tf index 5af78ff0c91..15daeed6e3f 100644 --- a/operations/app/terraform/modules/function_app/locals.tf +++ b/operations/app/terraform/modules/function_app/locals.tf @@ -18,6 +18,7 @@ locals { "RS_OKTA_authkey" = var.RS_OKTA_authKey "RS_OKTA_ClientId" = var.RS_OKTA_clientId "ETOR_TI_baseurl" = var.etor_ti_base_url + "cdctiautomated" = var.cdctiautomated_sa # Manage client secrets via a Key Vault "CREDENTIAL_STORAGE_METHOD" = "AZURE" "CREDENTIAL_KEY_VAULT_NAME" = var.client_config_key_vault_name diff --git a/operations/app/terraform/modules/function_app/~inputs.tf b/operations/app/terraform/modules/function_app/~inputs.tf index 1bf2cb032d1..5b20d635fb5 100644 --- a/operations/app/terraform/modules/function_app/~inputs.tf +++ b/operations/app/terraform/modules/function_app/~inputs.tf @@ -90,6 +90,9 @@ variable "RS_OKTA_authKey" {} variable "RS_OKTA_clientId" {} variable "RS_OKTA_scope" {} variable "etor_ti_base_url" {} +variable "cdctiautomated_sa" { + default = "" +} variable "subnets" { description = "A set of all available subnet combinations" diff --git a/operations/app/terraform/vars/staging/data.tf b/operations/app/terraform/vars/staging/data.tf index 3643807284b..d66b8220718 100644 --- a/operations/app/terraform/vars/staging/data.tf +++ b/operations/app/terraform/vars/staging/data.tf @@ -93,4 +93,10 @@ data "azurerm_key_vault_secret" "RS_OKTA_authKey" { name = "functionapp-RS-OKTA-authkey" key_vault_id = data.azurerm_key_vault.app_config.id +} + +data "azurerm_key_vault_secret" "cdctiautomated_sa" { + name = "functionapp-cdctiautomated" + key_vault_id = data.azurerm_key_vault.app_config.id + } \ No newline at end of file diff --git a/operations/app/terraform/vars/staging/main.tf b/operations/app/terraform/vars/staging/main.tf index 5ad91c3e3ad..2ba317c6fc0 100644 --- a/operations/app/terraform/vars/staging/main.tf +++ b/operations/app/terraform/vars/staging/main.tf @@ -160,6 +160,7 @@ module "function_app" { RS_OKTA_clientId = data.azurerm_key_vault_secret.RS_OKTA_clientId.value RS_OKTA_authKey = data.azurerm_key_vault_secret.RS_OKTA_authKey.value etor_ti_base_url = local.init.etor_ti_base_url + cdctiautomated_sa = data.azurerm_key_vault_secret.cdctiautomated_sa.value } module "front_door" { From 06460f4c84d2038bbd632061b84232d9ebe535b0 Mon Sep 17 00:00:00 2001 From: Jack Wang Date: Thu, 5 Sep 2024 16:27:25 -0400 Subject: [PATCH 35/40] 15607 remove non catchall hl7 to fhir mappings (#15733) --- .github/workflows/build_hub.yml | 4 +- .../adding-conformance-profile.md | 2 +- .../v251/hl7/datatypes/CE/CodeableConcept.yml | 112 - .../hl7/datatypes/CNE/CodeableConcept.yml | 175 - .../v251/hl7/datatypes/CNN/CNNExtension.yml | 70 - .../v251/hl7/datatypes/CNN/Practitioner.yml | 98 - .../v251/hl7/datatypes/CQ/Quantity.yml | 28 - .../v251/hl7/datatypes/CWE/Annotation.yml | 19 - .../hl7/datatypes/CWE/CodeableConcept.yml | 127 - .../v251/hl7/datatypes/CWE/Organization.yml | 60 - .../v251/hl7/datatypes/CX/CXExtension.yml | 46 - .../v251/hl7/datatypes/CX/Identifier.yml | 222 - .../hl7/datatypes/CX/RelatedPerson-mother.yml | 13 - .../v251/hl7/datatypes/DLD/Location.yml | 25 - .../v251/hl7/datatypes/DR/Period.yml | 51 - .../v251/hl7/datatypes/ED/Attachment.yml | 36 - .../v251/hl7/datatypes/ED/EDExtension.yml | 53 - .../EI/Identifier-DefaultAssigner.yml | 50 - .../datatypes/EI/Identifier-Organization.yml | 21 - .../v251/hl7/datatypes/EI/Identifier.yml | 92 - .../v251/hl7/datatypes/EI/Organization.yml | 47 - .../v251/hl7/datatypes/EIP/EI/ExtensionEI.yml | 60 - .../Identifier-FillerAssignedIdentifier.yml | 81 - .../Identifier-PlacerAssignedIdentifier.yml | 82 - .../FN/ExtensionHumanName-family.yml | 51 - .../HD/ExtensionAssigningAuthority.yml | 74 - .../v251/hl7/datatypes/HD/ExtensionHD.yml | 55 - .../HD/Identifier/IdentifierNamespaceId.yml | 15 - .../HD/Identifier/IdentifierUniversalId.yml | 19 - .../v251/hl7/datatypes/HD/Location.yml | 74 - .../v251/hl7/datatypes/HD/Organization.yml | 91 - .../v251/hl7/datatypes/ID/CodeableConcept.yml | 22 - .../ID/CodeableConceptUniversalid.yml | 15 - .../v251/hl7/datatypes/MOC/Extension.yml | 46 - .../v251/hl7/datatypes/MSG/Coding.yml | 24 - .../v251/hl7/datatypes/NDL/HD/Location.yml | 68 - .../v251/hl7/datatypes/NDL/IS/Location.yml | 66 - .../v251/hl7/datatypes/NDL/NDLExtension.yml | 22 - .../hl7/datatypes/NDL/PractitionerRole.yml | 147 - .../datatypes/v251/hl7/datatypes/NR/Range.yml | 17 - .../v251/hl7/datatypes/PL/Location.yml | 292 -- .../v251/hl7/datatypes/PL/LocationBranch1.yml | 182 - .../v251/hl7/datatypes/PL/LocationBranch2.yml | 151 - .../v251/hl7/datatypes/PL/LocationBranch3.yml | 110 - .../v251/hl7/datatypes/PL/LocationBranch4.yml | 82 - .../v251/hl7/datatypes/PL/LocationBranch5.yml | 46 - .../datatypes/v251/hl7/datatypes/PT/Meta.yml | 37 - .../v251/hl7/datatypes/SN/ExtensionSN.yml | 58 - .../v251/hl7/datatypes/SN/Quantity.yml | 74 - .../datatypes/v251/hl7/datatypes/SN/Range.yml | 106 - .../datatypes/v251/hl7/datatypes/SN/Ratio.yml | 106 - .../v251/hl7/datatypes/XAD/Address.yml | 135 - .../v251/hl7/datatypes/XAD/SADExtension.yml | 46 - .../v251/hl7/datatypes/XAD/XADExtension.yml | 104 - .../v251/hl7/datatypes/XCN/Practitioner.yml | 228 - .../v251/hl7/datatypes/XCN/XCNExtension.yml | 177 - .../v251/hl7/datatypes/XON/Organization.yml | 194 - .../v251/hl7/datatypes/XON/XONExtension.yml | 34 - .../v251/hl7/datatypes/XPN/HumanName.yml | 99 - .../v251/hl7/datatypes/XPN/XPNExtension.yml | 110 - .../v251/hl7/datatypes/XTN/ContactPoint.yml | 233 - .../v251/hl7/datatypes/XTN/XTNExtension.yml | 81 - .../metadata/HL7/v251-elr/config.properties | 5 - .../HL7/v251-elr/fhir/resourcemapping.yml | 23 - .../hl7/codesystem/CodingSystemMapping.yml | 4538 ----------------- .../hl7/codesystem/ExtensionUrlMapping.yml | 331 -- .../hl7/datatypes/CQ_ELR/Quantity.yml | 34 - .../hl7/datatypes/CWE_ELR/Annotation.yml | 19 - .../hl7/datatypes/CWE_ELR/CodeableConcept.yml | 192 - .../v251-elr/hl7/datatypes/CWE_ELR/Coding.yml | 33 - .../hl7/datatypes/CWE_ELR/Organization.yml | 60 - .../hl7/datatypes/CWE_ELR/Quantity.yml | 46 - .../hl7/datatypes/PL_ELR/Location.yml | 292 -- .../hl7/datatypes/PL_ELR/LocationBranch1.yml | 182 - .../hl7/datatypes/PL_ELR/LocationBranch2.yml | 151 - .../hl7/datatypes/PL_ELR/LocationBranch3.yml | 110 - .../hl7/datatypes/PL_ELR/LocationBranch4.yml | 82 - .../hl7/datatypes/PL_ELR/LocationBranch5.yml | 46 - .../hl7/datatypes/PRL_ELR/Extension.yml | 46 - .../hl7/datatypes/XPN_ELR/HumanName.yml | 102 - .../hl7/datatypes/XPN_ELR/XPNExtension.yml | 121 - .../ExtensionHierarchicDesignator.yml | 69 - .../v251-elr/hl7/extension/ExtensionMeta.yml | 74 - .../HL7/v251-elr/hl7/message/ORU_R01.yml | 99 - .../HL7/v251-elr/hl7/resource/Common.yml | 4 - .../hl7/segments/MSH/MSHExtension.yml | 119 - .../hl7/segments/MSH/MessageHeader.yml | 116 - .../hl7/segments/MSH/Provenance-Source.yml | 78 - .../MSH/Provenance-Transformation.yml | 46 - .../segments/MSH/ReportStreamOrganization.yml | 32 - .../segments/MSH/datatypes/HD/Destination.yml | 85 - .../hl7/segments/MSH/datatypes/HD/Source.yml | 139 - .../hl7/segments/MSH/segments/SFT/Source.yml | 77 - .../hl7/segments/NK1/NK1Extension.yml | 21 - .../hl7/segments/NK1/RelatedPerson.yml | 155 - .../v251-elr/hl7/segments/NTE/Annotation.yml | 44 - .../HL7/v251-elr/hl7/segments/OBX/Device.yml | 13 - .../hl7/segments/OBX/OBXExtension.yml | 115 - .../v251-elr/hl7/segments/OBX/Observation.yml | 503 -- .../hl7/segments/OBX/PractitionerRole.yml | 36 - .../hl7/segments/ORC/DiagnosticReport.yml | 264 - .../hl7/segments/ORC/OBRExtension.yml | 340 -- .../hl7/segments/ORC/ORCExtension.yml | 235 - .../hl7/segments/ORC/PractitionerRole.yml | 40 - .../hl7/segments/ORC/ServiceRequest.yml | 322 -- .../v251-elr/hl7/segments/ORC/Specimen.yml | 62 - .../hl7/segments/PID/PD1Extension.yml | 215 - .../hl7/segments/PID/PIDExtension.yml | 87 - .../HL7/v251-elr/hl7/segments/PID/Patient.yml | 577 --- .../hl7/segments/PID/Provenance-Patient.yml | 63 - .../v251-elr/hl7/segments/PV1/Encounter.yml | 509 -- .../hl7/segments/PV1/PV1Extension.yml | 190 - .../hl7/segments/PV1/PV2Extension.yml | 59 - .../HL7/v251-elr/hl7/segments/SFT/Device.yml | 110 - .../hl7/segments/SPM/EIP/Specimen.yml | 28 - .../hl7/segments/SPM/SPMExtension.yml | 237 - .../v251-elr/hl7/segments/SPM/Specimen.yml | 232 - .../v251/CNNtoPractitionerTests.kt | 17 - .../v251/CWEtoCodeableConceptTests.kt | 105 - .../v251/NDLtoPractitionerRoleTests.kt | 17 - .../v251/XADtoAddressTests.kt | 17 - .../v251/XTNToContactPointTests.kt | 17 - .../v251elr/CQELRtoQuantityTest.kt | 17 - .../v251elr/CWEELRtoCodeableConceptTests.kt | 160 - .../v251elr/ORUR01ELRFullTest.kt | 17 - .../v251elr/PRLELRtoServiceRequestTest.kt | 17 - .../v251elr/XPNELRtoHumanNameTests.kt | 17 - .../v251-elr/cq/cq-to-quantity.fhir | 259 - .../v251-elr/cq/cq-to-quantity.hl7 | 4 - .../CWE-to-CodeableConcept.csv | 25 - .../cwe-10-test-value-cwe8.fhir | 143 - .../cwe-10-test-value-cwe8.hl7 | 2 - .../cwe-11-test-value-cwe9.fhir | 137 - .../cwe-11-test-value-cwe9.hl7 | 2 - .../cwe-12-test-value-cwe10.fhir | 143 - .../cwe-12-test-value-cwe10.hl7 | 2 - .../cwe-13-test-value-cwe11.fhir | 143 - .../cwe-13-test-value-cwe11.hl7 | 2 - .../cwe-14-test-value-cwe12.fhir | 146 - .../cwe-14-test-value-cwe12.hl7 | 2 - .../cwe-15-test-value-cwe13.fhir | 143 - .../cwe-15-test-value-cwe13.hl7 | 2 - .../cwe-16-test-value-cwe14.fhir | 140 - .../cwe-16-test-value-cwe14.hl7 | 2 - .../cwe-3-test-value-cwe1.fhir | 143 - .../cwe-3-test-value-cwe1.hl7 | 2 - .../cwe-4-test-value-cwe2.fhir | 143 - .../cwe-4-test-value-cwe2.hl7 | 2 - .../cwe-5-test-value-cwe3.fhir | 146 - .../cwe-5-test-value-cwe3.hl7 | 2 - .../cwe-6-test-value-cwe4.fhir | 143 - .../cwe-6-test-value-cwe4.hl7 | 2 - .../cwe-7-test-value-cwe5.fhir | 143 - .../cwe-7-test-value-cwe5.hl7 | 2 - .../cwe-8-test-value-cwe6.fhir | 146 - .../cwe-8-test-value-cwe6.hl7 | 2 - .../cwe-9-test-value-cwe7.fhir | 143 - .../cwe-9-test-value-cwe7.hl7 | 2 - .../v251-elr/orur01/oru_r01-full.fhir | 3206 ------------ .../v251-elr/orur01/oru_r01-full.hl7 | 23 - .../v251-elr/prl/prl-to-servicerequest.fhir | 234 - .../v251-elr/prl/prl-to-servicerequest.hl7 | 3 - ...anname-xpn12-13-populated-xpn10-empty.fhir | 254 - ...manname-xpn12-13-populated-xpn10-empty.hl7 | 3 - .../v251/cnn/cnn-to-Practitioner.csv | 14 - .../v251/cnn/cnn-to-Practitioner.fhir | 235 - .../v251/cnn/cnn-to-Practitioner.hl7 | 3 - .../cwe-10-test-value-cwe8.fhir | 150 - .../cwe-10-test-value-cwe8.hl7 | 2 - .../cwe-11-test-value-cwe9.fhir | 144 - .../cwe-11-test-value-cwe9.hl7 | 2 - .../cwe-3-test-value-cwe1.fhir | 150 - .../cwe-3-test-value-cwe1.hl7 | 2 - .../cwe-4-test-value-cwe2.fhir | 150 - .../cwe-4-test-value-cwe2.hl7 | 2 - .../cwe-5-test-value-cwe3.fhir | 153 - .../cwe-5-test-value-cwe3.hl7 | 2 - .../cwe-6-test-value-cwe4.fhir | 150 - .../cwe-6-test-value-cwe4.hl7 | 2 - .../cwe-7-test-value-cwe5.fhir | 150 - .../cwe-7-test-value-cwe5.hl7 | 2 - .../cwe-8-test-value-cwe6.fhir | 153 - .../cwe-8-test-value-cwe6.hl7 | 2 - .../cwe-9-test-value-cwe7.fhir | 150 - .../cwe-9-test-value-cwe7.hl7 | 2 - .../v251/ndl/NDL-to-PractitionerRole.csv | 42 - .../v251/ndl/NDL-to-PractitionerRole.fhir | 432 -- .../v251/ndl/NDL-to-PractitionerRole.hl7 | 3 - .../v251/xad/xad-to-address.fhir | 292 -- .../v251/xad/xad-to-address.hl7 | 3 - .../v251/xtn/xtn-to-contact-point.fhir | 279 - .../v251/xtn/xtn-to-contact-point.hl7 | 2 - 192 files changed, 3 insertions(+), 25985 deletions(-) delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CE/CodeableConcept.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CNE/CodeableConcept.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CNN/CNNExtension.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CNN/Practitioner.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CQ/Quantity.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CWE/Annotation.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CWE/CodeableConcept.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CWE/Organization.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CX/CXExtension.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CX/Identifier.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CX/RelatedPerson-mother.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/DLD/Location.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/DR/Period.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/ED/Attachment.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/ED/EDExtension.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EI/Identifier-DefaultAssigner.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EI/Identifier-Organization.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EI/Identifier.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EI/Organization.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EIP/EI/ExtensionEI.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EIP/Identifier-FillerAssignedIdentifier.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EIP/Identifier-PlacerAssignedIdentifier.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/FN/ExtensionHumanName-family.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/HD/ExtensionAssigningAuthority.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/HD/ExtensionHD.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierNamespaceId.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierUniversalId.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/HD/Location.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/HD/Organization.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/ID/CodeableConcept.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/ID/CodeableConceptUniversalid.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/MOC/Extension.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/MSG/Coding.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/NDL/HD/Location.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/NDL/IS/Location.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/NDL/NDLExtension.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/NDL/PractitionerRole.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/NR/Range.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PL/Location.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PL/LocationBranch1.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PL/LocationBranch2.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PL/LocationBranch3.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PL/LocationBranch4.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PL/LocationBranch5.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PT/Meta.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/SN/ExtensionSN.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/SN/Quantity.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/SN/Range.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/SN/Ratio.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XAD/Address.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XAD/SADExtension.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XAD/XADExtension.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XCN/Practitioner.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XCN/XCNExtension.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XON/Organization.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XON/XONExtension.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XPN/HumanName.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XPN/XPNExtension.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XTN/ContactPoint.yml delete mode 100644 prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XTN/XTNExtension.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/config.properties delete mode 100644 prime-router/metadata/HL7/v251-elr/fhir/resourcemapping.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/codesystem/CodingSystemMapping.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/codesystem/ExtensionUrlMapping.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/datatypes/CQ_ELR/Quantity.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/datatypes/CWE_ELR/Annotation.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/datatypes/CWE_ELR/CodeableConcept.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/datatypes/CWE_ELR/Coding.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/datatypes/CWE_ELR/Organization.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/datatypes/CWE_ELR/Quantity.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/datatypes/PL_ELR/Location.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/datatypes/PL_ELR/LocationBranch1.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/datatypes/PL_ELR/LocationBranch2.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/datatypes/PL_ELR/LocationBranch3.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/datatypes/PL_ELR/LocationBranch4.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/datatypes/PL_ELR/LocationBranch5.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/datatypes/PRL_ELR/Extension.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/datatypes/XPN_ELR/HumanName.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/datatypes/XPN_ELR/XPNExtension.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/extension/ExtensionHierarchicDesignator.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/extension/ExtensionMeta.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/message/ORU_R01.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/resource/Common.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/MSHExtension.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/MessageHeader.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/Provenance-Source.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/Provenance-Transformation.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/ReportStreamOrganization.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/datatypes/HD/Destination.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/datatypes/HD/Source.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/segments/SFT/Source.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/NK1/NK1Extension.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/NK1/RelatedPerson.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/NTE/Annotation.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/OBX/Device.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/OBX/OBXExtension.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/OBX/Observation.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/OBX/PractitionerRole.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/ORC/DiagnosticReport.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/ORC/OBRExtension.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/ORC/ORCExtension.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/ORC/PractitionerRole.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/ORC/ServiceRequest.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/ORC/Specimen.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/PID/PD1Extension.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/PID/PIDExtension.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/PID/Patient.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/PID/Provenance-Patient.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/PV1/Encounter.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/PV1/PV1Extension.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/PV1/PV2Extension.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/SFT/Device.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/SPM/EIP/Specimen.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/SPM/SPMExtension.yml delete mode 100644 prime-router/metadata/HL7/v251-elr/hl7/segments/SPM/Specimen.yml delete mode 100644 prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251/CNNtoPractitionerTests.kt delete mode 100644 prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251/CWEtoCodeableConceptTests.kt delete mode 100644 prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251/NDLtoPractitionerRoleTests.kt delete mode 100644 prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251/XADtoAddressTests.kt delete mode 100644 prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251/XTNToContactPointTests.kt delete mode 100644 prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251elr/CQELRtoQuantityTest.kt delete mode 100644 prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251elr/CWEELRtoCodeableConceptTests.kt delete mode 100644 prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251elr/ORUR01ELRFullTest.kt delete mode 100644 prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251elr/PRLELRtoServiceRequestTest.kt delete mode 100644 prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251elr/XPNELRtoHumanNameTests.kt delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cq/cq-to-quantity.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cq/cq-to-quantity.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/CWE-to-CodeableConcept.csv delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-10-test-value-cwe8.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-10-test-value-cwe8.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-11-test-value-cwe9.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-11-test-value-cwe9.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-12-test-value-cwe10.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-12-test-value-cwe10.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-13-test-value-cwe11.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-13-test-value-cwe11.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-14-test-value-cwe12.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-14-test-value-cwe12.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-15-test-value-cwe13.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-15-test-value-cwe13.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-16-test-value-cwe14.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-16-test-value-cwe14.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-3-test-value-cwe1.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-3-test-value-cwe1.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-4-test-value-cwe2.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-4-test-value-cwe2.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-5-test-value-cwe3.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-5-test-value-cwe3.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-6-test-value-cwe4.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-6-test-value-cwe4.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-7-test-value-cwe5.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-7-test-value-cwe5.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-8-test-value-cwe6.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-8-test-value-cwe6.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-9-test-value-cwe7.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-9-test-value-cwe7.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/orur01/oru_r01-full.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/orur01/oru_r01-full.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/prl/prl-to-servicerequest.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/prl/prl-to-servicerequest.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/xpn/xpn-to-humanname-xpn12-13-populated-xpn10-empty.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/xpn/xpn-to-humanname-xpn12-13-populated-xpn10-empty.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cnn/cnn-to-Practitioner.csv delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cnn/cnn-to-Practitioner.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cnn/cnn-to-Practitioner.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-10-test-value-cwe8.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-10-test-value-cwe8.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-11-test-value-cwe9.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-11-test-value-cwe9.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-3-test-value-cwe1.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-3-test-value-cwe1.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-4-test-value-cwe2.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-4-test-value-cwe2.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-5-test-value-cwe3.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-5-test-value-cwe3.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-6-test-value-cwe4.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-6-test-value-cwe4.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-7-test-value-cwe5.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-7-test-value-cwe5.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-8-test-value-cwe6.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-8-test-value-cwe6.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-9-test-value-cwe7.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-9-test-value-cwe7.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/ndl/NDL-to-PractitionerRole.csv delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/ndl/NDL-to-PractitionerRole.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/ndl/NDL-to-PractitionerRole.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/xad/xad-to-address.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/xad/xad-to-address.hl7 delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/xtn/xtn-to-contact-point.fhir delete mode 100644 prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/xtn/xtn-to-contact-point.hl7 diff --git a/.github/workflows/build_hub.yml b/.github/workflows/build_hub.yml index b8a33cfc331..3774600f35e 100644 --- a/.github/workflows/build_hub.yml +++ b/.github/workflows/build_hub.yml @@ -80,8 +80,8 @@ jobs: ./gradlew :prime-router:primeCLI --args='validate-yaml --type Organizations --file settings/organizations.yml --dir settings/STLTs' ./gradlew :prime-router:primeCLI --args='validate-yaml --type FhirToFhirTransform --dir src/main/resources/metadata/fhir_transforms' ./gradlew :prime-router:primeCLI --args='validate-yaml --type FhirToHL7Mapping --dir src/main/resources/metadata/hl7_mapping' - ./gradlew :prime-router:primeCLI --args='validate-yaml --type HL7ToFhirMappingMessageTemplate --dir metadata/HL7/catchall/hl7/message metadata/HL7/v251-elr/hl7/message' - ./gradlew :prime-router:primeCLI --args='validate-yaml --type HL7ToFhirMappingResourceTemplate --dir metadata/HL7 --exclude-dir metadata/HL7/catchall/hl7/message metadata/HL7/v251-elr/hl7/message metadata/HL7/v251-elr/hl7/codesystem metadata/HL7/catchall/hl7/codesystem --exclude-file metadata/HL7/catchall/fhir/resourcemapping.yml metadata/HL7/v251-elr/fhir/resourcemapping.yml metadata/HL7/catchall/hl7/resource/Common.yml metadata/HL7/v251-elr/hl7/resource/Common.yml' + ./gradlew :prime-router:primeCLI --args='validate-yaml --type HL7ToFhirMappingMessageTemplate --dir metadata/HL7/catchall/hl7/message' + ./gradlew :prime-router:primeCLI --args='validate-yaml --type HL7ToFhirMappingResourceTemplate --dir metadata/HL7 --exclude-dir metadata/HL7/catchall/hl7/message metadata/HL7/catchall/hl7/codesystem --exclude-file metadata/HL7/catchall/fhir/resourcemapping.yml metadata/HL7/catchall/hl7/resource/Common.yml' - name: Check for Uncommited Schema Docs id: check_changes diff --git a/prime-router/docs/standard-operating-procedures/adding-conformance-profile.md b/prime-router/docs/standard-operating-procedures/adding-conformance-profile.md index 6e5744e5d11..8198868c336 100644 --- a/prime-router/docs/standard-operating-procedures/adding-conformance-profile.md +++ b/prime-router/docs/standard-operating-procedures/adding-conformance-profile.md @@ -107,7 +107,7 @@ v251. That presents the opportunity for reuse. 1. Review existing data type mappings located in `prime-router/metadata/HL7/datatypes/` for reuse 2. Add folder to `prime-router/metadata/HL7/` with a name indicating the new conformance profile -3. Copy folder `fhir` from `prime-router/metadata/HL7/v251-elr` and add to your new mapping folder. +3. Copy folder `fhir` from `prime-router/metadata/HL7/catchall` and add to your new mapping folder. 4. Create folder `hl7` in your new mapping folder with the following sub-folders: - "message" - **required** - within that, add a yml file named with the HL7 message type (ex ORU_R01, ORM_O01, ADT_A01, etc.) diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CE/CodeableConcept.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CE/CodeableConcept.yml deleted file mode 100644 index 36421f3188a..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CE/CodeableConcept.yml +++ /dev/null @@ -1,112 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -coding: - generateList: true - expressionType: nested - vars: - code: String, CE.1 - display: String, CE.2 - system: SYSTEM_URL, CE.3 - expressionsMap: - code: - type: String - expressionType: HL7Spec - valueOf: CE.1 - display: - type: String - expressionType: HL7Spec - valueOf: CE.2 - system: - type: SYSTEM_URL - expressionType: HL7Spec - valueOf: CE.3 - extension_ce-coding: - generateList: true - condition: $code NOT_NULL || $display NOT_NULL || $system NOT_NULL - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: ce-coding - valueString: - value: coding - extension_ce-coding-system: - condition: $coding-system NOT_NULL - generateList: true - expressionType: nested - vars: - coding-system: String, CE.3 - expressionsMap: - url: - type: SYSTEM_URL - value: ce-coding-system - valueString: - value: $coding-system - -coding_alt: - generateList: true - expressionType: nested - vars: - altCode: String, CE.4 - altDisplay: String, CE.5 - altSystem: SYSTEM_URL, CE.6 - expressionsMap: - code: - type: String - expressionType: HL7Spec - valueOf: CE.4 - display: - type: String - expressionType: HL7Spec - valueOf: CE.5 - system: - type: SYSTEM_URL - expressionType: HL7Spec - valueOf: CE.6 - extension_ce-coding: - condition: $altCode NOT_NULL || $altDisplay NOT_NULL || $altSystem NOT_NULL - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: ce-coding - valueString: - value: alt-coding - extension_ce-coding-system: - condition: $coding-system NOT_NULL - generateList: true - expressionType: nested - vars: - coding-system: String, CE.6 - expressionsMap: - url: - type: SYSTEM_URL - value: ce-coding-system - valueString: - value: $coding-system - -extension: - generateList: true - expressionType: nested - expressions: - - generateList: true - expressionType: nested - condition: $hl7v2Field NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - type: STRING - valueOf: $hl7v2Field - - generateList: true - expressionType: nested - condition: $hl7v2Component NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Component - valueString: - type: STRING - valueOf: $hl7v2Component \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CNE/CodeableConcept.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CNE/CodeableConcept.yml deleted file mode 100644 index 1250b162be6..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CNE/CodeableConcept.yml +++ /dev/null @@ -1,175 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -coding: - generateList: true - expressionType: nested - vars: - code: String, CNE.1 - display: String, CNE.2 - system: SYSTEM_URL, CNE.3 - version: String, CNE.7 - expressionsMap: - code: - type: String - expressionType: HL7Spec - valueOf: CNE.1 - display: - type: String - expressionType: HL7Spec - valueOf: CNE.2 - system: - type: SYSTEM_URL - expressionType: HL7Spec - valueOf: CNE.3 - version: - type: String - expressionType: HL7Spec - valueOf: CNE.7 - extension_CNE-coding: - condition: $code NOT_NULL || $display NOT_NULL || $system NOT_NULL || $version NOT_NULL - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: CNE-coding - valueString: - value: coding - extension_CNE-coding-system: - condition: $coding-system NOT_NULL - generateList: true - expressionType: nested - vars: - coding-system: String, CNE.3 - expressionsMap: - url: - type: SYSTEM_URL - value: CNE-coding-system - valueString: - value: $coding-system - -coding_alt: - generateList: true - expressionType: nested - vars: - altCode: String, CNE.4 - altDisplay: String, CNE.5 - altSystem: SYSTEM_URL, CNE.6 - altVersion: String, CNE.8 - expressionsMap: - code: - type: String - expressionType: HL7Spec - valueOf: CNE.4 - display: - type: String - expressionType: HL7Spec - valueOf: CNE.5 - system: - type: SYSTEM_URL - expressionType: HL7Spec - valueOf: CNE.6 - version: - type: String - expressionType: HL7Spec - valueOf: CNE.8 - extension_CNE-coding: - condition: $altCode NOT_NULL || $altDisplay NOT_NULL || $altSystem NOT_NULL || $altVersion NOT_NULL - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: CNE-coding - valueString: - value: alt-coding - extension_CNE-coding-system: - condition: $coding-system NOT_NULL - generateList: true - expressionType: nested - vars: - coding-system: String, CNE.6 - expressionsMap: - url: - type: SYSTEM_URL - value: CNE-coding-system - valueString: - value: $coding-system - -coding_secondary-alt: - generateList: true - expressionType: nested - vars: - secondaryAltCode: String, CWE.10 - secondaryAltDisplay: String, CWE.11 - secondaryAltSystem: SYSTEM_URL, CWE.12 - secondaryAltVersion: String, CWE.13 - expressionsMap: - code: - type: String - expressionType: HL7Spec - valueOf: CWE.10 - display: - type: String - expressionType: HL7Spec - valueOf: CWE.11 - system: - type: SYSTEM_URL - expressionType: HL7Spec - valueOf: CWE.12 - version: - type: String - expressionType: HL7Spec - valueOf: CWE.13 - extension_cne-coding: - condition: $secondaryAltCode NOT_NULL || $secondaryAltDisplay NOT_NULL || $secondaryAltSystem NOT_NULL || $secondaryAltVersion NOT_NULL - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: cne-coding - valueString: - value: secondary-alt-coding - extension_cne-coding-system: - condition: $coding-system NOT_NULL - generateList: true - expressionType: nested - vars: - coding-system: String, CWE.12 - expressionsMap: - url: - type: SYSTEM_URL - value: cne-coding-system - valueString: - value: $coding-system - -text: - type: STRING - expressionType: HL7Spec - valueOf: CNE.9 - -extension: - generateList: true - expressionType: nested - expressions: - - generateList: true - expressionType: nested - condition: $hl7v2Field NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - type: STRING - valueOf: $hl7v2Field - - generateList: true - expressionType: nested - condition: $hl7v2Component NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Component - valueString: - type: STRING - valueOf: $hl7v2Component \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CNN/CNNExtension.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CNN/CNNExtension.yml deleted file mode 100644 index 9942d500ee9..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CNN/CNNExtension.yml +++ /dev/null @@ -1,70 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - type: SYSTEM_URL - valueOf: cnn-practitioner - -extension: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - vars: - cnn3: STRING_ALL, CNN.3 - condition: $cnn3 NOT_NULL - expressionsMap: - url: - type: STRING - valueOf: CNN.3 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: CNN.3 - - expressionType: nested - vars: - cnn4: STRING_ALL, CNN.4 - condition: $cnn4 NOT_NULL - expressionsMap: - url: - type: STRING - valueOf: CNN.4 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: CNN.4 - - expressionType: nested - vars: - cnn5: STRING_ALL, CNN.5 - condition: $cnn5 NOT_NULL - expressionsMap: - url: - type: STRING - valueOf: CNN.5 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: CNN.5 - - expressionType: nested - vars: - cnn7: STRING_ALL, CNN.7 - condition: $cnn7 NOT_NULL - expressionsMap: - url: - type: STRING - valueOf: CNN.7 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: CNN.7 - - expressionType: nested - vars: - cnn8: STRING_ALL, CNN.8 - condition: $cnn8 NOT_NULL - expressionsMap: - url: - type: STRING - valueOf: CNN.8 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: CNN.8 \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CNN/Practitioner.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CNN/Practitioner.yml deleted file mode 100644 index ff3e1ac127a..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CNN/Practitioner.yml +++ /dev/null @@ -1,98 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Practitioner - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -identifier: - expressionType: nested - expressionsMap: - value: - type: STRING - valueOf: CNN.1 - expressionType: HL7Spec - extension_assigningAuthority: - generateList: true - expressionType: nested - vars: - cnn9: CNN.9 - cnn10: CNN.10 - cnn11: CNN.11 - condition: $cnn9 NOT_NULL || $cnn10 NOT_NULL || $cnn11 NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - valueOf: assigning-authority - extension: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - valueOf: namespace-id - valueString: - type: STRING - expressionType: HL7Spec - valueOf: CNN.9 - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - valueOf: universal-id - valueString: - type: STRING - expressionType: HL7Spec - valueOf: CNN.10 - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - valueOf: universal-id-type - valueCode: - type: STRING - expressionType: HL7Spec - valueOf: CNN.11 - -name: - expressionType: nested - expressionsMap: - family: - type: STRING - valueOf: CNN.2 - expressionType: HL7Spec - given: - generateList: true - expressionType: nested - expressions: - - expressionType: HL7Spec - valueOf: CNN.3 - type: STRING - - expressionType: HL7Spec - valueOf: CNN.4 - type: STRING - suffix: - generateList: true - expressionType: nested - expressions: - - expressionType: HL7Spec - valueOf: CNN.5 - type: STRING - - expressionType: HL7Spec - valueOf: CNN.7 - type: STRING - prefix: - type: STRING - valueOf: CNN.6 - expressionType: HL7Spec - -extension: - generateList: true - expressionType: nested - expressions: - - expressionType: resource - valueOf: datatypes/CNN/CNNExtension diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CQ/Quantity.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CQ/Quantity.yml deleted file mode 100644 index 9237b917fb0..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CQ/Quantity.yml +++ /dev/null @@ -1,28 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -value: - type: BIG_DECIMAL - expressionType: HL7Spec - valueOf: CQ.1 - -unit: - expressionType: nested - expressions: - - type: STRING - expressionType: HL7Spec - valueOf: CQ.2.2 - -extension: - condition: $cq2 NOT_NULL - generateList: true - expressionType: nested - vars: - cq2: STRING_ALL, CQ.2 - expressionsMap: - url: - type: SYSTEM_URL - value: 'cq-units' - valueCodeableConcept: - valueOf: datatypes/CE/CodeableConcept - expressionType: resource - specs: CQ.2 \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CWE/Annotation.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CWE/Annotation.yml deleted file mode 100644 index 5738d74bbd2..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CWE/Annotation.yml +++ /dev/null @@ -1,19 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -text: - type: STRING_ALL - valueOf: CWE - generateList: true - expressionType: HL7Spec - -extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: 'cwe-annotation' - valueCodeableConcept: - valueOf: datatypes/CWE/CodeableConcept - expressionType: resource - specs: CWE \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CWE/CodeableConcept.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CWE/CodeableConcept.yml deleted file mode 100644 index 76dd3c2546b..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CWE/CodeableConcept.yml +++ /dev/null @@ -1,127 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -coding: - generateList: true - expressionType: nested - vars: - code: String, CWE.1 - display: String, CWE.2 - system: SYSTEM_URL, CWE.3 - version: String, CWE.7 - expressionsMap: - code: - type: String - expressionType: HL7Spec - valueOf: CWE.1 - display: - type: String - expressionType: HL7Spec - valueOf: CWE.2 - system: - type: SYSTEM_URL - expressionType: HL7Spec - valueOf: CWE.3 - version: - type: String - expressionType: HL7Spec - valueOf: CWE.7 - extension_cwe-coding: - condition: $code NOT_NULL || $display NOT_NULL || $system NOT_NULL || $version NOT_NULL - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: cwe-coding - valueString: - value: coding - extension_cwe-coding-system: - condition: $coding-system NOT_NULL - generateList: true - expressionType: nested - vars: - coding-system: String, CWE.3 - expressionsMap: - url: - type: SYSTEM_URL - value: cwe-coding-system - valueString: - value: $coding-system - -coding_alt: - generateList: true - expressionType: nested - vars: - altCode: String, CWE.4 - altDisplay: String, CWE.5 - altSystem: SYSTEM_URL, CWE.6 - altVersion: String, CWE.8 - expressionsMap: - code: - type: String - expressionType: HL7Spec - valueOf: CWE.4 - display: - type: String - expressionType: HL7Spec - valueOf: CWE.5 - system: - type: SYSTEM_URL - expressionType: HL7Spec - valueOf: CWE.6 - version: - type: String - expressionType: HL7Spec - valueOf: CWE.8 - extension_cwe-coding: - condition: $altCode NOT_NULL || $altDisplay NOT_NULL || $altSystem NOT_NULL || $altVersion NOT_NULL - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: cwe-coding - valueString: - value: alt-coding - extension_cwe-coding-system: - condition: $coding-system NOT_NULL - generateList: true - expressionType: nested - vars: - coding-system: String, CWE.6 - expressionsMap: - url: - type: SYSTEM_URL - value: cwe-coding-system - valueString: - value: $coding-system - -text: - type: STRING - expressionType: HL7Spec - valueOf: CWE.9 - -extension: - generateList: true - expressionType: nested - expressions: - - generateList: true - expressionType: nested - condition: $hl7v2Field NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - type: STRING - valueOf: $hl7v2Field - - generateList: true - expressionType: nested - condition: $hl7v2Component NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Component - valueString: - type: STRING - valueOf: $hl7v2Component \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CWE/Organization.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CWE/Organization.yml deleted file mode 100644 index 53e69b95630..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CWE/Organization.yml +++ /dev/null @@ -1,60 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Organization - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -identifier: - generateList: true - expressionType: nested - expressionsMap: - value: - type: STRING - expressionType: HL7Spec - valueOf: CWE.1 - system: - type: STRING - expressionType: HL7Spec - valueOf: CWE.3 - -name: - type: STRING - expressionType: HL7Spec - valueOf: CWE.2 | CWE.9 - -extension: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: cwe-organization - valueCodeableConcept: - expressionType: resource - valueOf: datatypes/CWE/CodeableConcept - specs: $BASE_VALUE - - generateList: true - expressionType: nested - condition: $cweOrganizationHL7Field NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - type: STRING - valueOf: $cweOrganizationHL7Field - - generateList: true - expressionType: nested - condition: $cweOrganizationHL7Component NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Component - valueString: - type: STRING - valueOf: $cweOrganizationHL7Component \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CX/CXExtension.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CX/CXExtension.yml deleted file mode 100644 index 9eb5c811fe1..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CX/CXExtension.yml +++ /dev/null @@ -1,46 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - type: SYSTEM_URL - value: cx-identifier - -extension: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - condition: $cx5 NOT_NULL - vars: - cx5: CX.5 - expressionsMap: - url: - type: STRING - value: CX.5 - valueString: - type: STRING - valueOf: $cx5 - expressionType: HL7Spec - - expressionType: nested - vars: - cx9: STRING_ALL, CX.9 - condition: $cx9 NOT_NULL - expressionsMap: - url: - type: STRING - value: CX.9 - valueCodeableConcept: - valueOf: datatypes/CWE/CodeableConcept - expressionType: resource - specs: CX.9 - - expressionType: nested - vars: - cx10: STRING_ALL, CX.10 - condition: $cx10 NOT_NULL - expressionsMap: - url: - type: STRING - value: CX.10 - valueCodeableConcept: - valueOf: datatypes/CWE/CodeableConcept - expressionType: resource - specs: CX.10 \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CX/Identifier.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CX/Identifier.yml deleted file mode 100644 index ec5604f1241..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CX/Identifier.yml +++ /dev/null @@ -1,222 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Identifier - -value: - type: STRING - valueOf: CX.1 - expressionType: HL7Spec - -# Checking if HD is an Organization or a System by looking at the ID type. -# If ID type is null or ID type is not ISO or UUID, treat as organization. -# Otherwise, treat as system. -assigner_1: - vars: - cx43: String, CX.4.3 - cx4: STRING_ALL, CX.4 - condition: $cx43 NULL && $cx4 NOT_NULL - valueOf: datatypes/HD/Organization - expressionType: reference - specs: CX.4 - -assigner_2: - vars: - cx43: String, CX.4.3 - condition: $cx43 NOT_NULL && $cx43 NOT_EQUALS ISO && $cx43 NOT_EQUALS UUID - valueOf: datatypes/HD/Organization - expressionType: reference - specs: CX.4 - -system: - vars: - cx41: String, CX.4.1 - cx42: String, CX.4.2 - cx43: String, CX.4.3 - condition: $cx43 EQUALS ISO || $cx43 EQUALS UUID - expressionType: nested - expressions: - - condition: $cx41 NOT_NULL - type: STRING - valueOf: $cx41 - - condition: $cx41 NULL && $cx43 EQUALS ISO - constants: - prefix: "urn:oid:" - vars: - systemURI: $prefix + CX.4.2 - type: STRING - valueOf: $systemURI - - condition: $cx41 NULL && $cx43 EQUALS UUID - constants: - prefix: "urn:uuid:" - vars: - systemURI: $prefix + CX.4.2 - type: STRING - valueOf: $systemURI -_system: - vars: - cx41: String, CX.4.1 - cx42: String, CX.4.2 - cx43: String, CX.4.3 - condition: $cx43 EQUALS ISO || $cx43 EQUALS UUID - expressionType: nested - expressionsMap: - extension_1-namespace-id: - generateList: true - expressionType: nested - condition: $cx41 NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: namespace-id - valueString: - type: STRING - valueOf: $cx41 - expressionType: HL7Spec - extension_2-universal-id: - generateList: true - expressionType: nested - condition: $cx42 NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: universal-id - valueString: - type: STRING - valueOf: $cx42 - expressionType: HL7Spec - extension_3-universal-id-type: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: universal-id-type - valueString: - type: STRING - valueOf: $cx43 - expressionType: HL7Spec - -type: - expressionType: nested - vars: - code: $code | CX.5 - system: $system - condition: $code NOT_NULL || $system NOT_NULL - expressions: - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - type: STRING - valueOf: $code - system: - type: STRING - valueOf: $system - text: - type: STRING - condition: $CXIdentifierText NOT_NULL - valueOf: $CXIdentifierText - -period: - vars: - startDate: CX.7 - endDate: CX.8 - condition: $startDate NOT_NULL || $endDate NOT_NULL - expressionType: nested - expressionsMap: - start: - valueOf: "GeneralUtils.dateTimeWithZoneId(startDate,ZONEID)" - expressionType: JEXL - _start: - expressionType: nested - condition: $startDate NOT_NULL - expressionsMap: - extension_1: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2-date-time - valueString: - type: STRING - valueOf: $startDate - expressionType: HL7Spec - end: - valueOf: "GeneralUtils.dateTimeWithZoneId(endDate,ZONEID)" - expressionType: JEXL - _end: - expressionType: nested - condition: $endDate NOT_NULL - expressionsMap: - extension_1: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2-date-time - valueString: - type: STRING - valueOf: $endDate - expressionType: HL7Spec - -extension: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: identifier-check-digit - valueString: - type: STRING - expressionType: HL7Spec - valueOf: CX.2 - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: naming-system-check-digit - valueString: - type: STRING - expressionType: HL7Spec - valueOf: CX.3 - - expressionType: nested - condition: $cx6 NOT_NULL - vars: - cx6: CX.6 - expressionsMap: - url: - type: SYSTEM_URL - value: assigning-facility - valueReference: - valueOf: datatypes/HD/Organization - expressionType: reference - specs: CX.6 - - expressionType: resource - valueOf: datatypes/CX/CXExtension - - generateList: true - expressionType: nested - condition: $CXIdentifierField NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - type: STRING - valueOf: $CXIdentifierField - - generateList: true - expressionType: nested - condition: $CXIdentifierComponent NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Component - valueString: - type: STRING - valueOf: $CXIdentifierComponent diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CX/RelatedPerson-mother.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CX/RelatedPerson-mother.yml deleted file mode 100644 index 3d1da98f2f4..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/CX/RelatedPerson-mother.yml +++ /dev/null @@ -1,13 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: RelatedPerson - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -identifier: - expressionType: resource - specs: CX - valueOf: datatypes/CX/Identifier \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/DLD/Location.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/DLD/Location.yml deleted file mode 100644 index f207f43e245..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/DLD/Location.yml +++ /dev/null @@ -1,25 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Location - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -type: - type: STRING - valueOf: DLD.1 - expressionType: HL7Spec - -extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: dld2-effective-date - valueString: - valueOf: DLD.2 - type: STRING - expressionType: HL7Spec \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/DR/Period.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/DR/Period.yml deleted file mode 100644 index 378bd28002b..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/DR/Period.yml +++ /dev/null @@ -1,51 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -start: - condition: $dateTimeIn NOT_NULL - type: STRING - valueOf: "GeneralUtils.dateTimeWithZoneId(dateTimeIn,ZONEID)" - expressionType: JEXL - vars: - dateTimeIn: DR.1 -_start: - expressionType: nested - vars: - dr1: DR.1 - condition: $dr1 NOT_NULL - expressionsMap: - extension_1: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2-date-time - valueString: - type: STRING - valueOf: DR.1 - expressionType: HL7Spec - -end: - condition: $dateTimeIn NOT_NULL - type: STRING - valueOf: "GeneralUtils.dateTimeWithZoneId(dateTimeIn,ZONEID)" - expressionType: JEXL - vars: - dateTimeIn: DR.2 -_end: - expressionType: nested - condition: $dr2 NOT_NULL - vars: - dr2: DR.2 - expressionsMap: - extension_1: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2-date-time - valueString: - type: STRING - valueOf: DR.2 - expressionType: HL7Spec \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/ED/Attachment.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/ED/Attachment.yml deleted file mode 100644 index 40286edae49..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/ED/Attachment.yml +++ /dev/null @@ -1,36 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -extension: - generateList: true - expressionType: nested - expressions: - - expressionType: resource - valueOf: datatypes/ED/EDExtension - - expressionType: nested - vars: - ed2: STRING_ALL, ED.2 - ed3: STRING_ALL, ED.3 - condition: $ed3 NULL && $ed2 NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: alternate-codes - valueCodeableConcept: - valueOf: datatypes/ID/CodeableConcept - specs: ED.2 - expressionType: resource - - -contentType: - valueOf: ED.3 - type: STRING - expressionType: HL7Spec - -data: - vars: - ed4: STRING, ED.4 - condition: $ed4 EQUALS Base64 - valueOf: ED.5 - type: STRING - expressionType: HL7Spec - diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/ED/EDExtension.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/ED/EDExtension.yml deleted file mode 100644 index 6b3e2057fe1..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/ED/EDExtension.yml +++ /dev/null @@ -1,53 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - type: SYSTEM_URL - value: ed-attachment - -extension: - generateList: true - expressionType: nested - expressions: - - expressionType: resource - valueOf: datatypes/HD/ExtensionHD - specs: ED.1 - constants: - extensionUrl: ED.1 - isStringUrl: true - - expressionType: nested - vars: - ed2: STRING_ALL, ED.2 - ed3: STRING_ALL, ED.3 - condition: $ed3 NOT_NULL && $ed2 NOT_NULL - expressionsMap: - url: - type: STRING - value: ED.2 - valueCodeableConcept: - valueOf: datatypes/ID/CodeableConcept - specs: ED.2 - expressionType: resource - - expressionType: nested - vars: - ed4: STRING, ED.4 - condition: $ed4 NOT_NULL - expressionsMap: - url: - type: STRING - value: ED.4 - valueString: - valueOf: ED.4 - expressionType: HL7Spec - type: STRING - - expressionType: nested - vars: - ed5: STRING, ED.5 - condition: $ed5 NOT_NULL - expressionsMap: - url: - type: STRING - value: ED.5 - valueString: - valueOf: ED.5 - expressionType: HL7Spec - type: STRING \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EI/Identifier-DefaultAssigner.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EI/Identifier-DefaultAssigner.yml deleted file mode 100644 index 1948f302ead..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EI/Identifier-DefaultAssigner.yml +++ /dev/null @@ -1,50 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -value: - expressionType: HL7Spec - type: STRING - valueOf: EI.1 - -assigner: - valueOf: datatypes/HD/Organization - expressionType: reference - specs: $eiAssigningOrganization - -extension: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: namespace-id - valueString: - expressionType: HL7Spec - type: STRING - valueOf: EI.2 - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: universal-id - valueString: - expressionType: HL7Spec - type: STRING - valueOf: EI.3 - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: universal-id-type - valueString: - expressionType: HL7Spec - type: STRING - valueOf: EI.4 - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: ei-assigner-organization-type - valueString: - valueOf: 'organization' \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EI/Identifier-Organization.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EI/Identifier-Organization.yml deleted file mode 100644 index 7298b64f8c3..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EI/Identifier-Organization.yml +++ /dev/null @@ -1,21 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -value: - expressionType: HL7Spec - type: STRING - valueOf: EI.1 - -assigner: - expressionType: reference - valueOf: datatypes/EI/Organization - specs: $BASE_VALUE - -extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: ei-assigner-organization-type - valueString: - valueOf: 'default' \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EI/Identifier.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EI/Identifier.yml deleted file mode 100644 index a130f73960c..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EI/Identifier.yml +++ /dev/null @@ -1,92 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -value: - type: STRING - valueOf: EI.1 - expressionType: HL7Spec - -type: - condition: $code NOT_NULL || $system NOT_NULL - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - expressionsMap: - code: - type: STRING - valueOf: $code - system: - type: STRING - valueOf: $system - -extension_1-assigning-authority: - generateList: true - expressionType: nested - vars: - ei2: EI.2 - ei3: EI.3 - ei4: EI.4 - expressionsMap: - url: - type: SYSTEM_URL - valueOf: assigning-authority - extension_url: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - condition: $ei2 NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - valueOf: namespace-id - valueString: - type: STRING - expressionType: HL7Spec - valueOf: $ei2 - - expressionType: nested - condition: $ei3 NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - valueOf: universal-id - valueString: - type: STRING - expressionType: HL7Spec - valueOf: $ei3 - - expressionType: nested - condition: $ei4 NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - valueOf: universal-id-type - valueCode: - type: STRING - expressionType: HL7Spec - valueOf: $ei4 - -extension: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - condition: $hl7v2Field NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - type: STRING - valueOf: $hl7v2Field - - expressionType: nested - condition: $hl7v2Component NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Component - valueString: - type: STRING - valueOf: $hl7v2Component \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EI/Organization.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EI/Organization.yml deleted file mode 100644 index 069148e051b..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EI/Organization.yml +++ /dev/null @@ -1,47 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Organization - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -identifier: - expressionType: nested - generateList: true - expressions: - - expressionType: nested - expressionsMap: - value: - type: STRING - expressionType: HL7Spec - valueOf: EI.2 - extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - valueOf: EI.2 - - expressionType: nested - expressionsMap: - value: - type: STRING - expressionType: HL7Spec - valueOf: EI.3 - type: - expressionType: resource - specs: EI.4 - valueOf: datatypes/ID/CodeableConcept - extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - valueOf: "EI.3,EI.4" \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EIP/EI/ExtensionEI.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EIP/EI/ExtensionEI.yml deleted file mode 100644 index 90525e16bc8..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EIP/EI/ExtensionEI.yml +++ /dev/null @@ -1,60 +0,0 @@ -# $schema: ./../../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - type: SYSTEM_URL - valueOf: $extensionUrl - -extension: - generateList: true - expressionType: nested - expressions: - - vars: - ei1: STRING, EI.1 - condition: $ei1 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: entity-identifier - valueString: - expressionType: HL7Spec - type: STRING - valueOf: EI.1 - - vars: - ei2: STRING, EI.2 - condition: $ei2 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: namespace-id - valueString: - expressionType: HL7Spec - type: STRING - valueOf: EI.2 - - vars: - ei3: STRING, EI.3 - condition: $ei3 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: universal-id - valueString: - expressionType: HL7Spec - type: STRING - valueOf: EI.3 - - vars: - ei4: STRING, EI.4 - condition: $ei4 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: universal-id-type - valueString: - expressionType: HL7Spec - type: STRING - valueOf: EI.4 - - diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EIP/Identifier-FillerAssignedIdentifier.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EIP/Identifier-FillerAssignedIdentifier.yml deleted file mode 100644 index 3360abc1ee8..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EIP/Identifier-FillerAssignedIdentifier.yml +++ /dev/null @@ -1,81 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -value: - type: STRING - valueOf: EIP.2.1 - expressionType: HL7Spec - -type: - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - expressionsMap: - code: - type: STRING - valueOf: "FGN" - system: - type: STRING - valueOf: "http://terminology.hl7.org/CodeSystem/v2-0203" - -extension: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: namespace-id - valueString: - expressionType: HL7Spec - type: STRING - valueOf: EIP.2.2 - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: universal-id - valueString: - expressionType: HL7Spec - type: STRING - valueOf: EIP.2.3 - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: universal-id-type - valueString: - expressionType: HL7Spec - type: STRING - valueOf: EIP.2.4 - - vars: - eip1: STRING_ALL, EIP.1 - extensionUrl: $backupExtension - condition: $eip1 NOT_NULL - expressionType: resource - valueOf: datatypes/EIP/EI/ExtensionEI - specs: EIP.1 - - generateList: true - expressionType: nested - condition: $hl7v2Field NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - type: STRING - valueOf: $hl7v2Field - - generateList: true - expressionType: nested - condition: $hl7v2Component NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Component - valueString: - type: STRING - valueOf: $hl7v2Component \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EIP/Identifier-PlacerAssignedIdentifier.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EIP/Identifier-PlacerAssignedIdentifier.yml deleted file mode 100644 index 73c32876cd4..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/EIP/Identifier-PlacerAssignedIdentifier.yml +++ /dev/null @@ -1,82 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -value: - type: STRING - valueOf: EIP.1.1 - expressionType: HL7Spec - -type: - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - expressionsMap: - code: - type: STRING - valueOf: "PGN" - system: - type: STRING - valueOf: "http://terminology.hl7.org/CodeSystem/v2-0203" - -extension: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: namespace-id - valueString: - expressionType: HL7Spec - type: STRING - valueOf: EIP.1.2 - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: universal-id - valueString: - expressionType: HL7Spec - type: STRING - valueOf: EIP.1.3 - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: universal-id-type - valueString: - expressionType: HL7Spec - type: STRING - valueOf: EIP.1.4 - - vars: - eip2: STRING_ALL, EIP.2 - extensionUrl: $backupExtension - condition: $eip2 NOT_NULL - generateList: true - expressionType: resource - valueOf: datatypes/EIP/EI/ExtensionEI - specs: EIP.2 - - generateList: true - expressionType: nested - condition: $hl7v2Field NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - type: STRING - valueOf: $hl7v2Field - - generateList: true - expressionType: nested - condition: $hl7v2Component NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Component - valueString: - type: STRING - valueOf: $hl7v2Component \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/FN/ExtensionHumanName-family.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/FN/ExtensionHumanName-family.yml deleted file mode 100644 index 0216dc917ec..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/FN/ExtensionHumanName-family.yml +++ /dev/null @@ -1,51 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -extension: - generateList: true - expressionType: nested - vars: - fn2: String, FN.2 - fn3: String, FN.3 - fn4: String, FN.4 - fn5: String, FN.5 - expressions: - - expressionType: nested - condition: $fn2 NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: humanname-own-prefix - valueString: - type: STRING - valueOf: FN.2 - expressionType: HL7Spec - - expressionType: nested - condition: $fn3 NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: humanname-own-name - valueString: - type: STRING - valueOf: FN.3 - expressionType: HL7Spec - - expressionType: nested - condition: $fn4 NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: humanname-partner-prefix - valueString: - type: STRING - valueOf: FN.4 - expressionType: HL7Spec - - expressionType: nested - condition: $fn5 NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: humanname-partner-name - valueString: - type: STRING - valueOf: FN.5 - expressionType: HL7Spec \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/HD/ExtensionAssigningAuthority.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/HD/ExtensionAssigningAuthority.yml deleted file mode 100644 index d5fc7cd9d8a..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/HD/ExtensionAssigningAuthority.yml +++ /dev/null @@ -1,74 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - type: SYSTEM_URL - value: 'assigning-authority' - -extension_1-namespaceId: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: namespace-id - valueString: - type: STRING - valueOf: HD.1 - expressionType: HL7Spec - -extension_2-universalId: - generateList: true - condition: $universalIdType EQUALS ISO || $universalIdType EQUALS UUID - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: universal-id - valueString: - type: String - valueOf: HD.2 - expressionType: HL7Spec - vars: - universalIdType: String, HD.3 - -extension_3-universalIdType: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: universal-id-type - valueCode: - type: STRING - valueOf: HD.3 - expressionType: HL7Spec - -extension_4-universalIdUnknownType: - condition: $universalIdType NOT_EQUALS ISO && $universalIdType NOT_EQUALS UUID - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: universal-id-unknown-type - valueCode: - type: STRING - valueOf: HD.2 - expressionType: HL7Spec - vars: - universalIdType: String, HD.3 - -extension_5-universalIdUnknownType: - condition: $universalIdType NULL - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: universal-id-unknown-type - valueCode: - type: STRING - valueOf: HD.2 - expressionType: HL7Spec - vars: - universalIdType: String, HD.3 \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/HD/ExtensionHD.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/HD/ExtensionHD.yml deleted file mode 100644 index 931f9f88e8d..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/HD/ExtensionHD.yml +++ /dev/null @@ -1,55 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - expressionType: nested - expressions: - - type: SYSTEM_URL - condition: $isStringUrl NULL - valueOf: $extensionUrl - - type: STRING - condition: $isStringUrl NOT_NULL - valueOf: $extensionUrl - - -extension: - generateList: true - expressionType: nested - expressions: - - vars: - hd1: STRING, HD.1 - condition: $hd1 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: namespace-id - valueString: - type: STRING - valueOf: HD.1 - expressionType: HL7Spec - - vars: - hd2: STRING, HD.2 - condition: $hd2 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: universal-id - valueString: - type: STRING - valueOf: HD.2 - expressionType: HL7Spec - - vars: - hd3: STRING, HD.3 - condition: $hd3 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: universal-id-type - valueString: - type: STRING - valueOf: HD.3 - expressionType: HL7Spec - - diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierNamespaceId.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierNamespaceId.yml deleted file mode 100644 index b7834cb80d8..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierNamespaceId.yml +++ /dev/null @@ -1,15 +0,0 @@ -# $schema: ./../../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -value: - type: STRING - expressionType: HL7Spec - valueOf: HD.1 -extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - valueOf: HD.1 \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierUniversalId.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierUniversalId.yml deleted file mode 100644 index 2d060644c46..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierUniversalId.yml +++ /dev/null @@ -1,19 +0,0 @@ -# $schema: ./../../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -value: - type: STRING - expressionType: HL7Spec - valueOf: HD.2 -type: - expressionType: resource - specs: HD.3 - valueOf: datatypes/ID/CodeableConcept -extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - valueOf: "HD.2,HD.3" \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/HD/Location.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/HD/Location.yml deleted file mode 100644 index 3fc98dddbfb..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/HD/Location.yml +++ /dev/null @@ -1,74 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Location - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -name: - valueOf: HD.1 - type: STRING - expressionType: HL7Spec - -identifier_1: - expressionType: nested - generateList: true - vars: - universalId: String, HD.3 - expressionsMap: - value_1: - condition: $universalId EQUALS ISO || $universalId EQUALS UUID - type: STRING - expressionType: HL7Spec - valueOf: HD.2 - -extension_1-unknownUniversalIdType: - condition: $universalId NOT_EQUALS ISO && $universalId NOT_EQUALS UUID - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: universal-id-unknown-type - valueString: - expressionType: HL7Spec - type: STRING - valueOf: HD.2 - vars: - universalId: STRING, HD.3 - -extension_2-unknownUniversalIdType: - condition: $universalId NULL - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: universal-id-unknown-type - valueString: - expressionType: HL7Spec - type: STRING - valueOf: HD.2 - vars: - universalId: STRING, HD.3 - -extension_3-universalIdType: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: universal-id-type - valueCode: - expressionType: HL7Spec - type: STRING - valueOf: HD.3 - -physicalType: - valueOf: datatype/CodeableConcept_var - expressionType: resource - constants: - code: si - system: "http://terminology.hl7.org/CodeSystem/location-physical-type" \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/HD/Organization.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/HD/Organization.yml deleted file mode 100644 index a1c24c51fce..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/HD/Organization.yml +++ /dev/null @@ -1,91 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Organization - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -identifier_1: - condition: $hd1 NOT_NULL - vars: - hd1: String, HD.1 - expressionType: nested - generateList: true - expressionsMap: - value_1: - type: STRING - expressionType: HL7Spec - valueOf: HD.1 - extension_1-namespaceId: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - valueOf: HD.1 - -identifier_2: - condition: $hd2 NOT_NULL - expressionType: nested - generateList: true - vars: - hd3: String, HD.3 - hd2: String, HD.2 - expressionsMap: - value: - type: STRING - expressionType: HL7Spec - valueOf: HD.2 - type: - valueOf: datatypes/ID/CodeableConceptUniversalid - generateList: true - expressionType: resource - specs: HD.3 - system: - condition: $hd3 EQUALS ISO || $hd3 EQUALS UUID - type: STRING - valueOf: "urn:ietf:rfc:3986" - extension_1-universalId: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - valueOf: "HD.2,HD.3" - -address: - condition: $organizationCountry NOT_NULL - valueOf: datatypes/XAD/Address - expressionType: resource - generateList: true - vars: - country: $organizationCountry - -extension: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - condition: $hdOrganizationHL7Field NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - type: STRING - valueOf: $hdOrganizationHL7Field - - expressionType: nested - condition: $hdOrganizationHL7Component NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Component - valueString: - type: STRING - valueOf: $hdOrganizationHL7Component \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/ID/CodeableConcept.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/ID/CodeableConcept.yml deleted file mode 100644 index 4b574d46ca6..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/ID/CodeableConcept.yml +++ /dev/null @@ -1,22 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -coding: - condition: $BASE_VALUE NOT_NULL - generateList: true - expressionType: nested - expressions: - - expressionType: nested - expressionsMap: - code: - expressionType: HL7Spec - type: STRING - valueOf: $BASE_VALUE - extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: codeable-concept-id - valueBoolean: - valueOf: "true" \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/ID/CodeableConceptUniversalid.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/ID/CodeableConceptUniversalid.yml deleted file mode 100644 index 00490717b2b..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/ID/CodeableConceptUniversalid.yml +++ /dev/null @@ -1,15 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -coding: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - expressionsMap: - code: - expressionType: HL7Spec - type: STRING - valueOf: $BASE_VALUE - system: - type: STRING - value: "http://terminology.hl7.org/CodeSystem/v2-0301" \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/MOC/Extension.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/MOC/Extension.yml deleted file mode 100644 index 5ef51c9c0d3..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/MOC/Extension.yml +++ /dev/null @@ -1,46 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - type: STRING - valueOf: $mocExtensionName - -extension: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - vars: - moc1: STRING_ALL, MOC.1 - condition: $moc1 NOT_NULL - expressionsMap: - url: - type: STRING - value: moc-1-1-monetary-amount - valueString: - type: STRING - expressionType: HL7Spec - valueOf: MOC.1.1 - - expressionType: nested - vars: - moc1: STRING_ALL, MOC.1 - condition: $moc1 NOT_NULL - expressionsMap: - url: - type: STRING - value: moc-1-2-monetary-denomination - valueString: - type: STRING - expressionType: HL7Spec - valueOf: MOC.1.2 - - expressionType: nested - vars: - moc2: STRING_ALL, MOC.2 - condition: $moc2 NOT_NULL - expressionsMap: - url: - type: STRING - value: moc-2-charge-code - valueCodeableConcept: - valueOf: datatypes/CE/CodeableConcept - expressionType: resource - specs: MOC.2 \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/MSG/Coding.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/MSG/Coding.yml deleted file mode 100644 index 8199ee3d799..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/MSG/Coding.yml +++ /dev/null @@ -1,24 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -display: - type: STRING - vars: - msg1: MSG.1 - msg2: MSG.2 - msg3: MSG.3 - msgDisplay: MSG.1 + $caret + MSG.2 + $caret + MSG.3 - constants: - caret: "^" - valueOf: $msgDisplay - -code: - type: STRING - expressionType: HL7Spec - valueOf: MSG.2 - -system: - vars: - msg2: MSG.2 - condition: $msg2 NOT_NULL - type: STRING - value: "http://terminology.hl7.org/CodeSystem/v2-0003" \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/NDL/HD/Location.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/NDL/HD/Location.yml deleted file mode 100644 index d49f3d48cc1..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/NDL/HD/Location.yml +++ /dev/null @@ -1,68 +0,0 @@ -# $schema: ./../../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Location - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -identifier: - expressionType: nested - generateList: true - expressions: - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierNamespaceId - specs: $BASE_VALUE - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierUniversalId - specs: $BASE_VALUE - -status: - valueOf: $ndlLocationStatus - type: STRING - expressionType: HL7Spec - -mode: - value: 'instance' - type: STRING - -physicalType: - expressionType: nested - expressionsMap: - coding: - expressionType: nested - generateList: true - expressions: - - expressionType: nested - expressionsMap: - code: - condition: $physicalTypeCode NOT_EQUALS poc - type: STRING - valueOf: $physicalTypeCode - _code: - condition: $physicalTypeCode EQUALS poc - expressionType: nested - expressionsMap: - extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: location-physical-type-poc - valueString: - value: "poc" - system: - type: STRING - value: "http://terminology.hl7.org/CodeSystem/location-physical-type" - -partOf: - valueOf: datatype/Reference - expressionType: resource - specs: $Location - condition: $refLocation EQUALS $partOfId - vars: - refLocation: $BASE_VALUE, GeneralUtils.extractAttribute(refLocation,"$.identifier.value[0].value","String") - - diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/NDL/IS/Location.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/NDL/IS/Location.yml deleted file mode 100644 index 95237101b75..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/NDL/IS/Location.yml +++ /dev/null @@ -1,66 +0,0 @@ -# $schema: ./../../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Location - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -identifier: - generateList: true - expressionType: nested - expressionsMap: - value: - type: STRING - valueOf: IS - expressionType: HL7Spec - -status: - valueOf: $ndlLocationStatus - type: STRING - expressionType: HL7Spec - -mode: - value: 'instance' - type: STRING - -physicalType: - expressionType: nested - expressionsMap: - coding: - expressionType: nested - generateList: true - expressions: - - expressionType: nested - expressionsMap: - code: - condition: $physicalTypeCode NOT_EQUALS poc - type: STRING - valueOf: $physicalTypeCode - _code: - condition: $physicalTypeCode EQUALS poc - expressionType: nested - expressionsMap: - extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: location-physical-type-poc - valueString: - value: "poc" - system: - type: STRING - value: "http://terminology.hl7.org/CodeSystem/location-physical-type" - -partOf: - valueOf: datatype/Reference - expressionType: resource - specs: $Location - condition: $refLocation EQUALS $partOfId - vars: - refLocation: $BASE_VALUE, GeneralUtils.extractAttribute(refLocation,"$.identifier.value[0].value","String") - - diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/NDL/NDLExtension.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/NDL/NDLExtension.yml deleted file mode 100644 index 9908f03b282..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/NDL/NDLExtension.yml +++ /dev/null @@ -1,22 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - type: SYSTEM_URL - valueOf: ndl-practitioner-role - -extension: - vars: - ndl9: NDL.9 - expressionType: nested - generateList: true - expressions: - - expressionType: nested - condition: $ndl9 NOT_NULL - expressionsMap: - url: - type: STRING - valueOf: NDL.9 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: NDL.9 \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/NDL/PractitionerRole.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/NDL/PractitionerRole.yml deleted file mode 100644 index a70671f2b88..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/NDL/PractitionerRole.yml +++ /dev/null @@ -1,147 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: PractitionerRole - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -practitioner: - valueOf: datatypes/CNN/Practitioner - expressionType: reference - specs: NDL.1 - -period: - vars: - startDate: NDL.2 - endDate: NDL.3 - condition: $startDate NOT_NULL || $endDate NOT_NULL - expressionType: nested - expressionsMap: - start: - valueOf: "GeneralUtils.dateTimeWithZoneId(startDate,ZONEID)" - expressionType: JEXL - _start: - expressionType: nested - condition: $startDate NOT_NULL - expressionsMap: - extension_1: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2-date-time - valueString: - type: STRING - valueOf: $startDate - expressionType: HL7Spec - end: - valueOf: "GeneralUtils.dateTimeWithZoneId(endDate,ZONEID)" - expressionType: JEXL - _end: - expressionType: nested - condition: $endDate NOT_NULL - expressionsMap: - extension_1: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2-date-time - valueString: - type: STRING - valueOf: $endDate - expressionType: HL7Spec - -location: - generateList: true - expressionType: nested - expressions: - - valueOf: datatypes/NDL/HD/Location - condition: $ndl7 NOT_NULL - expressionType: reference - specs: NDL.7 - vars: - ndlLocationStatus: NDL.8 - ndl7: NDL.7 - constants: - physicalTypeCode: "si" - - valueOf: datatypes/NDL/IS/Location - condition: $ndl10 NOT_NULL - expressionType: reference - specs: NDL.10 - vars: - refLocation: $BASE_VALUE, GeneralUtils.extractAttribute(refLocation,"$.identifier[0].value","String") - partOfId: NLD.7.1 - ndlLocationStatus: NDL.8 - ndl10: NDL.10 - constants: - physicalTypeCode: "bu" - - valueOf: datatypes/NDL/IS/Location - condition: $ndl4 NOT_NULL - expressionType: reference - specs: NDL.4 - vars: - refLocation: $BASE_VALUE, GeneralUtils.extractAttribute(refLocation,"$.identifier[0].value","String") - partOfId: NLD.10 - ndlLocationStatus: NDL.8 - ndl4: NDL.4 - constants: - physicalTypeCode: "poc" - - valueOf: datatypes/NDL/IS/Location - condition: $ndl11 NOT_NULL - expressionType: reference - specs: NDL.11 - vars: - refLocation: $BASE_VALUE, GeneralUtils.extractAttribute(refLocation,"$.identifier[0].value","String") - partOfId: NLD.4 - ndlLocationStatus: NDL.8 - ndl11: NDL.11 - constants: - physicalTypeCode: "lvl" - - valueOf: datatypes/NDL/IS/Location - condition: $ndl5 NOT_NULL - expressionType: reference - specs: NDL.5 - vars: - refLocation: $BASE_VALUE, GeneralUtils.extractAttribute(refLocation,"$.identifier[0].value","String") - partOfId: NLD.4 - ndlLocationStatus: NDL.8 - ndl5: NDL.5 - constants: - physicalTypeCode: "ro" - - valueOf: datatypes/NDL/IS/Location - condition: $ndl6 NOT_NULL - expressionType: reference - specs: NDL.6 - vars: - refLocation: $BASE_VALUE, GeneralUtils.extractAttribute(refLocation,"$.identifier[0].value","String") - partOfId: NLD.5 - ndlLocationStatus: NDL.8 - ndl6: NDL.6 - constants: - physicalTypeCode: "bd" - - -extension: - generateList: true - expressionType: nested - condition: $performerParticipationType NOT_NULL - expressions: - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: event-performerFunction - valueCodeableConcept: - valueOf: datatype/CodeableConcept_var - expressionType: resource - vars: - code: $performerParticipationType - constants: - system: "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" - - expressionType: resource - valueOf: datatypes/NDL/NDLExtension \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/NR/Range.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/NR/Range.yml deleted file mode 100644 index aa68365fc9d..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/NR/Range.yml +++ /dev/null @@ -1,17 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -low: - expressionType: nested - expressionsMap: - value: - type: STRING - expressionType: HL7Spec - valueOf: NR.1 -high: - expressionType: nested - expressionsMap: - value: - type: STRING - expressionType: HL7Spec - valueOf: NR.2 - diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PL/Location.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PL/Location.yml deleted file mode 100644 index ea6e86567c4..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PL/Location.yml +++ /dev/null @@ -1,292 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Location - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -identifier: - generateList: true - expressionType: nested - vars: - pl3: STRING_ALL, PL.3 - pl2: STRING_ALL, PL.2 - pl1: STRING_ALL, PL.1 - pl8: STRING_ALL, PL.8 - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - pl10: STRING_ALL, PL.10 - pl11: STRING_ALL, PL.11 - expressions: - - expressionType: nested - generateList: true - condition: $pl3 NOT_NULL - expressions: - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.3 - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.3 - - expressionType: resource - condition: $pl11 NULL && $pl10 NOT_NULL - valueOf: datatypes/EI/Identifier-Organization - specs: PL.10 - - expressionType: resource - vars: - eiAssigningOrganization: PL.11 - condition: $pl11 NOT_NULL && $pl10 NOT_NULL - valueOf: datatypes/EI/Identifier-DefaultAssigner - specs: PL.10 - - expressionType: nested - condition: $pl3 NULL && $pl2 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.2 - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.2 - - expressionType: resource - condition: $pl11 NULL && $pl10 NOT_NULL - valueOf: datatypes/EI/Identifier-Organization - specs: PL.10 - - expressionType: resource - vars: - eiAssigningOrganization: PL.11 - condition: $pl11 NOT_NULL && $pl10 NOT_NULL - valueOf: datatypes/EI/Identifier-DefaultAssigner - specs: PL.10 - - expressionType: nested - condition: $pl3 NULL && $pl2 NULL && $pl1 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.1 - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.1 - - expressionType: resource - condition: $pl11 NULL && $pl10 NOT_NULL - valueOf: datatypes/EI/Identifier-Organization - specs: PL.10 - - expressionType: resource - vars: - eiAssigningOrganization: PL.11 - condition: $pl11 NOT_NULL && $pl10 NOT_NULL - valueOf: datatypes/EI/Identifier-DefaultAssigner - specs: PL.10 - - expressionType: nested - condition: $pl3 NULL && $pl2 NULL && $pl1 NULL && $pl8 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.8 - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.8 - - expressionType: resource - condition: $pl11 NULL && $pl10 NOT_NULL - valueOf: datatypes/EI/Identifier-Organization - specs: PL.10 - - expressionType: resource - vars: - eiAssigningOrganization: PL.11 - condition: $pl11 NOT_NULL && $pl10 NOT_NULL - valueOf: datatypes/EI/Identifier-DefaultAssigner - specs: PL.10 - - expressionType: nested - condition: $pl3 NULL && $pl2 NULL && $pl1 NULL && $pl8 NULL && $pl7 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.7 - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.7 - - expressionType: resource - condition: $pl11 NULL && $pl10 NOT_NULL - valueOf: datatypes/EI/Identifier-Organization - specs: PL.10 - - expressionType: resource - vars: - eiAssigningOrganization: PL.11 - condition: $pl11 NOT_NULL && $pl10 NOT_NULL - valueOf: datatypes/EI/Identifier-DefaultAssigner - specs: PL.10 - - expressionType: nested - condition: $pl3 NULL && $pl2 NULL && $pl1 NULL && $pl8 NULL && $pl7 NULL && $pl4 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.4 - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.4 - - expressionType: resource - condition: $pl11 NULL && $pl10 NOT_NULL - valueOf: datatypes/EI/Identifier-Organization - specs: PL.10 - - expressionType: resource - vars: - eiAssigningOrganization: PL.11 - condition: $pl11 NOT_NULL && $pl10 NOT_NULL - valueOf: datatypes/EI/Identifier-DefaultAssigner - specs: PL.10 - -physicalType: - expressionType: nested - vars: - pl3: STRING_ALL, PL.3 - pl2: STRING_ALL, PL.2 - pl1: STRING_ALL, PL.1 - pl8: STRING_ALL, PL.8 - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - constants: - system: "http://terminology.hl7.org/CodeSystem/location-physical-type" - expressions: - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "bd" - system: - valueOf: $system - condition: $pl3 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "ro" - system: - valueOf: $system - condition: $pl3 NULL && $pl2 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - expressionType: nested - generateList: true - expressions: - - expressionType: nested - expressionsMap: - _code: - expressionType: nested - expressionsMap: - extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: location-physical-type-poc - valueString: - value: "poc" - system: - type: STRING - value: "http://terminology.hl7.org/CodeSystem/location-physical-type" - condition: $pl3 NULL && $pl2 NULL && $pl1 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "lvl" - system: - valueOf: $system - condition: $pl3 NULL && $pl2 NULL && $pl1 NULL && $pl8 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "bu" - system: - valueOf: $system - condition: $pl3 NULL && $pl2 NULL && $pl1 NULL && $pl8 NULL && $pl7 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "si" - system: - valueOf: $system - condition: $pl3 NULL && $pl2 NULL && $pl1 NULL && $pl8 NULL && $pl7 NULL && $pl4 NOT_NULL - - -partOf: - expressionType: nested - vars: - pl3: STRING_ALL, PL.3 - pl2: STRING_ALL, PL.2 - pl1: STRING_ALL, PL.1 - pl8: STRING_ALL, PL.8 - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - condition: $pl3 NOT_NuLL || $pl2 NOT_NULL || $pl1 NOT_NULL || $pl8 NOT_NULL || $pl7 NOT_NULL - expressions: - - expressionType: reference - condition: $pl2 NOT_NULL - valueOf: datatypes/PL/LocationBranch1 #PL2 - specs: $BASE_VALUE - - expressionType: reference - condition: $pl2 NULL && $pl1 NOT_NULL #PL1 - valueOf: datatypes/PL/LocationBranch2 - specs: $BASE_VALUE - - expressionType: reference - condition: $pl2 NULL && $pl1 NULL && $pl8 NOT_NULL - valueOf: datatypes/PL/LocationBranch3 - specs: $BASE_VALUE - - expressionType: reference - condition: $pl2 NULL && $pl1 NULL && $pl8 NULL && $pl7 NOT_NULL - valueOf: datatypes/PL/LocationBranch4 - specs: $BASE_VALUE - - expressionType: reference - condition: $pl2 NULL && $pl1 NULL && $pl8 NULL && $pl7 NULL && $pl4 NOT_NULL - valueOf: datatypes/PL/LocationBranch5 - specs: $BASE_VALUE - -status: - expressionType: HL7Spec - valueOf: PL.5 - type: STRING - -mode: - value: "instance" - -description: - type: STRING - expressionType: HL7Spec - valueOf: PL.9 - -extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: pl6-person-location-type - valueString: - type: STRING - expressionType: HL7Spec - valueOf: PL.6 \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PL/LocationBranch1.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PL/LocationBranch1.yml deleted file mode 100644 index f2bbcd73bd3..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PL/LocationBranch1.yml +++ /dev/null @@ -1,182 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Location - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -identifier: - generateList: true - expressionType: nested - vars: - pl2: STRING_ALL, PL.2 - pl1: STRING_ALL, PL.1 - pl8: STRING_ALL, PL.8 - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - expressions: - - expressionType: nested - condition: $pl2 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.2 - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.2 - - expressionType: nested - condition: $pl2 NULL && $pl1 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.1 - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.1 - - expressionType: nested - condition: $pl2 NULL && $pl1 NULL && $pl8 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.8 - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.8 - - expressionType: nested - condition: $pl2 NULL && $pl1 NULL && $pl8 NULL && $pl7 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.7 - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.7 - - expressionType: nested - condition: $pl2 NULL && $pl1 NULL && $pl8 NULL && $pl7 NULL && $pl4 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.4 - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.4 - - - -physicalType: - expressionType: nested - vars: - pl2: STRING, PL.2 - pl1: STRING, PL.1 - pl8: STRING, PL.8 - pl7: STRING, PL.7 - pl4: STRING_ALL, PL.4 - constants: - system: "http://terminology.hl7.org/CodeSystem/location-physical-type" - expressions: - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "ro" - system: - valueOf: $system - condition: $pl2 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - expressionType: nested - generateList: true - expressions: - - expressionType: nested - expressionsMap: - _code: - expressionType: nested - expressionsMap: - extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: location-physical-type-poc - valueString: - value: "poc" - system: - type: STRING - value: "http://terminology.hl7.org/CodeSystem/location-physical-type" - system: - type: STRING - valueOf: $system - condition: $pl2 NULL && $pl1 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "lvl" - system: - valueOf: $system - condition: $pl2 NULL && $pl1 NULL && $pl8 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "bu" - system: - valueOf: $system - condition: $pl2 NULL && $pl1 NULL && $pl8 NULL && $pl7 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "si" - system: - valueOf: $system - condition: $pl2 NULL && $pl1 NULL && $pl8 NULL && $pl7 NULL && $pl4 NOT_NULL - - -partOf: - expressionType: nested - vars: - pl2: STRING_ALL, PL.2 - pl1: STRING_ALL, PL.1 - pl8: STRING_ALL, PL.8 - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - condition: $pl2 NOT_NULL || $pl1 NOT_NULL || $pl8 NOT_NULL || $pl7 NOT_NULL - expressions: - - expressionType: reference - condition: $pl1 NOT_NULL #PL1 - valueOf: datatypes/PL/LocationBranch2 - specs: $BASE_VALUE - - expressionType: reference - condition: $pl1 NULL && $pl8 NOT_NULL #PL8 - valueOf: datatypes/PL/LocationBranch3 - specs: $BASE_VALUE - - expressionType: reference - condition: $pl1 NULL && $pl8 NULL && $pl7 NOT_NULL #PL7 - valueOf: datatypes/PL/LocationBranch4 - specs: $BASE_VALUE - - expressionType: reference - condition: $pl1 NULL && $pl8 NULL && $pl7 NULL && $pl4 NOT_NULL #PL4 - valueOf: datatypes/PL/LocationBranch5 - specs: $BASE_VALUE \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PL/LocationBranch2.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PL/LocationBranch2.yml deleted file mode 100644 index af152d5c8be..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PL/LocationBranch2.yml +++ /dev/null @@ -1,151 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Location - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -identifier: - generateList: true - expressionType: nested - vars: - pl1: STRING_ALL, PL.1 - pl8: STRING_ALL, PL.8 - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - expressions: - - expressionType: nested - condition: $pl1 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.1 - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.1 - - expressionType: nested - condition: $pl1 NULL && $pl8 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.8 - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.8 - - expressionType: nested - condition: $pl1 NULL && $pl8 NULL && $pl7 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.7 - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.7 - - expressionType: nested - condition: $pl1 NULL && $pl8 NULL && $pl7 NULL && $pl4 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.4 - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.4 - - - -physicalType: - expressionType: nested - vars: - pl1: STRING_ALL, PL.1 - pl8: STRING_ALL, PL.8 - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - constants: - system: "http://terminology.hl7.org/CodeSystem/location-physical-type" - expressions: - - expressionType: nested - expressionsMap: - coding: - expressionType: nested - generateList: true - expressions: - - expressionType: nested - expressionsMap: - _code: - expressionType: nested - expressionsMap: - extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: location-physical-type-poc - valueString: - value: "poc" - system: - type: STRING - value: "http://terminology.hl7.org/CodeSystem/location-physical-type" - condition: $pl1 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "lvl" - system: - valueOf: $system - condition: $pl1 NULL && $pl8 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "bu" - system: - valueOf: $system - condition: $pl1 NULL && $pl8 NULL && $pl7 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "si" - system: - valueOf: $system - condition: $pl1 NULL && $pl8 NULL && $pl7 NULL && $pl4 NOT_NULL - - -partOf: - expressionType: nested - vars: - pl1: STRING_ALL, PL.1 - pl8: STRING_ALL, PL.8 - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - condition: $pl1 NOT_NULL || $pl8 NOT_NULL || $pl7 NOT_NULL - expressions: - - expressionType: reference - condition: $pl8 NOT_NULL #PL8 - valueOf: datatypes/PL/LocationBranch3 - specs: $BASE_VALUE - - expressionType: reference - condition: $pl8 NULL && $pl7 NOT_NULL #PL7 - valueOf: datatypes/PL/LocationBranch4 - specs: $BASE_VALUE - - expressionType: reference - condition: $pl8 NULL && $pl7 NULL && $pl4 NOT_NULL #PL4 - valueOf: datatypes/PL/LocationBranch5 - specs: $BASE_VALUE \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PL/LocationBranch3.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PL/LocationBranch3.yml deleted file mode 100644 index 9803743ebd6..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PL/LocationBranch3.yml +++ /dev/null @@ -1,110 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Location - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -identifier: - generateList: true - expressionType: nested - vars: - pl8: STRING_ALL, PL.8 - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - expressions: - - expressionType: nested - condition: $pl8 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.8 - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.8 - - expressionType: nested - condition: $pl8 NULL && $pl7 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.7 - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.7 - - expressionType: nested - condition: $pl8 NULL && $pl7 NULL && $pl4 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.4 - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.4 - - - -physicalType: - expressionType: nested - vars: - pl8: STRING_ALL, PL.8 - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - constants: - system: "http://terminology.hl7.org/CodeSystem/location-physical-type" - expressions: - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "lvl" - system: - valueOf: $system - condition: $pl8 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "bu" - system: - valueOf: $system - condition: $pl8 NULL && $pl7 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "si" - system: - valueOf: $system - condition: $pl8 NULL && $pl7 NULL && $pl4 NOT_NULL - - -partOf: - expressionType: nested - vars: - pl8: STRING_ALL, PL.8 - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - condition: $pl8 NOT_NULL || $pl7 NOT_NULL - expressions: - - expressionType: reference - condition: $pl7 NOT_NULL #PL7 - valueOf: datatypes/PL/LocationBranch4 - specs: $BASE_VALUE - - expressionType: reference - condition: $pl7 NULL && $pl4 NOT_NULL #PL4 - valueOf: datatypes/PL/LocationBranch5 - specs: $BASE_VALUE \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PL/LocationBranch4.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PL/LocationBranch4.yml deleted file mode 100644 index a991717d78f..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PL/LocationBranch4.yml +++ /dev/null @@ -1,82 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Location - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -identifier: - generateList: true - expressionType: nested - vars: - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - expressions: - - expressionType: nested - condition: $pl7 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.7 - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.7 - - expressionType: nested - condition: $pl7 NULL && $pl4 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.4 - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.4 - - - -physicalType: - expressionType: nested - vars: - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - constants: - system: "http://terminology.hl7.org/CodeSystem/location-physical-type" - expressions: - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "bu" - system: - valueOf: $system - condition: $pl7 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "si" - system: - valueOf: $system - condition: $pl7 NULL && $pl4 NOT_NULL - - -partOf: - expressionType: nested - vars: - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - condition: $pl7 NOT_NULL - expressions: - - expressionType: reference - condition: $pl4 NOT_NULL - valueOf: datatypes/PL/LocationBranch5 - specs: $BASE_VALUE \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PL/LocationBranch5.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PL/LocationBranch5.yml deleted file mode 100644 index e7a3953d1ab..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PL/LocationBranch5.yml +++ /dev/null @@ -1,46 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Location - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -identifier: - generateList: true - expressionType: nested - vars: - pl4: STRING_ALL, PL.4 - expressions: - - expressionType: nested - condition: $pl4 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.4 - - expressionType: resource - valueOf: datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.4 - - -physicalType: - expressionType: nested - vars: - pl4: STRING_ALL, PL.4 - constants: - system: "http://terminology.hl7.org/CodeSystem/location-physical-type" - expressions: - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "si" - system: - valueOf: $system - condition: $pl4 NOT_NULL - diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PT/Meta.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PT/Meta.yml deleted file mode 100644 index 1d6d14698e3..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/PT/Meta.yml +++ /dev/null @@ -1,37 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -tag: - generateList: true - expressionType: nested - vars: - pt1: STRING, PT.1 - pt2: STRING, PT.2 - condition: $pt1 NOT_NULL || $pt2 NOT_NULL - expressions: - - expressionType: nested - condition: $pt1 NOT_NULL - expressionsMap: - code: - valueOf: PT.1 - expressionType: HL7Spec - type: STRING - system: - value: "http://terminology.hl7.org/CodeSystem/v2-0103" - - expressionType: nested - condition: $pt2 NOT_NULL - expressionsMap: - code: - valueOf: PT.2 - type: STRING - expressionType: HL7Spec - system: - value: "http://terminology.hl7.org/CodeSystem/v2-0207" - -# Currently used to capture MSH.8 -security: - expressionType: nested - generateList: true - expressionsMap: - code: - type: STRING - valueOf: $metaSecurity diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/SN/ExtensionSN.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/SN/ExtensionSN.yml deleted file mode 100644 index c97ee8bf8be..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/SN/ExtensionSN.yml +++ /dev/null @@ -1,58 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - type: SYSTEM_URL - value: obx-5-value-sn - -extension: - generateList: true - expressionType: nested - expressions: - - vars: - sn1: STRING, SN.1 - condition: $sn1 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: SN.1 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: SN.1 - - vars: - sn2: STRING, SN.2 - condition: $sn2 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: SN.2 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: SN.2 - - vars: - sn3: STRING, SN.3 - condition: $sn3 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: SN.3 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: SN.3 - - vars: - sn4: STRING, SN.4 - condition: $sn4 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: SN.4 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: SN.4 \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/SN/Quantity.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/SN/Quantity.yml deleted file mode 100644 index 1162dab6f0f..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/SN/Quantity.yml +++ /dev/null @@ -1,74 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -comparator: - type: STRING - expressionType: HL7Spec - valueOf: SN.1 - -value: - type: STRING - expressionType: HL7Spec - valueOf: SN.2 - -code: - condition: $identifier NOT_NULL && $nameOfCodingSystem NOT_NULL - type: STRING - expressionType: HL7Spec - valueOf: CWEQuantityUnits.1 - vars: - identifier: CWEQuantityUnits.1 - nameOfCodingSystem: CWEQuantityUnits.3 - -unit: - expressionType: nested - vars: - identifier: CWEQuantityUnits.1 - text: CWEQuantityUnits.2 - expressions: - - condition: $text NULL && $identifier NOT_NULL - type: STRING - valueOf: CWEQuantityUnits.1 - expressionType: HL7Spec - - condition: $text NOT_NULL - type: STRING - valueOf: CWEQuantityUnits.2 - expressionType: HL7Spec - -system: - condition: $identifier NOT_NULL && $nameOfCodingSystem NOT_NULL - type: STRING - expressionType: HL7Spec - valueOf: CWEQuantityUnits.3 - vars: - identifier: CWEQuantityUnits.1 - nameOfCodingSystem: CWEQuantityUnits.3 - -extension: - generateList: true - expressionType: nested - expressions: - - vars: - sn3: STRING, SN.3 - condition: $sn3 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: SN.3 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: SN.3 - - vars: - sn4: STRING, SN.4 - condition: $sn4 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: SN.4 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: SN.4 - diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/SN/Range.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/SN/Range.yml deleted file mode 100644 index bf401e617cb..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/SN/Range.yml +++ /dev/null @@ -1,106 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -low: - expressionType: nested - expressionsMap: - value: - type: STRING - expressionType: HL7Spec - valueOf: SN.2 - code: - condition: $identifier NOT_NULL && $nameOfCodingSystem NOT_NULL - type: STRING - expressionType: HL7Spec - valueOf: CWERangeUnits.1 - vars: - identifier: CWERangeUnits.1 - nameOfCodingSystem: CWERangeUnits.3 - unit: - expressionType: nested - vars: - identifier: CWERangeUnits.1 - text: CWERangeUnits.2 - expressions: - - condition: $text NULL && $identifier NOT_NULL - type: STRING - valueOf: CWERangeUnits.1 - expressionType: HL7Spec - - condition: $text NOT_NULL - type: STRING - valueOf: CWERangeUnits.2 - expressionType: HL7Spec - system: - condition: $identifier NOT_NULL && $nameOfCodingSystem NOT_NULL - type: STRING - expressionType: HL7Spec - valueOf: CWERangeUnits.3 - vars: - identifier: CWERangeUnits.1 - nameOfCodingSystem: CWERangeUnits.3 - -high: - expressionType: nested - expressionsMap: - value: - type: STRING - expressionType: HL7Spec - valueOf: SN.4 - code: - condition: $identifier NOT_NULL && $nameOfCodingSystem NOT_NULL - type: STRING - expressionType: HL7Spec - valueOf: CWERangeUnits.1 - vars: - identifier: CWERangeUnits.1 - nameOfCodingSystem: CWERangeUnits.3 - unit: - expressionType: nested - vars: - identifier: CWERangeUnits.1 - text: CWERangeUnits.2 - expressions: - - condition: $text NULL && $identifier NOT_NULL - type: STRING - valueOf: CWERangeUnits.1 - expressionType: HL7Spec - - condition: $text NOT_NULL - type: STRING - valueOf: CWERangeUnits.2 - expressionType: HL7Spec - system: - condition: $identifier NOT_NULL && $nameOfCodingSystem NOT_NULL - type: STRING - expressionType: HL7Spec - valueOf: CWERangeUnits.3 - vars: - identifier: CWERangeUnits.1 - nameOfCodingSystem: CWERangeUnits.3 - -extension: - expressionType: nested - generateList: true - expressions: - - vars: - sn1: STRING, SN.1 - condition: $sn1 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: SN.1 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: SN.1 - - vars: - sn3: STRING, SN.3 - condition: $sn3 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: SN.3 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: SN.3 \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/SN/Ratio.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/SN/Ratio.yml deleted file mode 100644 index d68936327d5..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/SN/Ratio.yml +++ /dev/null @@ -1,106 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -numerator: - expressionType: nested - expressionsMap: - value: - type: STRING - expressionType: HL7Spec - valueOf: SN.2 - code: - condition: $identifier NOT_NULL && $nameOfCodingSystem NOT_NULL - type: STRING - expressionType: HL7Spec - valueOf: CWERangeUnits.1 - vars: - identifier: CWERangeUnits.1 - nameOfCodingSystem: CWERangeUnits.3 - unit: - expressionType: nested - vars: - identifier: CWERangeUnits.1 - text: CWERangeUnits.2 - expressions: - - condition: $text NULL && $identifier NOT_NULL - type: STRING - valueOf: CWERangeUnits.1 - expressionType: HL7Spec - - condition: $text NOT_NULL - type: STRING - valueOf: CWERangeUnits.2 - expressionType: HL7Spec - system: - condition: $identifier NOT_NULL && $nameOfCodingSystem NOT_NULL - type: STRING - expressionType: HL7Spec - valueOf: CWERangeUnits.3 - vars: - identifier: CWERangeUnits.1 - nameOfCodingSystem: CWERangeUnits.3 - -denominator: - expressionType: nested - expressionsMap: - value: - type: STRING - expressionType: HL7Spec - valueOf: SN.4 - code: - condition: $identifier NOT_NULL && $nameOfCodingSystem NOT_NULL - type: STRING - expressionType: HL7Spec - valueOf: CWERangeUnits.1 - vars: - identifier: CWERangeUnits.1 - nameOfCodingSystem: CWERangeUnits.3 - unit: - expressionType: nested - vars: - identifier: CWERangeUnits.1 - text: CWERangeUnits.2 - expressions: - - condition: $text NULL && $identifier NOT_NULL - type: STRING - valueOf: CWERangeUnits.1 - expressionType: HL7Spec - - condition: $text NOT_NULL - type: STRING - valueOf: CWERangeUnits.2 - expressionType: HL7Spec - system: - condition: $identifier NOT_NULL && $nameOfCodingSystem NOT_NULL - type: STRING - expressionType: HL7Spec - valueOf: CWERangeUnits.3 - vars: - identifier: CWERangeUnits.1 - nameOfCodingSystem: CWERangeUnits.3 - -extension: - expressionType: nested - generateList: true - expressions: - - vars: - sn1: STRING, SN.1 - condition: $sn1 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: SN.1 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: SN.1 - - vars: - sn3: STRING, SN.3 - condition: $sn3 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: SN.3 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: SN.3 diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XAD/Address.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XAD/Address.yml deleted file mode 100644 index 1b641e215d3..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XAD/Address.yml +++ /dev/null @@ -1,135 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -line: - expressionType: nested - generateList: true - expressions: - - type: STRING - expressionType: HL7Spec - valueOf: XAD.1.1 - - type: STRING - expressionType: HL7Spec - valueOf: XAD.1.2 - - type: STRING - expressionType: HL7Spec - valueOf: XAD.1.3 - - type: STRING - expressionType: HL7Spec - valueOf: XAD.2 - - type: STRING - expressionType: HL7Spec - valueOf: XAD.19 - -city: - type: STRING - expressionType: HL7Spec - valueOf: XAD.3 - -state: - type: STRING - expressionType: HL7Spec - valueOf: XAD.4 - -postalCode: - type: STRING - expressionType: HL7Spec - valueOf: XAD.5 - -country: - type: STRING - expressionType: HL7Spec - valueOf: $country | XAD.6 - -type: - vars: - xad7: String, XAD.7 - condition: $xad7 EQUALS M || $xad7 EQUALS SH - type: STRING - expressionType: JEXL - valueOf: 'GeneralUtils.getFhirAddressType(xad7)' - -use: - vars: - xad7: String, XAD.7 - condition: $xad7 EQUALS BA || $xad7 EQUALS BI || $xad7 EQUALS C || $xad7 EQUALS B || $xad7 EQUALS H || $xad7 EQUALS O - type: STRING - valueOf: 'GeneralUtils.getFhirAddressUse(xad7)' - expressionType: JEXL - - - -district: - type: STRING - valueOf: XAD.9 - expressionType: HL7Spec - -# XAD.12 is deprecated so the schema favors using XAD.13/14 if either are populated -period: - vars: - xad13: String, XAD.13 - xad14: String, XAD.14 - condition: $xad13 NOT_NULL || $xad14 NOT_NULL - expressionType: nested - expressionsMap: - start: - valueOf: "GeneralUtils.dateTimeWithZoneId(periodStart,ZONEID)" - expressionType: JEXL - vars: - periodStart: XAD.13 - end: - valueOf: "GeneralUtils.dateTimeWithZoneId(periodEnd,ZONEID)" - expressionType: JEXL - vars: - periodEnd: XAD.14 - -extension: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - vars: - xad10: STRING_ALL, XAD.10 - condition: $xad10 NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: iso21090-ADXP-censusTract - valueCode: - type: STRING - expressionType: HL7Spec - valueOf: XAD.10 - - vars: - xad7: String, XAD.7 - condition: $xad7 EQUALS HV - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: iso21090-AD-use - valueCode: - type: STRING - valueOf: XAD.7 - expressionType: HL7Spec - - generateList: true - expressionType: nested - condition: $hl7v2Field NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - type: STRING - valueOf: $hl7v2Field - - generateList: true - expressionType: nested - condition: $hl7v2Component NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Component - valueString: - type: STRING - valueOf: $hl7v2Component - - expressionType: resource - valueOf: datatypes/XAD/XADExtension - diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XAD/SADExtension.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XAD/SADExtension.yml deleted file mode 100644 index fe1872fd7db..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XAD/SADExtension.yml +++ /dev/null @@ -1,46 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - type: SYSTEM_URL - value: sad-address-line - -extension: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - vars: - sad1: STRING, SAD.1 - condition: $sad1 NOT_NULL - expressionsMap: - url: - type: STRING - value: SAD.1 - valueString: - type: STRING - valueOf: SAD.1 - expressionType: HL7Spec - - expressionType: nested - vars: - sad2: STRING, SAD.2 - condition: $sad2 NOT_NULL - expressionsMap: - url: - type: STRING - value: SAD.2 - valueString: - type: STRING - valueOf: SAD.2 - expressionType: HL7Spec - - expressionType: nested - vars: - sad3: STRING, SAD.3 - condition: $sad3 NOT_NULL - expressionsMap: - url: - type: STRING - value: SAD.3 - valueString: - type: STRING - valueOf: SAD.3 - expressionType: HL7Spec \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XAD/XADExtension.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XAD/XADExtension.yml deleted file mode 100644 index 8944f77d87c..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XAD/XADExtension.yml +++ /dev/null @@ -1,104 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -# This extension stores HL7 fields that are either not mapped to FHIR -# or become ambiguous when mapped -# URL: https://reportstream.cdc.gov/fhir/StructureDefinition/xad-address - -url: - type: SYSTEM_URL - value: xad-address - -extension: - generateList: true - expressionType: nested - expressions: - - expressionType: resource - vars: - xad1: STRING_ALL, XAD.1 - condition: $xad1 NOT_NULL - valueOf: datatypes/XAD/SADExtension - specs: XAD.1 - - expressionType: nested - vars: - xad2: STRING_ALL, XAD.2 - condition: $xad2 NOT_NULL - expressionsMap: - url: - type: STRING - value: XAD.2 - valueString: - type: STRING - valueOf: XAD.2 - expressionType: HL7Spec - - expressionType: nested - vars: - xad6: STRING_ALL, XAD.6 - condition: $xad6 NOT_NULL - expressionsMap: - url: - type: STRING - value: XAD.6 - valueString: - type: STRING - valueOf: XAD.6 - expressionType: HL7Spec - - expressionType: nested - vars: - xad7: STRING_ALL, XAD.7 - condition: $xad7 NOT_NULL - expressionsMap: - url: - type: STRING - value: XAD.7 - valueCode: - type: STRING - valueOf: XAD.7 - expressionType: HL7Spec - - expressionType: nested - vars: - xad8: STRING_ALL, XAD.8 - condition: $xad8 NOT_NULL - expressionsMap: - url: - type: STRING - value: XAD.8 - valueString: - type: STRING - valueOf: XAD.8 - expressionType: HL7Spec - - expressionType: nested - vars: - xad11: STRING_ALL, XAD.11 - condition: $xad11 NOT_NULL - expressionsMap: - url: - type: STRING - value: XAD.11 - valueCode: - type: STRING - valueOf: XAD.11 - expressionType: HL7Spec - - expressionType: nested - vars: - xad13: STRING, XAD.13 - condition: $xad13 NOT_NULL - expressionsMap: - url: - type: STRING - value: XAD.13 - valueString: - type: STRING - valueOf: XAD.13 - expressionType: HL7Spec - - expressionType: nested - vars: - xad14: XAD.14 - condition: $xad14 NOT_NULL - expressionsMap: - url: - type: STRING - value: XAD.14 - valueString: - type: STRING - valueOf: XAD.14 - expressionType: HL7Spec \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XCN/Practitioner.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XCN/Practitioner.yml deleted file mode 100644 index 908743312c2..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XCN/Practitioner.yml +++ /dev/null @@ -1,228 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Practitioner - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -identifier: - expressionType: nested - vars: - xcnhd1: String, XCN.9.1 - xcnhd2: String, XCN.9.2 - xcnhd3: String, XCN.9.3 - xcn9: STRING_ALL, XCN.9 - xcn11: String, XCN.11 - xcn12: String, XCN.12 - xcn13: String, XCN.13 - xcn14: STRING_ALL, XCN.14 - expressionsMap: - value: - type: STRING - valueOf: XCN.1 - expressionType: HL7Spec - # Checking if HD is an Organization or a System by looking at the ID type. - # If ID type is null or ID type is not ISO or UUID, treat as organization. - # Otherwise, treat as system. - assigner_1: - condition: $xcn9 NOT_NULL && $xcnhd3 NULL - valueOf: datatypes/HD/Organization - expressionType: reference - specs: XCN.9 - assigner_2: - condition: $xcn9 NOT_NULL && $xcnhd3 NOT_NULL && $xcnhd3 NOT_EQUALS ISO && $xcnhd3 NOT_EQUALS UUID - valueOf: datatypes/HD/Organization - expressionType: reference - specs: XCN.9 - system: - expressionType: nested - condition: $xcnhd3 EQUALS ISO || $xcnhd3 EQUALS UUID - expressions: - - condition: $xcnhd1 NOT_NULL - expressionType: HL7Spec - type: STRING - valueOf: XCN.9.1 - - condition: $xcnhd1 NULL && $xcnhd3 EQUALS ISO - expressionType: HL7Spec - type: STRING - constants: - prefix: "urn:oid:" - vars: - join: $prefix + $xcnhd2 - valueOf: $join - - condition: $xcnhd1 NULL && $xcnhd3 EQUALS UUID - expressionType: HL7Spec - type: STRING - constants: - prefix: "urn:uuid:" - vars: - join: $prefix + $xcnhd2 - valueOf: $join - type: - condition: $xcn13 NOT_NULL - expressionType: resource - specs: XCN.13 - valueOf: datatypes/ID/CodeableConcept - extension_1-checkDigit: - condition: $xcn11 NOT_NULL - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: identifier-check-digit - valueString: - type: STRING - expressionType: HL7Spec - valueOf: XCN.11 - extension_2-checkDigitScheme: - condition: $xcn12 NOT_NULL - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: naming-system-check-digit - valueCode: - valueOf: XCN.12 - type: STRING - expressionType: HL7Spec - extension_3-assigningFacility: - generateList: true - expressionType: nested - condition: $xcn14 NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: assigning-facility - valueReference: - valueOf: datatypes/HD/Location - expressionType: reference - specs: XCN.14 - -name: - expressionType: nested - expressionsMap: - family: - type: STRING - valueOf: XCN.2.1 - expressionType: HL7Spec - _family: - expressionType: resource - valueOf: datatypes/FN/ExtensionHumanName-family - specs: XCN.2 - given: - generateList: true - expressionType: nested - expressions: - - expressionType: HL7Spec - valueOf: XCN.3 - type: STRING - - expressionType: HL7Spec - valueOf: XCN.4 - type: STRING - suffix: - generateList: true - expressionType: nested - expressions: - - expressionType: HL7Spec - valueOf: XCN.5 - type: STRING - - expressionType: HL7Spec - valueOf: XCN.21 - type: STRING - prefix: - type: STRING - valueOf: XCN.6 - expressionType: HL7Spec - use: - type: NAME_USE - valueOf: XCN.10 - expressionType: HL7Spec - # This needs to use variables because the message parses this field using NULLDT since it is deprecated which means that - # the values do not get correctly loaded and will not be mapped over correctly using a spec. - period_1: - vars: - xcn19: String, XCN.19 - xcn20: String, XCN.20 - start: String, XCN.17.1 - end: String, XCN.17.2 - condition: $xcn19 NULL && $xcn20 NULL - expressionType: resource - valueOf: datatypes/DR/Period - # XCN.17 is deprecated so the schema favors using XCN.19/20 if either are populated - period_2: - vars: - xcn19: String, XCN.19 - xcn20: String, XCN.20 - condition: $xcn19 NOT_NULL || $xcn20 NOT_NULL - expressionType: nested - expressionsMap: - start: - valueOf: "GeneralUtils.dateTimeWithZoneId(periodStart,ZONEID)" - expressionType: JEXL - vars: - periodStart: XCN.19 - end: - valueOf: "GeneralUtils.dateTimeWithZoneId(periodEnd,ZONEID)" - expressionType: JEXL - vars: - periodEnd: XCN.20 - extension_AssemblyOrder: - expressionType: nested - generateList: true - vars: - xcn18: String, XCN.18 - condition: $xcn18 NOT_NULL - expressions: - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: humanname-assembly-order - valueCode: - type: STRING - valueOf: XCN.18 - expressionType: HL7Spec - -address: - condition: $XADAddress NOT_NULL - valueOf: datatypes/XAD/Address - expressionType: resource - specs: $XADAddress - generateList: true - -extension: - vars: - xcn9: STRING_ALL, XCN.9 - generateList: true - expressionType: nested - expressions: - - expressionType: resource - condition: $xcn9 NOT_NULL - valueOf: datatypes/HD/ExtensionAssigningAuthority - specs: XCN.9 - - expressionType: resource - valueOf: datatypes/XCN/XCNExtension - - generateList: true - expressionType: nested - condition: $XCNHL7Field NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - type: STRING - valueOf: $XCNHL7Field - - generateList: true - expressionType: nested - condition: $XCNHL7Component NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Component - valueString: - type: STRING - valueOf: $XCNHL7Component \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XCN/XCNExtension.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XCN/XCNExtension.yml deleted file mode 100644 index b56456496df..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XCN/XCNExtension.yml +++ /dev/null @@ -1,177 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - type: SYSTEM_URL - value: xcn-practitioner - -extension: - expressionType: nested - generateList: true - vars: - xcn3: String, XCN.3 - xcn4: String, XCN.4 - xcn5: String, XCN.5 - xcn8: STRING_ALL, XCN.8 - xcn10: String, XCN.10 - xcn15: String, XCN.12 - xcn16: STRING_ALL, XCN.16 - xcn17: STRING_ALL, XCN.17 - xcn19: String, XCN.19 - xcn20: String, XCN.20 - xcn21: String, XCN.21 - xcn22: STRING_ALL, XCN.22 - xcn23: STRING_ALL, XCN.23 - expressions: - - expressionType: nested - condition: $xcn3 NOT_NULL - expressionsMap: - url: - type: STRING - valueOf: XCN.3 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: XCN.3 - - expressionType: nested - condition: $xcn4 NOT_NULL - expressionsMap: - url: - type: STRING - valueOf: XCN.4 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: XCN.4 - - expressionType: nested - condition: $xcn5 NOT_NULL - expressionsMap: - url: - type: STRING - valueOf: XCN.5 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: XCN.5 - - expressionType: nested - condition: $xcn8 NOT_NULL - expressionsMap: - url: - type: STRING - value: XCN.8 - valueCodeableConcept: - valueOf: datatypes/CWE/CodeableConcept - expressionType: resource - specs: XCN.8 - - expressionType: nested - condition: $xcn10 NOT_NULL - expressionsMap: - url: - type: STRING - valueOf: XCN.10 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: XCN.10 - - expressionType: nested - condition: $xcn15 NOT_NULL - expressionsMap: - url: - type: STRING - valueOf: XCN.15 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: XCN.15 - - expressionType: nested - condition: $xcn16 NOT_NULL - expressionsMap: - url: - type: STRING - value: XCN.16 - valueCodeableConcept: - valueOf: datatypes/CWE/CodeableConcept - expressionType: resource - specs: XCN.16 - - expressionType: nested - vars: - start: XCN.17.1 - end: XCN.17.2 - condition: $start NOT_NULL || $end NOT_NULL - expressionsMap: - url: - type: STRING - value: XCN.17 - extension_1-start: - generateList: true - expressionType: nested - condition: $start NOT_NULL - expressionsMap: - url: - type: STRING - value: XCN.17.1 - valueString: - type: STRING - valueOf: $start - expressionType: HL7Spec - extension_2-end: - generateList: true - expressionType: nested - condition: $end NOT_NULL - expressionsMap: - url: - type: STRING - value: XCN.17.2 - valueString: - type: STRING - valueOf: $end - expressionType: HL7Spec - - expressionType: nested - condition: $xcn19 NOT_NULL - expressionsMap: - url: - type: STRING - value: XCN.19 - valueString: - type: STRING - valueOf: $xcn19 - expressionType: HL7Spec - - expressionType: nested - condition: $xcn20 NOT_NULL - expressionsMap: - url: - type: STRING - value: XCN.20 - valueString: - type: STRING - valueOf: $xcn20 - expressionType: HL7Spec - - expressionType: nested - condition: $xcn21 NOT_NULL - expressionsMap: - url: - type: STRING - valueOf: XCN.21 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: XCN.21 - - expressionType: nested - condition: $xcn22 NOT_NULL - expressionsMap: - url: - type: STRING - value: XCN.22 - valueCodeableConcept: - valueOf: datatypes/CWE/CodeableConcept - expressionType: resource - specs: XCN.22 - - expressionType: nested - condition: $xcn23 NOT_NULL - expressionsMap: - url: - type: STRING - value: XCN.23 - valueCodeableConcept: - valueOf: datatypes/CWE/CodeableConcept - expressionType: resource - specs: XCN.23 diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XON/Organization.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XON/Organization.yml deleted file mode 100644 index 05ca223a0e0..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XON/Organization.yml +++ /dev/null @@ -1,194 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Organization - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -name: - type: STRING - valueOf: XON.1 - expressionType: HL7Spec - -identifier: - expressionType: nested - vars: - xon3: XON.3 - xon4: XON.4 - xon5: XON.5 - xon6: XON.6 - xon7: XON.7 - xon8: XON.8 - xon10: String, XON.10 - expressionsMap: - value_1: - condition: $xon10 NULL - type: STRING - expressionType: HL7Spec - valueOf: XON.3 - value_2: - condition: $xon10 NOT_NULL - type: STRING - expressionType: HL7Spec - valueOf: XON.10 - type: - condition: $xon7 NOT_NULL - valueOf: datatype/CodeableConcept_var - expressionType: resource - vars: - code: String, XON.7 - constants: - system: "http://terminology.hl7.org/CodeSystem/v2-0203" - extension_1-checkDigitSchema: - condition: $xon5 NOT_NULL - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: naming-system-check-digit - valueCode: - valueOf: XON.5 - type: STRING - expressionType: HL7Spec - extension_2-checkDigit: - condition: $xon4 NOT_NULL - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: identifier-check-digit - valueString: - type: STRING - expressionType: HL7Spec - valueOf: XON.4 - extension_3-assigningAuthority: - condition: $xon6 NOT_NULL - generateList: true - expressionType: resource - valueOf: datatypes/HD/ExtensionAssigningAuthority - specs: XON.6 - extension_4-location: - condition: $xon8 NOT_NULL - generateList: true - expressionType: nested - vars: - xon8: String, XON.8 - expressionsMap: - url: - type: SYSTEM_URL - value: identifier-location - valueReference: - expressionType: reference - valueOf: datatypes/HD/Location - specs: XON.8 - -address: - condition: $XADAddress NOT_NULL - valueOf: datatypes/XAD/Address - expressionType: resource - specs: $XADAddress - -telecom: - expressionType: resource - condition: $XTNTelecom NOT_NULL - valueOf: datatypes/XTN/ContactPoint - generateList: true - specs: $XTNTelecom * - -contact: - expressionType: nested - generateList: true - expressionsMap: - name: - condition: $XPNContactName NOT_NULL - expressionType: resource - generateList: true - specs: $XPNHumanName * - valueOf: datatypes/XPN/HumanName - telecom: - condition: $XPNContactTelecom NOT_NULL - valueOf: datatypes/XTN/ContactPoint - generateList: true - expressionType: resource - specs: $XPNContactTelecom * - address: - condition: $XADContactAddress NOT_NULL - valueOf: datatypes/XAD/Address - generateList: true - expressionType: resource - specs: $XADContactAddress * - -extension: - expressionType: nested - generateList: true - expressions: - - condition: $xon2 NOT_NULL - expressionType: nested - vars: - xon2: XON.2 - expressionsMap: - url: - type: SYSTEM_URL - value: organization-name-type - valueString: - type: STRING - expressionType: HL7Spec - valueOf: XON.2 - - generateList: true - expressionType: nested - condition: $hl7v2Field NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - type: STRING - valueOf: $hl7v2Field - - generateList: true - expressionType: nested - condition: $hl7v2Component NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Component - valueString: - type: STRING - valueOf: $hl7v2Component - - condition: $xon9 NOT_NULL - expressionType: nested - vars: - xon9: String, XON.9 - expressionsMap: - url: - type: SYSTEM_URL - value: name-representation-code - valueString: - type: STRING - expressionType: HL7Spec - valueOf: XON.9 - - expressionType: resource - valueOf: datatypes/XON/XONExtension - - generateList: true - expressionType: nested - condition: $XONHL7Field NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - type: STRING - valueOf: $XONHL7Field - - generateList: true - expressionType: nested - condition: $XONHL7Component NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Component - valueString: - type: STRING - valueOf: $XONHL7Component \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XON/XONExtension.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XON/XONExtension.yml deleted file mode 100644 index 37c71015f39..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XON/XONExtension.yml +++ /dev/null @@ -1,34 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - type: SYSTEM_URL - value: xon-organization - -extension: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - vars: - xon3: STRING_ALL, XON.3 - condition: $xon3 NOT_NULL - expressionsMap: - url: - type: STRING - value: XON.3 - valueString: - expressionType: HL7Spec - type: STRING - valueOf: XON.3 - - expressionType: nested - vars: - xon10: STRING_ALL, XON.10 - condition: $xon10 NOT_NULL - expressionsMap: - url: - type: STRING - value: XON.10 - valueString: - expressionType: HL7Spec - type: STRING - valueOf: XON.10 \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XPN/HumanName.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XPN/HumanName.yml deleted file mode 100644 index 9e30b26712e..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XPN/HumanName.yml +++ /dev/null @@ -1,99 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: HumanName - -family: - type: STRING - valueOf: XPN.1.1 - expressionType: HL7Spec -_family: - expressionType: resource - valueOf: datatypes/FN/ExtensionHumanName-family - specs: XPN.1 - -given: - generateList: true - expressionType: nested - expressions: - - expressionType: HL7Spec - valueOf: XPN.2 - type: STRING - - expressionType: HL7Spec - valueOf: XPN.3 - type: STRING -suffix: - generateList: true - expressionType: nested - expressions: - - expressionType: HL7Spec - valueOf: XPN.4 - type: STRING - - expressionType: HL7Spec - valueOf: XPN.14 - type: STRING -prefix: - type: STRING - valueOf: XPN.5 - expressionType: HL7Spec -use: - type: NAME_USE - valueOf: XPN.7 - expressionType: HL7Spec - -extension_AssemblyOrder: - vars: - xpn11: String, XPN.11 - condition: $xpn11 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: humanname-assembly-order - valueCode: - type: STRING - valueOf: XPN.11 - expressionType: HL7Spec - -# XPN.10 is deprecated so the schema favors using XPN.12/13 if either are populated -period_2: - vars: - xpn12: String, XPN.12 - xpn13: String, XPN.13 - condition: $xpn12 NOT_NULL || $xpn13 NOT_NULL - expressionType: nested - expressionsMap: - start: - valueOf: "GeneralUtils.dateTimeWithZoneId(periodStart,ZONEID)" - expressionType: JEXL - vars: - periodStart: XPN.12 - end: - valueOf: "GeneralUtils.dateTimeWithZoneId(periodEnd,ZONEID)" - expressionType: JEXL - vars: - periodEnd: XPN.13 - -extension: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - condition: $hl7v2Field NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - type: STRING - valueOf: $hl7v2Field - - expressionType: nested - condition: $hl7v2Component NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Component - valueString: - type: STRING - valueOf: $hl7v2Component - - expressionType: resource - valueOf: datatypes/XPN/XPNExtension \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XPN/XPNExtension.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XPN/XPNExtension.yml deleted file mode 100644 index be88228b014..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XPN/XPNExtension.yml +++ /dev/null @@ -1,110 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - type: SYSTEM_URL - valueOf: xpn-human-name - -extension: - vars: - xpn2: String, XPN.2 - xpn3: String, XPN.3 - xpn4: String, XPN.4 - xpn7: String, XPN.7 - xpn8: String, XPN.8 - xpn9: STRING_ALL, XPN.9 - xpn12: String, XPN.12 - xpn13: String, XPN.13 - xpn14: String, XPN.14 - expressionType: nested - generateList: true - expressions: - - expressionType: nested - condition: $xpn2 NOT_NULL - expressionsMap: - url: - type: STRING - valueOf: XPN.2 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: XPN.2 - - expressionType: nested - condition: $xpn3 NOT_NULL - expressionsMap: - url: - type: STRING - valueOf: XPN.3 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: XPN.3 - - expressionType: nested - condition: $xpn4 NOT_NULL - expressionsMap: - url: - type: STRING - valueOf: XPN.4 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: XPN.4 - - expressionType: nested - condition: $xpn7 NOT_NULL - expressionsMap: - url: - type: STRING - valueOf: XPN.7 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: XPN.7 - - expressionType: nested - condition: $xpn8 NOT_NULL - expressionsMap: - url: - type: STRING - valueOf: XPN.8 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: XPN.8 - - expressionType: nested - condition: $xpn9 NOT_NULL - expressionsMap: - url: - type: STRING - value: XPN.9 - valueCodeableConcept: - valueOf: datatypes/CE/CodeableConcept - expressionType: resource - specs: XPN.9 - - expressionType: nested - condition: $xpn12 NOT_NULL - expressionsMap: - url: - type: STRING - value: XPN.12 - valueString: - type: STRING - valueOf: $xpn12 - expressionType: HL7Spec - - expressionType: nested - condition: $xpn13 NOT_NULL - expressionsMap: - url: - type: STRING - value: XPN.13 - valueString: - type: STRING - valueOf: $xpn13 - expressionType: HL7Spec - - expressionType: nested - condition: $xpn14 NOT_NULL - expressionsMap: - url: - type: STRING - valueOf: XPN.14 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: XPN.14 \ No newline at end of file diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XTN/ContactPoint.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XTN/ContactPoint.yml deleted file mode 100644 index 1fa5982ce89..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XTN/ContactPoint.yml +++ /dev/null @@ -1,233 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -value: - expressionType: nested - vars: - telEquipType: String, XTN.3 - commAddress: String, XTN.4 - unformattedTelNum: String, XTN.12 - expressions: - - condition: $telEquipType EQUALS Internet || $telEquipType EQUALS X.400 - valueOf: $commAddress - - condition: $telEquipType NOT_EQUALS Internet && $telEquipType NOT_EQUALS X.400 && $unformattedTelNum NOT_NULL - valueOf: $unformattedTelNum - - condition: $telEquipType NULL && $unformattedTelNum NOT_NULL - valueOf: $unformattedTelNum - -#mapping from HL7 Concept Map: TelecomUseCode -#https://docs.google.com/spreadsheets/d/1EE3a5UIGXLi8wMDr49fWTEVx8QS2GFqYgitE3vLOQTQ/edit#gid=0 -use_1: - condition: $xtnUse EQUALS PRN && $useCode NULL - type: STRING - value: "home" - vars: - xtnUse: String, XTN.2 - -use_2: - condition: $xtnUse EQUALS WPN && $useCode NULL - type: STRING - value: "work" - vars: - xtnUse: String, XTN.2 - -use_3: - condition: $xtnUse EQUALS BPN && $useCode NULL - type: STRING - value: "mobile" - vars: - xtnUse: String, XTN.2 - -use_4: - condition: $useCode NOT_NULL - type: STRING - value: $useCode - -#mapping from HL7 Concept Map: TelecomEquipmentType -#https://docs.google.com/spreadsheets/d/1FhoR5oxEWdHmpR5S0_wYPstdy1lwv7rL-JWJu_DE_Vs/edit#gid=0 -system_1: - # CP maps to "mobile" but that is not a valid option for system - condition: $equipType EQUALS PH || $equipType EQUALS CP - type: STRING - valueOf: "phone" - vars: - equipType: String, XTN.3 - -system_2: - condition: $equipType EQUALS FX - type: STRING - valueOf: "fax" - vars: - equipType: String, XTN.3 - -system_3: - condition: $equipType EQUALS Internet || $equipType EQUALS X.400 - type: STRING - valueOf: "email" - vars: - equipType: String, XTN.3 - -system_4: - condition: $equipType EQUALS BP - type: STRING - valueOf: "pager" - vars: - equipType: String, XTN.3 - -system_5: - condition: $equipType EQUALS MD || $equipType EQUALS SAT || $equipType EQUALS TDD || $equipType EQUALS TTY - type: STRING - valueOf: "other" - vars: - equipType: String, XTN.3 - -system_6: - condition: $telEquipType NULL && $commAddress NOT_NULL - valueOf: "email" - vars: - telEquipType: String, XTN.3 - commAddress: String, XTN.4 - -system_7: - condition: $telEquipType NULL && $commAddress NULL - expressionType: nested - vars: - telEquipType: String, XTN.3 - commAddress: String, XTN.4 - expressionsMap: - extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: "data-absent-reason" - valueCode: - value: unknown - -period: - vars: - startDate: XTN.13 - endDate: XTN.14 - condition: $startDate NOT_NULL || $endDate NOT_NULL - expressionType: nested - expressionsMap: - start: - valueOf: "GeneralUtils.dateTimeWithZoneId(startDate,ZONEID)" - expressionType: JEXL - _start: - expressionType: nested - condition: $startDate NOT_NULL - expressionsMap: - extension_1: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2-date-time - valueString: - type: STRING - valueOf: $startDate - expressionType: HL7Spec - end: - valueOf: "GeneralUtils.dateTimeWithZoneId(endDate,ZONEID)" - expressionType: JEXL - _end: - expressionType: nested - condition: $endDate NOT_NULL - expressionsMap: - extension_1: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2-date-time - valueString: - type: STRING - valueOf: $endDate - expressionType: HL7Spec - -rank: - type: POSITIVEINT - valueOf: XTN.18 - expressionType: HL7Spec - -extension: - generateList: true - expressionType: nested - expressions: - - condition: $countryCode NOT_NULL - expressionType: nested - vars: - countryCode: String, XTN.5 - expressionsMap: - url: - type: SYSTEM_URL - value: contactpoint-country - valueString: - value: $countryCode - - condition: $areaCode NOT_NULL - expressionType: nested - vars: - areaCode: String, XTN.6 - expressionsMap: - url: - type: SYSTEM_URL - value: contactpoint-area - valueString: - value: $areaCode - - condition: $telEquipType NOT_EQUALS Internet && $telEquipType NOT_EQUALS X.400 && $contactPointLocal NOT_NULL - expressionType: nested - vars: - telEquipType: String, XTN.3 - contactPointLocal: String, XTN.7 - expressionsMap: - url: - type: SYSTEM_URL - value: contactpoint-local - valueString: - value: $contactPointLocal - - condition: $telEquipType NULL && $contactPointLocal NOT_NULL - expressionType: nested - vars: - telEquipType: String, XTN.3 - contactPointLocal: String, XTN.7 - expressionsMap: - url: - type: SYSTEM_URL - value: contactpoint-local - valueString: - value: $contactPointLocal - - condition: $numExt NOT_NULL - expressionType: nested - vars: - numExt: String, XTN.8 - expressionsMap: - url: - type: SYSTEM_URL - value: contactpoint-extension - valueString: - value: $numExt - - expressionType: resource - valueOf: datatypes/XTN/XTNExtension - - generateList: true - expressionType: nested - condition: $hl7v2Field NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - type: STRING - valueOf: $hl7v2Field - - generateList: true - expressionType: nested - condition: $hl7v2Component NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Component - valueString: - type: STRING - valueOf: $hl7v2Component diff --git a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XTN/XTNExtension.yml b/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XTN/XTNExtension.yml deleted file mode 100644 index 660874eead5..00000000000 --- a/prime-router/metadata/HL7/datatypes/v251/hl7/datatypes/XTN/XTNExtension.yml +++ /dev/null @@ -1,81 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - type: SYSTEM_URL - value: xtn-contact-point - -extension: - generateList: true - expressionType: nested - expressions: - - condition: $xtn2 NOT_NULL - expressionType: nested - vars: - xtn2: String, XTN.2 - expressionsMap: - url: - type: STRING - value: XTN.2 - valueString: - value: $xtn2 - - condition: $xtn3 NOT_NULL - expressionType: nested - vars: - xtn3: String, XTN.3 - expressionsMap: - url: - type: STRING - value: XTN.3 - valueString: - value: $xtn3 - - condition: $xtn4 NOT_NULL - expressionType: nested - vars: - xtn4: String, XTN.4 - expressionsMap: - url: - type: STRING - value: XTN.4 - valueString: - value: $xtn4 - - condition: $xtn7 NOT_NULL - expressionType: nested - vars: - xtn7: String, XTN.7 - expressionsMap: - url: - type: STRING - value: XTN.7 - valueString: - value: $xtn7 - - condition: $xtn9 NOT_NULL - expressionType: nested - vars: - xtn9: String, XTN.9 - expressionsMap: - url: - type: STRING - value: XTN.9 - valueString: - type: STRING - valueOf: $xtn9 - - condition: $xtn11 NOT_NULL - expressionType: nested - vars: - xtn11: String, XTN.11 - expressionsMap: - url: - type: STRING - value: XTN.11 - valueString: - value: $xtn11 - - condition: $xtn12 NOT_NULL - expressionType: nested - vars: - xtn12: String, XTN.12 - expressionsMap: - url: - type: STRING - value: XTN.12 - valueString: - value: $xtn12 diff --git a/prime-router/metadata/HL7/v251-elr/config.properties b/prime-router/metadata/HL7/v251-elr/config.properties deleted file mode 100644 index 9362725bdf4..00000000000 --- a/prime-router/metadata/HL7/v251-elr/config.properties +++ /dev/null @@ -1,5 +0,0 @@ -base.path.resource=./metadata/HL7/v251-elr -supported.hl7.messages=ORU_R01,ORM_O01 -default.zoneid=+00:00 -additional.conceptmap.file= -additional.resources.location=./metadata/HL7/datatypes/v251 \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/fhir/resourcemapping.yml b/prime-router/metadata/HL7/v251-elr/fhir/resourcemapping.yml deleted file mode 100644 index 6c73f0434b7..00000000000 --- a/prime-router/metadata/HL7/v251-elr/fhir/resourcemapping.yml +++ /dev/null @@ -1,23 +0,0 @@ -Patient: org.hl7.fhir.r4.model.Patient -Encounter: org.hl7.fhir.r4.model.Encounter -Observation: org.hl7.fhir.r4.model.Observation -AllergyIntolerance: org.hl7.fhir.r4.model.AllergyIntolerance -Condition: org.hl7.fhir.r4.model.Condition -Practitioner: org.hl7.fhir.r4.model.Practitioner -PractitionerRole: org.hl7.fhir.r4.model.PractitionerRole -DiagnosticReport: org.hl7.fhir.r4.model.DiagnosticReport -Immunization: org.hl7.fhir.r4.model.Immunization -Organization: org.hl7.fhir.r4.model.Organization -MessageHeader: org.hl7.fhir.r4.model.MessageHeader -Medication: org.hl7.fhir.r4.model.Medication -Specimen: org.hl7.fhir.r4.model.Specimen -Procedure: org.hl7.fhir.r4.model.Procedure -DocumentReference: org.hl7.fhir.r4.model.DocumentReference -ServiceRequest: org.hl7.fhir.r4.model.ServiceRequest -MedicationRequest: org.hl7.fhir.r4.model.MedicationRequest -Device: org.hl7.fhir.r4.model.Device -Coverage: org.hl7.fhir.r4.model.Coverage -RelatedPerson: org.hl7.fhir.r4.model.RelatedPerson -Provenance: org.hl7.fhir.r4.model.Provenance -Location: org.hl7.fhir.r4.model.Location -EpisodeOfCare: org.hl7.fhir.r4.model.EpisodeOfCare \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/codesystem/CodingSystemMapping.yml b/prime-router/metadata/HL7/v251-elr/hl7/codesystem/CodingSystemMapping.yml deleted file mode 100644 index 08270014ad8..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/codesystem/CodingSystemMapping.yml +++ /dev/null @@ -1,4538 +0,0 @@ -# Coding System for values from https://www.hl7.org/fhir/v2/0396/index.html ---- - -- id: "ACR" - description: "American College of Radiology finding codes" - url: "http://terminology.hl7.org/CodeSystem/ACR" - oid: "urn:oid:2.16.840.1.113883.6.76" -- id: "ART" - description: "WHO Adverse Reaction Terms" - url: "http://terminology.hl7.org/CodeSystem/art" - oid: "urn:oid:2.16.840.1.113883.6.74" -- id: "AS4" - description: "ASTM E1238/ E1467 Universal" - url: "http://terminology.hl7.org/CodeSystem/AS4" - oid: "urn:oid:2.16.840.1.113883.6.30" -- id: "AS4E" - description: "AS4 Neurophysiology Codes" - url: "http://terminology.hl7.org/CodeSystem/AS4E" - oid: "urn:oid:2.16.840.1.113883.6.78" - -- id: "C5" - description: "CPT-5" - url: "http://terminology.hl7.org/CodeSystem/C5" - oid: "urn:oid:2.16.840.1.113883.6.82" -- id: "CAS" - description: "Chemical abstract codes" - url: "http://terminology.hl7.org/CodeSystem/CAS" - oid: "urn:oid:2.16.840.1.113883.6.61" -- id: "CCC" - description: "Clinical Care Classification system" - url: "http://terminology.hl7.org/CodeSystem/CCC" - oid: "urn:oid:2.16.840.1.113883.6.236" -- id: "CD2" - description: "American Dental Association's Current Dental Terminology 2 (CDT-2) codes." - url: "http://terminology.hl7.org/CodeSystem/CD2" - oid: "urn:oid:2.16.840.1.113883.6.13" -- id: "CDCA" - description: "CDC Analyte Codes" - url: "http://terminology.hl7.org/CodeSystem/CDCA" - oid: "urn:oid:2.16.840.1.113883.6.57" -- id: "CDCM" - description: "CDC Methods/Instruments Codes" - url: "http://terminology.hl7.org/CodeSystem/CDCM" - oid: "urn:oid:2.16.840.1.113883.6.58" -- id: "CDS" - description: "CDC Surveillance" - url: "http://terminology.hl7.org/CodeSystem/CDS" - oid: "urn:oid:2.16.840.1.113883.6.79" -- id: "CE" - description: "CEN ECG diagnostic codes" - url: "http://terminology.hl7.org/CodeSystem/CE" - oid: "urn:oid:2.16.840.1.113883.6.80" -- id: "CLP" - description: "CLIP" - url: "http://terminology.hl7.org/CodeSystem/CLP" - oid: "urn:oid:2.16.840.1.113883.6.81" -- id: "CPTM" - description: "CPT Modifier Code" - url: "http://www.ama-assn.org/go/cpt" - oid: "urn:oid:2.16.840.1.113883.6.12" -- id: "CST" - description: "COSTART" - url: "http://terminology.hl7.org/CodeSystem/CST" - oid: "urn:oid:2.16.840.1.113883.6.62" -- id: "CVX" - description: "CDC Vaccine Codes" - url: "http://hl7.org/fhir/sid/cvx" - oid: "urn:oid:2.16.840.1.113883.6.59" -- id: "DCM" - description: "DICOM Controlled Terminology" - url: "http://dicom.nema.org/resources/ontology/DCM" - oid: "urn:oid:1.2.840.10008.2.16.4" -- id: "E" - description: "EUCLIDES" - url: "http://terminology.hl7.org/CodeSystem/euclides" - oid: "urn:oid:2.16.840.1.113883.6.34" -- id: "E5" - description: "Euclides quantity codes" - url: "http://terminology.hl7.org/CodeSystem/E5" - oid: "urn:oid:2.16.840.1.113883.6.35" -- id: "E6" - description: "Euclides Lab method codes" - url: "http://terminology.hl7.org/CodeSystem/E6" - oid: "urn:oid:2.16.840.1.113883.6.36" -- id: "E7" - description: "Euclides Lab equipment codes" - url: "http://terminology.hl7.org/CodeSystem/E7" - oid: "urn:oid:2.16.840.1.113883.6.37" -- id: "ENZC" - description: "Enzyme Codes" - url: "http://terminology.hl7.org/CodeSystem/ENZC" - oid: "urn:oid:2.16.840.1.113883.6.33" -- id: "FDDC" - description: "First DataBank Drug Codes" - url: "http://terminology.hl7.org/CodeSystem/FDDC" - oid: "urn:oid:2.16.840.1.113883.6.64" -- id: "FDDX" - description: "First DataBank Diagnostic Codes" - url: "http://terminology.hl7.org/CodeSystem/FDDX" - oid: "urn:oid:2.16.840.1.113883.6.63" -- id: "FDK" - description: "FDA K10" - url: "http://terminology.hl7.org/CodeSystem/fdk" - oid: "urn:oid:2.16.840.1.113883.6.38" - -- id: "HB" - description: "HIBCC" - url: "http://terminology.hl7.org/CodeSystem/hibccHIN" - oid: "urn:oid:2.16.840.1.113883.6.40" -- id: "HCPCS" - description: "The Healthcare Common Procedure Coding System (HCPCS)" - url: "http://terminology.hl7.org/CodeSystem/HCPCS" - oid: "urn:oid:2.16.840.1.113883.6.14" -- id: "HHC" - description: "Home Health Care" - url: "http://terminology.hl7.org/CodeSystem/hhcc" - oid: "urn:oid:2.16.840.1.113883.6.17" -- id: "hi" - description: "Health Outcomes" - url: "http://terminology.hl7.org/CodeSystem/hi" - oid: "urn:oid:2.16.840.1.113883.6.39" -- id: "HPC" - description: "CMS (formerly HCFA )Procedure Codes (HCPCS)" - url: "http://terminology.hl7.org/CodeSystem/HCPCS" - oid: "urn:oid:2.16.840.1.113883.6.14" -- id: "I10" - description: "ICD-10" - # change from http://hl7.org/fhir/sid/icd-10 to http://hl7.org/fhir/sid/icd-10-cm, assuming US ICD-10-CM system - url: "http://hl7.org/fhir/sid/icd-10-cm" - oid: "urn:oid:2.16.840.1.113883.6.3" -- id: "ICD-10" - description: "ICD-10" - # change from http://hl7.org/fhir/sid/icd-10 to http://hl7.org/fhir/sid/icd-10-cm, assuming US ICD-10-CM system - url: "http://hl7.org/fhir/sid/icd-10-cm" - oid: "urn:oid:2.16.840.1.113883.6.3" -- id: "I10P" - description: "ICD-10 Procedure Codes" - url: "http://www.cms.gov/Medicare/Coding/ICD10" - oid: "urn:oid:2.16.840.1.113883.6.4" -- id: "I9" - description: "ICD9" - url: "http://terminology.hl7.org/CodeSystem/icd9" - oid: "urn:oid:2.16.840.1.113883.6.42" -- id: "ICD-9" - description: "ICD9" - url: "http://terminology.hl7.org/CodeSystem/icd9" - oid: "urn:oid:2.16.840.1.113883.6.42" -- id: "I9C" - description: "ICD-9CM" - url: "http://terminology.hl7.org/CodeSystem/icd9cm" - oid: "urn:oid:2.16.840.1.113883.6.2" -- id: "I9CDX" - description: "ICD-9CM Diagnosis codes" - url: "http://terminology.hl7.org/CodeSystem/ICD-9CM-diagnosiscodes" - oid: "urn:oid:2.16.840.1.113883.6.103" -- id: "I9CP" - description: "ICD-9CM Procedure codes" - url: "http://terminology.hl7.org/CodeSystem/ICD-9CM-procedurecodes" - oid: "urn:oid:2.16.840.1.113883.6.104" -- id: "IBT" - description: "ISBT" - url: "http://terminology.hl7.org/CodeSystem/ib" - oid: "urn:oid:2.16.840.1.113883.6.18" - -- id: "ICD10CA" - description: "ICD-10 Canada" - url: "http://hl7.org/fhir/sid/icd-10-ca" - oid: "urn:oid:2.16.840.1.113883.6.94" -- id: "ICD10GM2007" - description: "ICD 10 Germany v2007" - url: "http://terminology.hl7.org/CodeSystem/dmdICD10" - oid: "urn:oid:2.16.840.1.113883.6.3.3" -- id: "ICD10GM2008" - description: "ICD 10 Germany v2008" - url: "http://terminology.hl7.org/CodeSystem/dmdICD10" - oid: "urn:oid:2.16.840.1.113883.6.3.3" -- id: "ICDO" - description: "International Classification of Diseases for Oncology" - url: "http://terminology.hl7.org/CodeSystem/icd-o" - oid: "urn:oid:2.16.840.1.113883.6.43" -- id: "ICS" - description: "ICCS" - url: "http://terminology.hl7.org/CodeSystem/ics" - oid: "urn:oid:2.16.840.1.113883.6.41" -- id: "ICSD" - description: "International Classification of Sleep Disorders" - url: "http://terminology.hl7.org/CodeSystem/ICSD" - oid: "urn:oid:2.16.840.1.113883.6.45" - -- id: "IUPC" - description: "IUPAC/IFCC Component Codes" - url: "http://terminology.hl7.org/CodeSystem/IUPC" - oid: "urn:oid:2.16.840.1.113883.6.47" -- id: "IUPP" - description: "IUPAC/IFCC Property Codes" - url: "http://terminology.hl7.org/CodeSystem/IUPP" - oid: "urn:oid:2.16.840.1.113883.6.46" - -- id: "JC8" - description: "Japanese Chemistry" - url: "http://terminology.hl7.org/CodeSystem/JC8" - oid: "urn:oid:2.16.840.1.113883.6.48" - -- id: "LN" - description: "Logical Observation Identifier Names and Codes (LOINC)" - url: "http://loinc.org" - oid: "urn:oid:2.16.840.1.113883.6.1" -- id: "L" - description: "Local general code" - url: "https://terminology.hl7.org/CodeSystem-v2-0396.html#v2-0396-99zzzorL" -- id: "MDC" - description: "Medical Device Communication" - url: "urn:iso:std:iso:11073:10101" - oid: "urn:oid:2.16.840.1.113883.6.24" -- id: "MDDX" - description: "Medispan Diagnostic Codes" - url: "http://terminology.hl7.org/CodeSystem/MDDX" - oid: "urn:oid:2.16.840.1.113883.6.65" -- id: "MEDC" - description: "Medical Economics Drug Codes" - url: "http://terminology.hl7.org/CodeSystem/MEDC" - oid: "urn:oid:2.16.840.1.113883.6.67" - -- id: "MEDX" - description: "Medical Economics Diagnostic Codes" - url: "http://terminology.hl7.org/CodeSystem/MEDX" - oid: "urn:oid:2.16.840.1.113883.6.66" -- id: "MGPI" - description: "Medispan GPI" - url: "http://terminology.hl7.org/CodeSystem/MGPI" - oid: "urn:oid:2.16.840.1.113883.6.68" -- id: "MVX" - description: "CDC Vaccine Manufacturer Codes" - url: "http://terminology.hl7.org/CodeSystem/MVX" - oid: "urn:oid:2.16.840.1.113883.6.60" -- id: "NDA" - description: "NANDA" - url: "http://www.nanda.org/" - oid: "urn:oid:2.16.840.1.113883.6.20" -- id: "NDC" - description: "National drug codes" - url: "http://hl7.org/fhir/sid/ndc" - oid: "urn:oid:2.16.840.1.113883.6.69" -- id: "NIC" - description: "Nursing Interventions Classification" - url: "https://nursing.uiowa.edu/cncce/nursing-interventions-classification-overview" - oid: "urn:oid:2.16.840.1.113883.6.15" - -- id: "OHA" - description: "Omaha System" - url: "http://terminology.hl7.org/CodeSystem/oms" - oid: "urn:oid:2.16.840.1.113883.6.98" - -- id: "POS" - description: "POS Codes" - url: "http://terminology.hl7.org/CodeSystem/POS" - oid: "urn:oid:2.16.840.1.113883.6.50" - -- id: "SCT" - description: "SNOMED Clinical Terms" - url: "http://snomed.info/sct" - oid: "urn:oid:2.16.840.1.113883.6.96" - -- id: "SDM" - description: "SNOMED-DICOM Microglossary" - url: "http://terminology.hl7.org/CodeSystem/SDM" - oid: "urn:oid:2.16.840.1.113883.6.53" -- id: "SNM" - description: "Systemized Nomenclature in Medicine (SNOMED)" - url: "http://terminology.hl7.org/CodeSystem/snm" - oid: "urn:oid:2.16.840.1.113883.6.5" -- id: "SNM3" - description: "SNOMED International" - url: "http://terminology.hl7.org/CodeSystem/SNM3" - oid: "urn:oid:2.16.840.1.113883.6.51" -- id: "SNT" - description: "SNOMED topology codes (anatomic sites)" - url: "http://terminology.hl7.org/CodeSystem/SNT" - oid: "urn:oid:2.16.840.1.113883.6.52" - -- id: "UC" - description: "UCDS" - url: "http://terminology.hl7.org/CodeSystem/UC" - oid: "urn:oid:2.16.840.1.113883.6.54" -- id: "UCUM" - description: "UCUM code set for units of measure(from Regenstrief)" - url: "http://unitsofmeasure.org" - oid: "urn:oid:2.16.840.1.113883.6.8" -- id: "UMD" - description: "MDNS" - url: "http://terminology.hl7.org/CodeSystem/UMD" - oid: "urn:oid:2.16.840.1.113883.6.75" -- id: "UML" - description: "Unified Medical Language" - url: "http://terminology.hl7.org/CodeSystem/UML" - oid: "urn:oid:2.16.840.1.113883.6.56" -- id: "UPC" - description: "Universal Product Code" - url: "http://terminology.hl7.org/CodeSystem/UPC" - oid: "urn:oid:2.16.840.1.113883.6.55" -- id: "W4" - description: "WHO rec\\# code with ASTM extension" - url: "http://terminology.hl7.org/CodeSystem/W4" - oid: "urn:oid:2.16.840.1.113883.6.72" - -- id: "PHOccupationCDCCensus2010" - description: "Occupation CDC Census 2010" - url: "http://terminology.hl7.org/CodeSystem/PHOccupationCDCCensus2010" - oid: "urn:oid:2.16.840.1.114222.4.5.314" -- id: "v3-ManagedParticipationStatus" - description: "ManagedParticipationStatus" - url: "http://terminology.hl7.org/CodeSystem/v3-ManagedParticipationStatus" - oid: "urn:oid:2.16.840.1.113883.5.1062" -- id: "v2-0280" - description: "referralPriority" - url: "http://terminology.hl7.org/CodeSystem/v2-0280" - oid: "urn:oid:2.16.840.1.113883.18.173" -- id: "NHSNProcedureCategory" - description: "NHSN Procedure Category" - url: "http://terminology.hl7.org/CodeSystem/NHSNProcedureCategory" - oid: "urn:oid:2.16.840.1.113883.6.271" -- id: "v2-0003" - description: "eventType" - url: "http://terminology.hl7.org/CodeSystem/v2-0003" - oid: "urn:oid:2.16.840.1.113883.18.4" -- id: "special-values" - description: "SpecialValues" - url: "http://terminology.hl7.org/CodeSystem/special-values" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1049" -- id: "communication-not-done-reason" - description: "CommunicationNotDoneReason" - url: "http://terminology.hl7.org/CodeSystem/communication-not-done-reason" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1077" -- id: "v2-0146" - description: "amountType" - url: "http://terminology.hl7.org/CodeSystem/v2-0146" - oid: "urn:oid:2.16.840.1.113883.18.67" -- id: "v2-0516" - description: "errorSeverity" - url: "http://terminology.hl7.org/CodeSystem/v2-0516" - oid: "urn:oid:2.16.840.1.113883.18.337" -- id: "v2-0238" - description: "eventSeriousness" - url: "http://terminology.hl7.org/CodeSystem/v2-0238" - oid: "urn:oid:2.16.840.1.113883.18.137" -- id: "v2-0392" - description: "matchReason" - url: "http://terminology.hl7.org/CodeSystem/v2-0392" - oid: "urn:oid:2.16.840.1.113883.18.243" -- id: "medicationrequest-course-of-therapy" - description: "MedicationRequest Course of Therapy Codes" - url: "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1327" -- id: "audit-event-outcome" - description: "AuditEventOutcome" - url: "http://terminology.hl7.org/CodeSystem/audit-event-outcome" - oid: "urn:oid:2.16.840.1.113883.4.642.1.0" -- id: "v2-0404" - description: "languageProficiency" - url: "http://terminology.hl7.org/CodeSystem/v2-0404" - oid: "urn:oid:2.16.840.1.113883.18.253" -- id: "v2-0384" - description: "substanceType" - url: "http://terminology.hl7.org/CodeSystem/v2-0384" - oid: "urn:oid:2.16.840.1.113883.18.237" -- id: "benefit-type" - description: "Benefit Type Codes" - url: "http://terminology.hl7.org/CodeSystem/benefit-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1176" -- id: "claim-type" - description: "Claim Type Codes" - url: "http://terminology.hl7.org/CodeSystem/claim-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1156" -- id: "catalogType" - description: "CatalogType" - url: "http://terminology.hl7.org/CodeSystem/catalogType" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1288" -- id: "practitioner-role" - description: "Practitioner role" - url: "http://terminology.hl7.org/CodeSystem/practitioner-role" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1132" -- id: "v2-0107" - description: "deferredResponseType" - url: "http://terminology.hl7.org/CodeSystem/v2-0107" - oid: "urn:oid:2.16.840.1.113883.18.44" -- id: "DEEDS210" - description: "DEEDS2.10" - url: "http://terminology.hl7.org/CodeSystem/DEEDS210" - oid: "urn:oid:2.16.840.1.113883.6.102.2.10" -- id: "v2-0557" - description: "payeeType" - url: "http://terminology.hl7.org/CodeSystem/v2-0557" - oid: "urn:oid:2.16.840.1.113883.18.361" -- id: "v2-0279" - description: "allowSubstitution" - url: "http://terminology.hl7.org/CodeSystem/v2-0279" - oid: "urn:oid:2.16.840.1.113883.18.172" -- id: "reaction-event-certainty" - description: "AllergyIntoleranceCertainty" - url: "http://terminology.hl7.org/CodeSystem/reaction-event-certainty" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1276" -- id: "v3-AcknowledgementCondition" - description: "AcknowledgementCondition" - url: "http://terminology.hl7.org/CodeSystem/v3-AcknowledgementCondition" - oid: "urn:oid:2.16.840.1.113883.5.1050" -- id: "v2-0916" - description: "relevantClincialInformation" - url: "http://terminology.hl7.org/CodeSystem/v2-0916" - oid: "urn:oid:2.16.840.1.113883.18.422" -- id: "v2-0445" - description: "identityReliability" - url: "http://terminology.hl7.org/CodeSystem/v2-0445" - oid: "urn:oid:2.16.840.1.113883.18.285" -- id: "v2-0500" - description: "consentDisclosureLevel" - url: "http://terminology.hl7.org/CodeSystem/v2-0500" - oid: "urn:oid:2.16.840.1.113883.18.324" -- id: "v2-0150" - description: "certificationPatientType" - url: "http://terminology.hl7.org/CodeSystem/v2-0150" - oid: "urn:oid:2.16.840.1.113883.18.71" -- id: "X12.3" - description: "X12.3 Data Elementary Dictionary" - url: "http://terminology.hl7.org/CodeSystem/X12.3" - oid: "urn:oid:2.16.840.1.113883.6.255" -- id: "allerg-intol-substance-exp-risk" - description: "AllergyIntoleranceSubstanceExposureRisk" - url: "http://terminology.hl7.org/CodeSystem/allerg-intol-substance-exp-risk" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1275" -- id: "v2-0717" - description: "accessRestrictionValue" - url: "http://terminology.hl7.org/CodeSystem/v2-0717" - oid: "urn:oid:2.16.840.1.113883.18.388" -- id: "diagnosis-role" - description: null - url: "http://terminology.hl7.org/CodeSystem/diagnosis-role" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1054" -- id: "v2-0202" - description: "telecommunicationEquipmentType" - url: "http://terminology.hl7.org/CodeSystem/v2-0202" - oid: "urn:oid:2.16.840.1.113883.18.107" -- id: "sic" - description: "US Census Bureau" - url: "http://terminology.hl7.org/CodeSystem/sic" - oid: "urn:oid:2.16.840.1.113883.6.232" -- id: "dicomMDLTY" - description: "DICOM modality codes" - url: "http://terminology.hl7.org/CodeSystem/dicomMDLTY" - oid: "urn:oid:2.16.840.1.113883.6.31" -- id: "v3-AddressPartType" - description: "AddressPartType" - url: "http://terminology.hl7.org/CodeSystem/v3-AddressPartType" - oid: "urn:oid:2.16.840.1.113883.5.16" -- id: "v3-DataOperation" - description: "DataOperation" - url: "http://terminology.hl7.org/CodeSystem/v3-DataOperation" - oid: "urn:oid:2.16.840.1.113883.5.1123" -- id: "GCDF" - description: "GCDF" - url: "http://terminology.hl7.org/CodeSystem/GCDF" - oid: "urn:oid:2.16.840.1.113883.4.79" -- id: "v2-0255" - description: "durationCategories" - url: "http://terminology.hl7.org/CodeSystem/v2-0255" - oid: "urn:oid:2.16.840.1.113883.18.150" -- id: "v3-ActRelationshipJoin" - description: "ActRelationshipJoin" - url: "http://terminology.hl7.org/CodeSystem/v3-ActRelationshipJoin" - oid: "urn:oid:2.16.840.1.113883.5.12" -- id: "v3-EntityNameUse" - description: "EntityNameUse" - url: "http://terminology.hl7.org/CodeSystem/v3-EntityNameUse" - oid: "urn:oid:2.16.840.1.113883.5.45" -- id: "medication-usage-admin-location" - description: "MedicationUsage Administration Location Codes" - url: "http://terminology.hl7.org/CodeSystem/medication-usage-admin-location" - oid: "urn:oid:2.16.840.1.113883.4.642.1.0" -- id: "v2-0469" - description: "packagingStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0469" - oid: "urn:oid:2.16.840.1.113883.18.298" -- id: "v2-0193" - description: "amountClass" - url: "http://terminology.hl7.org/CodeSystem/v2-0193" - oid: "urn:oid:2.16.840.1.113883.18.103" -- id: "location-physical-type" - description: "Location type" - url: "http://terminology.hl7.org/CodeSystem/location-physical-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1108" -- id: "FDBHICCode" - description: "FDB HIC Code" - url: "http://terminology.hl7.org/CodeSystem/FDBHICCode" - oid: "urn:oid:2.16.840.1.113883.3.84" -- id: "v2-0243" - description: "identityMayBeDivulged" - url: "http://terminology.hl7.org/CodeSystem/v2-0243" - oid: "urn:oid:2.16.840.1.113883.18.142" -- id: "v3-VaccineType" - description: "VaccineType" - url: "http://terminology.hl7.org/CodeSystem/v3-VaccineType" - oid: "urn:oid:2.16.840.1.113883.5.145" -- id: "v2-0490" - description: "specimenRejectReason" - url: "http://terminology.hl7.org/CodeSystem/v2-0490" - oid: "urn:oid:2.16.840.1.113883.18.314" -- id: "subscription-channel-type" - description: "SubscriptionChannel Type Codes" - url: "http://terminology.hl7.org/CodeSystem/subscription-channel-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1432" -- id: "v2-0185" - description: "preferredMethodOfContact" - url: "http://terminology.hl7.org/CodeSystem/v2-0185" - oid: "urn:oid:2.16.840.1.113883.18.98" -- id: "v2-0351" - description: "nubc-OccurrenceSpan-cs" - url: "http://terminology.hl7.org/CodeSystem/v2-0351" - oid: "urn:oid:2.16.840.1.113883.6.301.8" -- id: "DEEDS416" - description: "DEEDS416" - url: "http://terminology.hl7.org/CodeSystem/DEEDS416" - oid: "urn:oid:2.16.840.1.113883.6.102.4.16" -- id: "v3-hl7PublishingDomain" - description: "HL7PublishingDomain" - url: "http://terminology.hl7.org/CodeSystem/v3-hl7PublishingDomain" - oid: "urn:oid:2.16.840.1.113883.5.1136" -- id: "v2-0214" - description: "specialProgram" - url: "http://terminology.hl7.org/CodeSystem/v2-0214" - oid: "urn:oid:2.16.840.1.113883.18.118" -- id: "v3-ObservationCategory" - description: "ObservationCategory" - url: "http://terminology.hl7.org/CodeSystem/v3-ObservationCategory" - oid: "urn:oid:2.16.840.1.113883.4.642.1.222" -- id: "v2-0428" - description: "incidentType" - url: "http://terminology.hl7.org/CodeSystem/v2-0428" - oid: "urn:oid:2.16.840.1.113883.18.269" -- id: "dicomqry" - description: "DICOM Query Label" - url: "http://terminology.hl7.org/CodeSystem/dicomqry" - oid: "urn:oid:2.16.840.1.113883.6.32" -- id: "v3-ParameterizedDataType" - description: "ParameterizedDataType" - url: "http://terminology.hl7.org/CodeSystem/v3-ParameterizedDataType" - oid: "urn:oid:2.16.840.1.113883.5.87" -- id: "externalCodeSystems" - description: "HL7 Registered External Coding Systems" - url: "http://terminology.hl7.org/CodeSystem/externalCodeSystems" - oid: "urn:oid:2.16.840.1.113883.6" -- id: "device-status-reason" - description: "FHIRDeviceStatusReason" - url: "http://terminology.hl7.org/CodeSystem/device-status-reason" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1082" -- id: "resource-security-category" - description: "ResourceSecurityCategory" - url: "http://terminology.hl7.org/CodeSystem/resource-security-category" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1404" -- id: "v2-0263" - description: "levelOfCare" - url: "http://terminology.hl7.org/CodeSystem/v2-0263" - oid: "urn:oid:2.16.840.1.113883.18.158" -- id: "media-category" - description: "Digital Media Category" - url: "http://terminology.hl7.org/CodeSystem/media-category" - oid: "urn:oid:2.16.840.1.113883.4.642.1.326" -- id: "W1-W2" - description: "WHO rec# drug codes" - url: "http://terminology.hl7.org/CodeSystem/W1-W2" - oid: "urn:oid:2.16.840.1.113883.6.71" -- id: "v2-0326" - description: "visitIndicator" - url: "http://terminology.hl7.org/CodeSystem/v2-0326" - oid: "urn:oid:2.16.840.1.113883.18.199" -- id: "v2-0776" - description: "itemStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0776" - oid: "urn:oid:2.16.840.1.113883.18.402" -- id: "v3-brazilianProcedureCodesSUS" - description: "Brazilian Procedure Codes SUS" - url: "http://terminology.hl7.org/CodeSystem/v3-brazilianProcedureCodesSUS" - oid: "urn:oid:2.16.840.1.113883.2.21.10" -- id: "v3-HealthcareProviderTaxonomyHIPAA" - description: "Healthcare Provider Taxonomy HIPAA" - url: "http://terminology.hl7.org/CodeSystem/v3-HealthcareProviderTaxonomyHIPAA" - oid: "urn:oid:2.16.840.1.113883.5.53" -- id: "triggerEventID" - description: "Trigger Event ID" - url: "http://terminology.hl7.org/CodeSystem/triggerEventID" - oid: "urn:oid:2.16.840.1.113883.1.18" -- id: "v2-0234" - description: "reportTiming" - url: "http://terminology.hl7.org/CodeSystem/v2-0234" - oid: "urn:oid:2.16.840.1.113883.18.133" -- id: "v2-0371" - description: "additivePreservative" - url: "http://terminology.hl7.org/CodeSystem/v2-0371" - oid: "urn:oid:2.16.840.1.113883.18.229" -- id: "multum" - description: "Multum Lexicon" - url: "http://terminology.hl7.org/CodeSystem/multum" - oid: "urn:oid:2.16.840.1.113883.6.27" -- id: "v2-0388" - description: "processingType" - url: "http://terminology.hl7.org/CodeSystem/v2-0388" - oid: "urn:oid:2.16.840.1.113883.18.239" -- id: "composite-measure-scoring" - description: "CompositeMeasureScoring" - url: "http://terminology.hl7.org/CodeSystem/composite-measure-scoring" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1235" -- id: "v2-0367" - description: "alertLevel" - url: "http://terminology.hl7.org/CodeSystem/v2-0367" - oid: "urn:oid:2.16.840.1.113883.18.225" -- id: "contractaction" - description: "Contract Action Codes" - url: "http://terminology.hl7.org/CodeSystem/contractaction" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1202" -- id: "v3-nuccProviderCodes" - description: "NUCC Health Care Provider Taxonomy" - url: "http://terminology.hl7.org/CodeSystem/v3-nuccProviderCodes" - oid: "urn:oid:2.16.840.1.113883.6.101" -- id: "service-type" - description: "Service type" - url: "http://terminology.hl7.org/CodeSystem/service-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1145" -- id: "v3-Currency" - description: "Currency" - url: "http://terminology.hl7.org/CodeSystem/v3-Currency" - oid: "urn:oid:2.16.840.1.113883.5.1058" -- id: "ICD-9CM-procedurecodes" - description: "National Center for Health Statistics" - url: "http://terminology.hl7.org/CodeSystem/ICD-9CM-procedurecodes" - oid: "urn:oid:2.16.840.1.113883.6.104" -- id: "v3-hl7ITSType" - description: "HL7ITSType" - url: "http://terminology.hl7.org/CodeSystem/v3-hl7ITSType" - oid: "urn:oid:2.16.840.1.113883.5.1135" -- id: "v3-MdfHmdRowType" - description: "MdfHmdRowType" - url: "http://terminology.hl7.org/CodeSystem/v3-MdfHmdRowType" - oid: "urn:oid:2.16.840.1.113883.5.76" -- id: "v2-0625" - description: "itemStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0625" - oid: "urn:oid:2.16.840.1.113883.18.377" -- id: "v3-RoleClass" - description: "RoleClass" - url: "http://terminology.hl7.org/CodeSystem/v3-RoleClass" - oid: "urn:oid:2.16.840.1.113883.5.110" -- id: "v3-AcknowledgementType" - description: "AcknowledgementType" - url: "http://terminology.hl7.org/CodeSystem/v3-AcknowledgementType" - oid: "urn:oid:2.16.840.1.113883.5.18" -- id: "v2-0275" - description: "documentStorageStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0275" - oid: "urn:oid:2.16.840.1.113883.18.168" -- id: "iso639-3" - description: "ISO 639-3 Language Codes Alpha 3" - url: "http://terminology.hl7.org/CodeSystem/iso639-3" - oid: "urn:oid:1.0.639.3" -- id: "v2-0330" - description: "marketingBasis" - url: "http://terminology.hl7.org/CodeSystem/v2-0330" - oid: "urn:oid:2.16.840.1.113883.18.201" -- id: "medicationrequest-category" - description: "MedicationRequest Category Codes" - url: "http://terminology.hl7.org/CodeSystem/medicationrequest-category" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1323" -- id: "v2-0127" - description: "allergenType" - url: "http://terminology.hl7.org/CodeSystem/v2-0127" - oid: "urn:oid:2.16.840.1.113883.18.54" -- id: "v3-IdentifierReliability" - description: "IdentifierReliability" - url: "http://terminology.hl7.org/CodeSystem/v3-IdentifierReliability" - oid: "urn:oid:2.16.840.1.113883.5.1117" -- id: "v2-0062" - description: "eventReason" - url: "http://terminology.hl7.org/CodeSystem/v2-0062" - oid: "urn:oid:2.16.840.1.113883.18.23" -- id: "v2-0432" - description: "admissionLevelOfCare" - url: "http://terminology.hl7.org/CodeSystem/v2-0432" - oid: "urn:oid:2.16.840.1.113883.18.273" -- id: "epsg-ca" - description: "European Petroleum Survey Group Geodetic Parameter Dataset Coordinate Axis" - url: "http://terminology.hl7.org/CodeSystem/epsg-ca" - oid: "urn:oid:2.16.840.1.113883.6.279" -- id: "expansion-parameter-source" - description: "ExpansionParameterSource" - url: "http://terminology.hl7.org/CodeSystem/expansion-parameter-source" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1279" -- id: "v2-0520" - description: "messageWaitingPriority" - url: "http://terminology.hl7.org/CodeSystem/v2-0520" - oid: "urn:oid:2.16.840.1.113883.18.340" -- id: "v2-0170" - description: "derivedSpecimen" - url: "http://terminology.hl7.org/CodeSystem/v2-0170" - oid: "urn:oid:2.16.840.1.113883.18.88" -- id: "appointment-cancellation-reason" - description: "Appointment cancellation reason" - url: "http://terminology.hl7.org/CodeSystem/appointment-cancellation-reason" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1382" -- id: "v2-0936" - description: "observationType" - url: "http://terminology.hl7.org/CodeSystem/v2-0936" - oid: "urn:oid:2.16.840.1.113883.18.439" -- id: "testscript-profile-destination-types" - description: "Test script profile destination type" - url: "http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1197" -- id: "v2-0465" - description: "name-addressRepresentation" - url: "http://terminology.hl7.org/CodeSystem/v2-0465" - oid: "urn:oid:2.16.840.1.113883.18.295" -- id: "v3-PersonDisabilityType" - description: "PersonDisabilityType" - url: "http://terminology.hl7.org/CodeSystem/v3-PersonDisabilityType" - oid: "urn:oid:2.16.840.1.113883.5.93" -- id: "icd9" - description: "ICD9" - url: "http://terminology.hl7.org/CodeSystem/icd9" - oid: "urn:oid:2.16.840.1.113883.6.42" -- id: "v2-0166" - description: "rxComponentType" - url: "http://terminology.hl7.org/CodeSystem/v2-0166" - oid: "urn:oid:2.16.840.1.113883.18.84" -- id: "v2-0536" - description: "certificateStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0536" - oid: "urn:oid:2.16.840.1.113883.18.350" -- id: "v2-0473" - description: "formularyStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0473" - oid: "urn:oid:2.16.840.1.113883.18.301" -- id: "v2-0189" - description: "ethnicGroup" - url: "http://terminology.hl7.org/CodeSystem/v2-0189" - oid: "urn:oid:2.16.840.1.113883.18.100" -- id: "HL70189" - description: "ethnicGroup" - url: "http://terminology.hl7.org/CodeSystem/v2-0189" - oid: "urn:oid:2.16.840.1.113883.18.100" -- id: "v2-0920" - description: "preferredSpecimen-AttributeStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0920" - oid: "urn:oid:2.16.840.1.113883.18.426" -- id: "benefit-unit" - description: "Unit Type Codes" - url: "http://terminology.hl7.org/CodeSystem/benefit-unit" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1178" -- id: "DEEDS508" - description: "DEEDS508" - url: "http://terminology.hl7.org/CodeSystem/DEEDS508" - oid: "urn:oid:2.16.840.1.113883.6.102.5.8" -- id: "v2-0561" - description: "product-servicesClarification" - url: "http://terminology.hl7.org/CodeSystem/v2-0561" - oid: "urn:oid:2.16.840.1.113883.18.364" -- id: "v2-0131" - description: "contactRole2" - url: "http://terminology.hl7.org/CodeSystem/v2-0131" - oid: "urn:oid:2.16.840.1.113883.18.58" -- id: "v3-HL7ContextConductionStyle" - description: "HL7ContextConductionStyle" - url: "http://terminology.hl7.org/CodeSystem/v3-HL7ContextConductionStyle" - oid: "urn:oid:2.16.840.1.113883.5.1129" -- id: "NHSNSSIAnatomicSite" - description: "NHSN SSI Anatomic Site" - url: "http://terminology.hl7.org/CodeSystem/NHSNSSIAnatomicSite" - oid: "urn:oid:2.16.840.1.113883.6.272" -- id: "v2-0424" - description: "gestationCategory" - url: "http://terminology.hl7.org/CodeSystem/v2-0424" - oid: "urn:oid:2.16.840.1.113883.18.265" -- id: "v3-TelecommunicationAddressUse" - description: "TelecommunicationAddressUse" - url: "http://terminology.hl7.org/CodeSystem/v3-TelecommunicationAddressUse" - oid: "urn:oid:2.16.840.1.113883.5.1011" -- id: "v2-0074" - description: "diagnosticServiceSectionId" - url: "http://terminology.hl7.org/CodeSystem/v2-0074" - oid: "urn:oid:2.16.840.1.113883.18.29" -- id: "whoARTfl" - description: "WHO Adverse Reaction Terms foreign language translations" - url: "http://terminology.hl7.org/CodeSystem/whoARTfl" - oid: "urn:oid:2.16.840.1.113883.6.230" -- id: "v3-loinc" - description: "Logical Observation Identifiers, Names and Codes (LOINC)" - url: "http://loinc.org" - oid: "urn:oid:2.16.840.1.113883.6.1" -- id: "research-study-reason-stopped" - description: "ResearchStudyReasonStopped" - url: "http://terminology.hl7.org/CodeSystem/research-study-reason-stopped" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1249" -- id: "v2-0560" - description: "Quantity Units" - url: "http://terminology.hl7.org/CodeSystem/v2-0560" - oid: "urn:oid:2.16.840.1.113883.18.455" -- id: "v2-0130" - description: "visitUserCodes" - url: "http://terminology.hl7.org/CodeSystem/v2-0130" - oid: "urn:oid:2.16.840.1.113883.18.56" -- id: "v3-ConceptProperty" - description: "HL7 Value Set and Coded Concept Property Codes" - url: "http://terminology.hl7.org/CodeSystem/v3-ConceptProperty" - oid: "urn:oid:2.16.840.1.113883.5.1087" -- id: "nciVersionOfNDF-RT" - description: "NCI Version of NDF-RT" - url: "http://terminology.hl7.org/CodeSystem/nciVersionOfNDF-RT" - oid: "urn:oid:2.16.840.1.113883.3.26.1.5" -- id: "v3-iso4217-HL7" - description: "ISO 4217 Currency code, HL7 use" - url: "http://terminology.hl7.org/CodeSystem/v3-iso4217-HL7" - oid: "urn:oid:2.16.840.1.113883.6.9" -- id: "v2-0425" - description: "newbornType" - url: "http://terminology.hl7.org/CodeSystem/v2-0425" - oid: "urn:oid:2.16.840.1.113883.18.266" -- id: "MDRSPA" - description: "MedDRA Spanish" - url: "http://terminology.hl7.org/CodeSystem/MDRSPA" - oid: "urn:oid:2.16.840.1.113883.6.163.6" -- id: "nmds" - description: "Nursing Minimum Data Set" - url: "http://terminology.hl7.org/CodeSystem/nmds" - oid: "urn:oid:2.16.840.1.113883.6.87" -- id: "v3-ActRelationshipType" - description: "ActRelationshipType" - url: "http://terminology.hl7.org/CodeSystem/v3-ActRelationshipType" - oid: "urn:oid:2.16.840.1.113883.5.1002" -- id: "v3-QueryRequestLimit" - description: "QueryRequestLimit" - url: "http://terminology.hl7.org/CodeSystem/v3-QueryRequestLimit" - oid: "urn:oid:2.16.840.1.113883.5.1112" -- id: "v3-sctemp" - description: "pan-Canadian Temporary Codes" - url: "https://fhir.infoway-inforoute.ca/CodeSystem/sctemp" - oid: "urn:oid:2.16.840.1.113883.2.20.5.2" -- id: "v2-0167" - description: "substitutionStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0167" - oid: "urn:oid:2.16.840.1.113883.18.85" -- id: "v2-0472" - description: "tqConjunctionId" - url: "http://terminology.hl7.org/CodeSystem/v2-0472" - oid: "urn:oid:2.16.840.1.113883.18.300" -- id: "v2-0921" - description: "certificationType" - url: "http://terminology.hl7.org/CodeSystem/v2-0921" - oid: "urn:oid:2.16.840.1.113883.18.427" -- id: "coverage-class" - description: "Coverage Class Codes" - url: "http://terminology.hl7.org/CodeSystem/coverage-class" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1147" -- id: "v2-0258" - description: "relationshipModifier" - url: "http://terminology.hl7.org/CodeSystem/v2-0258" - oid: "urn:oid:2.16.840.1.113883.18.153" -- id: "mth-icpc2-icd10-7B" - description: "ICPC2-ICD10 Thesaurus, 7-bit" - url: "http://terminology.hl7.org/CodeSystem/mth-icpc2-icd10-7B" - oid: "urn:oid:2.16.840.1.113883.6.142.2" -- id: "NHSNHipReplacement" - description: "NHSN Hip Replacement" - url: "http://terminology.hl7.org/CodeSystem/NHSNHipReplacement" - oid: "urn:oid:2.16.840.1.113883.6.263" -- id: "v2-0937" - description: "observationSubtype" - url: "http://terminology.hl7.org/CodeSystem/v2-0937" - oid: "urn:oid:2.16.840.1.113883.18.440" -- id: "v3-AmericanIndianAlaskaNativeLanguages" - description: "AmericanIndianAlaskaNativeLanguages" - url: "http://terminology.hl7.org/CodeSystem/v3-AmericanIndianAlaskaNativeLanguages" - oid: "urn:oid:2.16.840.1.113883.5.1054" -- id: "v2-0034" - description: "siteAdministered" - url: "http://terminology.hl7.org/CodeSystem/v2-0034" - oid: "urn:oid:2.16.840.1.113883.18.17" -- id: "measure-scoring" - description: "MeasureScoring" - url: "http://terminology.hl7.org/CodeSystem/measure-scoring" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1232" -- id: "audit-event-type" - description: "Audit Event ID" - url: "http://terminology.hl7.org/CodeSystem/audit-event-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1136" -- id: "adjudication" - description: "Adjudication Value Codes" - url: "http://terminology.hl7.org/CodeSystem/adjudication" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1171" -- id: "v2-0126" - description: "quantityLimitedRequest" - url: "http://terminology.hl7.org/CodeSystem/v2-0126" - oid: "urn:oid:2.16.840.1.113883.18.53" -- id: "v3-QueryPriority" - description: "QueryPriority" - url: "http://terminology.hl7.org/CodeSystem/v3-QueryPriority" - oid: "urn:oid:2.16.840.1.113883.5.102" -- id: "v2-0063" - description: "relationship" - url: "http://terminology.hl7.org/CodeSystem/v2-0063" - oid: "urn:oid:2.16.840.1.113883.18.24" -- id: "v2-0433" - description: "precaution" - url: "http://terminology.hl7.org/CodeSystem/v2-0433" - oid: "urn:oid:2.16.840.1.113883.18.274" -- id: "v3-CalendarCycle" - description: "Calendar Cycle Codes" - url: "http://terminology.hl7.org/CodeSystem/v3-CalendarCycle" - oid: "urn:oid:2.16.840.1.113883.5.9" -- id: "v2-0761" - description: "drgProcedureDeterminationStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0761" - oid: "urn:oid:2.16.840.1.113883.18.400" -- id: "iso639-2" - description: "ISO 639-2: Codes for the representation of names of languages -- Part 2:\ - \ Alpha-3 code" - url: "http://terminology.hl7.org/CodeSystem/iso639-2" - oid: "urn:oid:1.0.639.2" -- id: "v2-0331" - description: "facilityType" - url: "http://terminology.hl7.org/CodeSystem/v2-0331" - oid: "urn:oid:2.16.840.1.113883.18.202" -- id: "SCDHEC-GISSpatialAccuracyTiers" - description: "SCDHEC GIS Spatial Accuracy Tiers" - url: "http://terminology.hl7.org/CodeSystem/SCDHEC-GISSpatialAccuracyTiers" - oid: "urn:oid:2.16.840.1.113883.6.241" -- id: "v3-URLScheme" - description: "Universal Resource Locator Scheme" - url: "http://terminology.hl7.org/CodeSystem/v3-URLScheme" - oid: "urn:oid:2.16.840.1.113883.5.143" -- id: "v2-0223" - description: "livingDependency2" - url: "http://terminology.hl7.org/CodeSystem/v2-0223" - oid: "urn:oid:2.16.840.1.113883.18.124" -- id: "codesystem-altcode-kind" - description: "AlternativeCodeKind" - url: "http://terminology.hl7.org/CodeSystem/codesystem-altcode-kind" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1284" -- id: "service-provision-conditions" - description: "ServiceProvisionConditions" - url: "http://terminology.hl7.org/CodeSystem/service-provision-conditions" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1143" -- id: "v2-0389" - description: "analyteRepeatStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0389" - oid: "urn:oid:2.16.840.1.113883.18.240" -- id: "v2-0366" - description: "local-remoteControlState" - url: "http://terminology.hl7.org/CodeSystem/v2-0366" - oid: "urn:oid:2.16.840.1.113883.18.224" -- id: "v3-icpc2E" - description: "International Classification of Primary Care, second edition (1998)" - url: "http://hl7.org/fhir/sid/icpc-2" - oid: "urn:oid:2.16.840.1.113883.6.139" -- id: "v3-ActRelationshipCheckpoint" - description: "ActRelationshipCheckpoint" - url: "http://terminology.hl7.org/CodeSystem/v3-ActRelationshipCheckpoint" - oid: "urn:oid:2.16.840.1.113883.5.10" -- id: "guide-parameter-code" - description: "GuideParameterCode" - url: "http://terminology.hl7.org/CodeSystem/guide-parameter-code" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1421" -- id: "v3-GenderStatus" - description: "GenderStatus" - url: "http://terminology.hl7.org/CodeSystem/v3-GenderStatus" - oid: "urn:oid:2.16.840.1.113883.5.51" -- id: "discharge-disposition" - description: "Discharge disposition" - url: "http://terminology.hl7.org/CodeSystem/discharge-disposition" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1093" -- id: "whoPOR" - description: "WHO Adverse Reaction Terms Portuguese" - url: "http://terminology.hl7.org/CodeSystem/whoPOR" - oid: "urn:oid:2.16.840.1.113883.6.230.3" -- id: "v2-0235" - description: "reportSource" - url: "http://terminology.hl7.org/CodeSystem/v2-0235" - oid: "urn:oid:2.16.840.1.113883.18.134" -- id: "extra-security-role-type" - description: null - url: "http://terminology.hl7.org/CodeSystem/extra-security-role-type" - oid: null -- id: "v2-0370" - description: "containerStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0370" - oid: "urn:oid:2.16.840.1.113883.18.228" -- id: "v2-0409" - description: "applicationChangeType" - url: "http://terminology.hl7.org/CodeSystem/v2-0409" - oid: "urn:oid:2.16.840.1.113883.18.255" -- id: "plan-definition-type" - description: "PlanDefinitionType" - url: "http://terminology.hl7.org/CodeSystem/plan-definition-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1245" -- id: "v3-EntityHandling" - description: "EntityHandling" - url: "http://terminology.hl7.org/CodeSystem/v3-EntityHandling" - oid: "urn:oid:2.16.840.1.113883.5.42" -- id: "usage-context-type" - description: "UsageContextType" - url: "http://terminology.hl7.org/CodeSystem/usage-context-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1068" -- id: "v2-0262" - description: "privacyLevel" - url: "http://terminology.hl7.org/CodeSystem/v2-0262" - oid: "urn:oid:2.16.840.1.113883.18.157" -- id: "container-cap" - description: "ContainerCap" - url: "http://terminology.hl7.org/CodeSystem/container-cap" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1258" -- id: "icd10" - description: "ICD-10" - # change from http://hl7.org/fhir/sid/icd-10 to http://hl7.org/fhir/sid/icd-10-cm, assuming US ICD-10-CM system - url: "http://hl7.org/fhir/sid/icd-10-cm" - oid: "urn:oid:2.16.840.1.113883.6.3" -- id: "soc" - description: "Standard Occupation Code" - url: "http://terminology.hl7.org/CodeSystem/soc" - oid: "urn:oid:2.16.840.1.113883.6.243" -- id: "question-max-occurs" - description: "MaxOccurs" - url: "http://terminology.hl7.org/CodeSystem/question-max-occurs" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1272" -- id: "v2-0429" - description: "productionClass" - url: "http://terminology.hl7.org/CodeSystem/v2-0429" - oid: "urn:oid:2.16.840.1.113883.18.270" -- id: "forms-codes" - description: "Form Codes" - url: "http://terminology.hl7.org/CodeSystem/forms-codes" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1052" -- id: "icpc2-icd10-DUT" - description: "ICPC2-ICD10ENG Thesaurus, Dutch Translation" - url: "http://terminology.hl7.org/CodeSystem/icpc2-icd10-DUT" - oid: "urn:oid:2.16.840.1.113883.6.142.1" -- id: "v2-0350" - description: "nubc-OccurrenceCode-cs" - url: "http://terminology.hl7.org/CodeSystem/v2-0350" - oid: "urn:oid:2.16.840.1.113883.6.301.7" -- id: "v3-Country" - description: "Country" - url: "http://terminology.hl7.org/CodeSystem/v3-Country" - oid: "urn:oid:2.16.840.1.113883.5.28" -- id: "v3-TimingEvent" - description: "TimingEvent" - url: "http://terminology.hl7.org/CodeSystem/v3-TimingEvent" - oid: "urn:oid:2.16.840.1.113883.5.139" -- id: "v3-MapRelationship" - description: "MapRelationship" - url: "http://terminology.hl7.org/CodeSystem/v3-MapRelationship" - oid: "urn:oid:2.16.840.1.113883.5.67" -- id: "v2-0215" - description: "publicity" - url: "http://terminology.hl7.org/CodeSystem/v2-0215" - oid: "urn:oid:2.16.840.1.113883.18.119" -- id: "v2-0491" - description: "specimenQuality" - url: "http://terminology.hl7.org/CodeSystem/v2-0491" - oid: "urn:oid:2.16.840.1.113883.18.315" -- id: "v2-0868" - description: "telecommunicationExpirationReason" - url: "http://terminology.hl7.org/CodeSystem/v2-0868" - oid: "urn:oid:2.16.840.1.113883.18.409" -- id: "payment-type" - description: "Payment Type Codes" - url: "http://terminology.hl7.org/CodeSystem/payment-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1186" -- id: "MDRAE" - description: "MedDRA Am Engl" - url: "http://terminology.hl7.org/CodeSystem/MDRAE" - oid: "urn:oid:2.16.840.1.113883.6.163.1" -- id: "risk-probability" - description: "Risk Probability" - url: "http://terminology.hl7.org/CodeSystem/risk-probability" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1133" -- id: "v2-0757" - description: "drgStatusRespirationMinutes" - url: "http://terminology.hl7.org/CodeSystem/v2-0757" - oid: "urn:oid:2.16.840.1.113883.18.398" -- id: "v2-0242" - description: "primaryObserverQualification" - url: "http://terminology.hl7.org/CodeSystem/v2-0242" - oid: "urn:oid:2.16.840.1.113883.18.141" -- id: "MDRFRE" - description: "MedDRA French" - url: "http://terminology.hl7.org/CodeSystem/MDRFRE" - oid: "urn:oid:2.16.840.1.113883.6.163.3" -- id: "v2-0487" - description: "specimenType" - url: "http://terminology.hl7.org/CodeSystem/v2-0487" - oid: "urn:oid:2.16.840.1.113883.18.311" -- id: "v3-WC" - description: "WHO ATC" - url: "http://www.whocc.no/atc" - oid: "urn:oid:2.16.840.1.113883.6.73" -- id: "v2-0038" - description: "orderStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0038" - oid: "urn:oid:2.16.840.1.113883.18.18" -- id: "v2-0468" - description: "paymentAdjustmentInformation" - url: "http://terminology.hl7.org/CodeSystem/v2-0468" - oid: "urn:oid:2.16.840.1.113883.18.297" -- id: "v3-PaymentTerms" - description: "PaymentTerms" - url: "http://terminology.hl7.org/CodeSystem/v3-PaymentTerms" - oid: "urn:oid:2.16.840.1.113883.5.91" -- id: "v2-0311" - description: "jobStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0311" - oid: "urn:oid:2.16.840.1.113883.18.189" -- id: "v3-CodeSystem" - description: "CodeSystem" - url: "http://terminology.hl7.org/CodeSystem/v3-CodeSystem" - oid: "urn:oid:2.16.840.1.113883.5.22" -- id: "diet" - description: "Diet" - url: "http://terminology.hl7.org/CodeSystem/diet" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1091" -- id: "admit-source" - description: "Admit source" - url: "http://terminology.hl7.org/CodeSystem/admit-source" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1092" -- id: "v2-0254" - description: "kindOfQuantity" - url: "http://terminology.hl7.org/CodeSystem/v2-0254" - oid: "urn:oid:2.16.840.1.113883.18.149" -- id: "v3-EncounterReferralSource" - description: "EncounterReferralSource" - url: "http://terminology.hl7.org/CodeSystem/v3-EncounterReferralSource" - oid: "urn:oid:2.16.840.1.113883.5.39" -- id: "v2-0080" - description: "natureOfAbnormalTesting" - url: "http://terminology.hl7.org/CodeSystem/v2-0080" - oid: "urn:oid:2.16.840.1.113883.18.32" -- id: "v3-RoleCode" - description: "RoleCode" - url: "http://terminology.hl7.org/CodeSystem/v3-RoleCode" - oid: "urn:oid:2.16.840.1.113883.5.111" -- id: "service-referral-method" - description: "ReferralMethod" - url: "http://terminology.hl7.org/CodeSystem/service-referral-method" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1142" -- id: "goal-category" - description: "Goal category" - url: "http://terminology.hl7.org/CodeSystem/goal-category" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1097" -- id: "v2-0203" - description: "identifierType" - url: "http://terminology.hl7.org/CodeSystem/v2-0203" - oid: "urn:oid:2.16.840.1.113883.18.108" -- id: "v2-0653" - description: "dateFormat" - url: "http://terminology.hl7.org/CodeSystem/v2-0653" - oid: "urn:oid:2.16.840.1.113883.18.381" -- id: "v3-QueryParameterValue" - description: "QueryParameterValue" - url: "http://terminology.hl7.org/CodeSystem/v3-QueryParameterValue" - oid: "urn:oid:2.16.840.1.113883.5.1096" -- id: "medicationrequest-admin-location" - description: "Medication request administration location codes" - url: "http://terminology.hl7.org/CodeSystem/medicationrequest-admin-location" - oid: "urn:oid:2.16.840.1.113883.4.642.1.0" -- id: "v2-0917" - description: "bolusType" - url: "http://terminology.hl7.org/CodeSystem/v2-0917" - oid: "urn:oid:2.16.840.1.113883.18.423" -- id: "v2-0444" - description: "nameAssemblyOrder" - url: "http://terminology.hl7.org/CodeSystem/v2-0444" - oid: "urn:oid:2.16.840.1.113883.18.284" -- id: "v2-0501" - description: "consentNon-disclosureReason" - url: "http://terminology.hl7.org/CodeSystem/v2-0501" - oid: "urn:oid:2.16.840.1.113883.18.325" -- id: "v2-0278" - description: "fillerStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0278" - oid: "urn:oid:2.16.840.1.113883.18.171" -- id: "v3-TableCellVerticalAlign" - description: "TableCellVerticalAlign" - url: "http://terminology.hl7.org/CodeSystem/v3-TableCellVerticalAlign" - oid: "urn:oid:2.16.840.1.113883.5.133" -- id: "dose-rate-type" - description: "DoseAndRateType" - url: "http://terminology.hl7.org/CodeSystem/dose-rate-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1069" -- id: "v2-0940" - description: "limitationTypeCode" - url: "http://terminology.hl7.org/CodeSystem/v2-0940" - oid: "urn:oid:2.16.840.1.113883.18.443" -- id: "v2-4000" - description: "name-addressRepresentation" - url: "http://terminology.hl7.org/CodeSystem/v2-4000" - oid: "urn:oid:2.16.840.1.113883.18.436" -- id: "icpc-FIN" - description: "International Classification of Primary Care 1993 Finnish" - url: "http://terminology.hl7.org/CodeSystem/icpc-FIN" - oid: "urn:oid:2.16.840.1.113883.6.138.4" -- id: "v2-0106" - description: "queryResponseFormat" - url: "http://terminology.hl7.org/CodeSystem/v2-0106" - oid: "urn:oid:2.16.840.1.113883.18.43" -- id: "v2-0556" - description: "benefitGroup" - url: "http://terminology.hl7.org/CodeSystem/v2-0556" - oid: "urn:oid:2.16.840.1.113883.18.360" -- id: "naics" - description: "North American Industry Classification System" - url: "http://terminology.hl7.org/CodeSystem/naics" - oid: "urn:oid:2.16.840.1.113883.6.85" -- id: "recommendation-strength" - description: "StrengthOfRecommendationRating" - url: "http://terminology.hl7.org/CodeSystem/recommendation-strength" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1268" -- id: "v3-LanguageAbilityProficiency" - description: "LanguageAbilityProficiency" - url: "http://terminology.hl7.org/CodeSystem/v3-LanguageAbilityProficiency" - oid: "urn:oid:2.16.840.1.113883.5.61" -- id: "icpc2E-DUT" - description: "ICPC2E, Dutch Translation" - url: "http://terminology.hl7.org/CodeSystem/icpc2E-DUT" - oid: "urn:oid:2.16.840.1.113883.6.139.2" -- id: "v2-0540" - description: "inactiveReason" - url: "http://terminology.hl7.org/CodeSystem/v2-0540" - oid: "urn:oid:2.16.840.1.113883.18.352" -- id: "v3-cpt-4" - description: "CPT-4" - url: "http://www.ama-assn.org/go/cpt" - oid: "urn:oid:2.16.840.1.113883.6.12" -- id: "v3-ucum" - description: "Unified Code for Units of Measure (UCUM)" - url: "http://unitsofmeasure.org" - oid: "urn:oid:2.16.840.1.113883.6.8" -- id: "ex-paymenttype" - description: "Example Payment Type Codes" - url: "http://terminology.hl7.org/CodeSystem/ex-paymenttype" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1181" -- id: "substance-category" - description: "Substance Category Codes" - url: "http://terminology.hl7.org/CodeSystem/substance-category" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1138" -- id: "v2-0239" - description: "eventExpected" - url: "http://terminology.hl7.org/CodeSystem/v2-0239" - oid: "urn:oid:2.16.840.1.113883.18.138" -- id: "v2-0669" - description: "loadStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0669" - oid: "urn:oid:2.16.840.1.113883.18.385" -- id: "v3-ActReason" - description: "ActReason" - url: "http://terminology.hl7.org/CodeSystem/v3-ActReason" - oid: "urn:oid:2.16.840.1.113883.5.8" -- id: "v2-0393" - description: "matchAlgorithms" - url: "http://terminology.hl7.org/CodeSystem/v2-0393" - oid: "urn:oid:2.16.840.1.113883.18.244" -- id: "parameter-group" - description: "DeviceDefinitionParameterGroup" - url: "http://terminology.hl7.org/CodeSystem/parameter-group" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1264" -- id: "v3-hc-DIN" - description: "Health Canada Drug Id Number" - url: "http://www.canada.ca/en/health-canada/services/drugs-health-products/drug-products/drug-product-database-3" - oid: "urn:oid:2.16.840.1.113883.5.1105" -- id: "v2-0002" - description: "maritalStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0002" - oid: "urn:oid:2.16.840.1.113883.18.179" -- id: "v3-dbSNP" - description: "Genetic Sequence polymorphism database" - url: "http://www.ncbi.nlm.nih.gov/projects/SNP" - oid: "urn:oid:2.16.840.1.113883.6.284" -- id: "v2-0147" - description: "policyType" - url: "http://terminology.hl7.org/CodeSystem/v2-0147" - oid: "urn:oid:2.16.840.1.113883.18.68" -- id: "v2-0517" - description: "informInstructions" - url: "http://terminology.hl7.org/CodeSystem/v2-0517" - oid: "urn:oid:2.16.840.1.113883.18.338" -- id: "consentaction" - description: "Consent Action Codes" - url: "http://terminology.hl7.org/CodeSystem/consentaction" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1227" -- id: "v2-0281" - description: "referralType" - url: "http://terminology.hl7.org/CodeSystem/v2-0281" - oid: "urn:oid:2.16.840.1.113883.18.174" -- id: "v2-0009" - description: "ambulatoryStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0009" - oid: "urn:oid:2.16.840.1.113883.18.11" -- id: "flag-category" - description: "Flag Category" - url: "http://terminology.hl7.org/CodeSystem/flag-category" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1071" -- id: "v3-CommunicationFunctionType" - description: "CommunicationFunctionType" - url: "http://terminology.hl7.org/CodeSystem/v3-CommunicationFunctionType" - oid: "urn:oid:2.16.840.1.113883.5.1056" -- id: "v2-0265" - description: "specialtyType" - url: "http://terminology.hl7.org/CodeSystem/v2-0265" - oid: "urn:oid:2.16.840.1.113883.18.159" -- id: "contractsubtypecodes" - description: "Contract Subtype Codes" - url: "http://terminology.hl7.org/CodeSystem/contractsubtypecodes" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1198" -- id: "v2-0818" - description: "package" - url: "http://terminology.hl7.org/CodeSystem/v2-0818" - oid: "urn:oid:2.16.840.1.113883.18.407" -- id: "v3-TransmissionRelationshipTypeCode" - description: "TransmissionRelationshipTypeCode" - url: "http://terminology.hl7.org/CodeSystem/v3-TransmissionRelationshipTypeCode" - oid: "urn:oid:2.16.840.1.113883.5.1111" -- id: "v2-0398" - description: "continuationStyle" - url: "http://terminology.hl7.org/CodeSystem/v2-0398" - oid: "urn:oid:2.16.840.1.113883.18.249" -- id: "v2-0232" - description: "insuranceCompanyContactReason" - url: "http://terminology.hl7.org/CodeSystem/v2-0232" - oid: "urn:oid:2.16.840.1.113883.18.132" -- id: "v3-EntityNameUseR2" - description: "EntityNameUseR2" - url: "http://terminology.hl7.org/CodeSystem/v3-EntityNameUseR2" - oid: "urn:oid:2.16.840.1.113883.5.1120" -- id: "v2-0377" - description: "environmentalFactors" - url: "http://terminology.hl7.org/CodeSystem/v2-0377" - oid: "urn:oid:2.16.840.1.113883.18.235" -- id: "v2-0418" - description: "procedurePriority" - url: "http://terminology.hl7.org/CodeSystem/v2-0418" - oid: "urn:oid:2.16.840.1.113883.18.260" -- id: "v2-0048" - description: "whatSubjectFilter" - url: "http://terminology.hl7.org/CodeSystem/v2-0048" - oid: "urn:oid:2.16.840.1.113883.18.20" -- id: "USCOC" - description: "US Census Occupation Code" - url: "http://terminology.hl7.org/CodeSystem/USCOC" - oid: "urn:oid:2.16.840.1.113883.6.240" -- id: "consentverification" - description: "Consent Vefication Codes" - url: "http://terminology.hl7.org/CodeSystem/consentverification" - oid: "urn:oid:2.16.840.1.113883.4.642.1.0" - -- id: "v3-ActUSPrivacyLaw" - description: "ActUSPrivacyLaw" - url: "http://terminology.hl7.org/CodeSystem/v3-ActUSPrivacyLaw" - oid: "urn:oid:2.16.840.1.113883.5.1138" -- id: "v3-Ethnicity" - description: "Ethnicity" - url: "http://terminology.hl7.org/CodeSystem/v3-Ethnicity" - oid: "urn:oid:2.16.840.1.113883.5.50" -- id: "v2-0224" - description: "transportArranged" - url: "http://terminology.hl7.org/CodeSystem/v2-0224" - oid: "urn:oid:2.16.840.1.113883.18.125" -- id: "v2-0731" - description: "drgDiagnosisDeterminationStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0731" - oid: "urn:oid:2.16.840.1.113883.18.392" -- id: "v3-CodeSystemType" - description: "HL7 Code System Type" - url: "http://terminology.hl7.org/CodeSystem/v3-CodeSystemType" - oid: "urn:oid:2.16.840.1.113883.5.1085" -- id: "v3-ActCode" - description: "ActCode" - url: "http://terminology.hl7.org/CodeSystem/v3-ActCode" - oid: "urn:oid:2.16.840.1.113883.5.4" -- id: "v2-0273" - description: "documentAvailabilityStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0273" - oid: "urn:oid:2.16.840.1.113883.18.167" -- id: "icpc-FRE" - description: "International Classification of Primary Care 1993 French" - url: "http://terminology.hl7.org/CodeSystem/icpc-FRE" - oid: "urn:oid:2.16.840.1.113883.6.138.5" -- id: "claim-exception" - description: "Exception Codes" - url: "http://terminology.hl7.org/CodeSystem/claim-exception" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1162" -- id: "immunization-recommendation-status" - description: "Immunization Recommendation Status Codes" - url: "http://terminology.hl7.org/CodeSystem/immunization-recommendation-status" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1104" -- id: "v2-0336" - description: "referralReason" - url: "http://terminology.hl7.org/CodeSystem/v2-0336" - oid: "urn:oid:2.16.840.1.113883.18.206" -- id: "v2-0121" - description: "responseFlag" - url: "http://terminology.hl7.org/CodeSystem/v2-0121" - oid: "urn:oid:2.16.840.1.113883.18.49" -- id: "med-admin-perform-function" - description: "MedicationAdministration Performer Function Codes" - url: "http://terminology.hl7.org/CodeSystem/med-admin-perform-function" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1112" -- id: "v2-0571" - description: "invoiceProcessingResultsStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0571" - oid: "urn:oid:2.16.840.1.113883.18.371" -- id: "v3-HL7StandardVersionCode" - description: "HL7StandardVersionCode" - url: "http://terminology.hl7.org/CodeSystem/v3-HL7StandardVersionCode" - oid: "urn:oid:2.16.840.1.113883.5.1097" -- id: "characteristic-method" - description: "CharacteristicMethod" - url: "http://terminology.hl7.org/CodeSystem/characteristic-method" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1453" -- id: "v2-0434" - description: "patientCondition" - url: "http://terminology.hl7.org/CodeSystem/v2-0434" - oid: "urn:oid:2.16.840.1.113883.18.275" -- id: "v2-0208" - description: "queryResponseStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0208" - oid: "urn:oid:2.16.840.1.113883.18.113" -- id: "medicationknowledge-status" - description: "MedicationKnowledge Status Codes" - url: "http://terminology.hl7.org/CodeSystem/medicationknowledge-status" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1336" -- id: "v3-GTSAbbreviation" - description: "GTSAbbreviation" - url: "http://terminology.hl7.org/CodeSystem/v3-GTSAbbreviation" - oid: "urn:oid:2.16.840.1.113883.5.1022" -- id: "basic-resource-type" - description: "Basic Resource Types" - url: "http://terminology.hl7.org/CodeSystem/basic-resource-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1072" -- id: "v3-RoleLinkType" - description: "RoleLinkType" - url: "http://terminology.hl7.org/CodeSystem/v3-RoleLinkType" - oid: "urn:oid:2.16.840.1.113883.5.107" -- id: "v2-0033" - description: "route" - url: "http://terminology.hl7.org/CodeSystem/v2-0033" - oid: "urn:oid:2.16.840.1.113883.18.16" -- id: "consentpolicycodes" - description: "Consent PolicyRule Codes" - url: "http://terminology.hl7.org/CodeSystem/consentpolicycodes" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1229" -- id: "v3-ExposureMode" - description: "ExposureMode" - url: "http://terminology.hl7.org/CodeSystem/v3-ExposureMode" - oid: "urn:oid:2.16.840.1.113883.5.1113" -- id: "v3-ada-snodent" - description: "Systematized Nomenclature of Dentistry (SNODENT)" - url: "http://www.ada.org/snodent" - oid: "urn:oid:2.16.840.1.113883.3.3150" -- id: "v3-hgvs" - description: "Human Genome Variation Society nomenclature" - url: "http://varnomen.hgvs.org" - oid: "urn:oid:2.16.840.1.113883.6.282" -- id: "v2-0160" - description: "trayType" - url: "http://terminology.hl7.org/CodeSystem/v2-0160" - oid: "urn:oid:2.16.840.1.113883.18.78" -- id: "v2-0530" - description: "organization-Agency-Department" - url: "http://terminology.hl7.org/CodeSystem/v2-0530" - oid: "urn:oid:2.16.840.1.113883.18.346" -- id: "v2-0926" - description: "phlebotomyStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0926" - oid: "urn:oid:2.16.840.1.113883.18.432" -- id: "participant-type" - description: "Participant type" - url: "http://terminology.hl7.org/CodeSystem/participant-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1089" -- id: "v2-0475" - description: "chargeTypeReason" - url: "http://terminology.hl7.org/CodeSystem/v2-0475" - oid: "urn:oid:2.16.840.1.113883.18.303" -- id: "v3-ModifyIndicator" - description: "ModifyIndicator" - url: "http://terminology.hl7.org/CodeSystem/v3-ModifyIndicator" - oid: "urn:oid:2.16.840.1.113883.5.81" -- id: "paymentstatus" - description: "Payment Status Codes" - url: "http://terminology.hl7.org/CodeSystem/paymentstatus" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1187" -- id: "v2-0834" - description: "mimeTypes" - url: "http://terminology.hl7.org/CodeSystem/v2-0834" - oid: "urn:oid:2.16.840.1.113883.18.408" -- id: "v2-0137" - description: "mailClaimParty" - url: "http://terminology.hl7.org/CodeSystem/v2-0137" - oid: "urn:oid:2.16.840.1.113883.18.61" -- id: "v2-0422" - description: "triageType" - url: "http://terminology.hl7.org/CodeSystem/v2-0422" - oid: "urn:oid:2.16.840.1.113883.18.263" -- id: "v3-ConceptGenerality" - description: "ConceptGenerality" - url: "http://terminology.hl7.org/CodeSystem/v3-ConceptGenerality" - oid: "urn:oid:2.16.840.1.113883.5.24" -- id: "v2-0971" - description: "onlineVerificationResultErrorCodes" - url: "http://terminology.hl7.org/CodeSystem/v2-0971" - oid: "urn:oid:2.16.840.1.113883.18.454" -- id: "NHSNOccasionOfDetection" - description: "NHSN Occasion Of Detection" - url: "http://terminology.hl7.org/CodeSystem/NHSNOccasionOfDetection" - oid: "urn:oid:2.16.840.1.113883.6.273" -- id: "v2-0269" - description: "chargeOnIndicator" - url: "http://terminology.hl7.org/CodeSystem/v2-0269" - oid: "urn:oid:2.16.840.1.113883.18.162" -- id: "v2-0793" - description: "rulingAct" - url: "http://terminology.hl7.org/CodeSystem/v2-0793" - oid: "urn:oid:2.16.840.1.113883.18.405" -- id: "measure-population" - description: "MeasurePopulationType" - url: "http://terminology.hl7.org/CodeSystem/measure-population" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1231" -- id: "v2-0286" - description: "providerRole" - url: "http://terminology.hl7.org/CodeSystem/v2-0286" - oid: "urn:oid:2.16.840.1.113883.18.178" -- id: "whoGER" - description: "WHO Adverse Reaction Terms German" - url: "http://terminology.hl7.org/CodeSystem/whoGER" - oid: "urn:oid:2.16.840.1.113883.6.230.2" -- id: "v2-0906" - description: "actpriority" - url: "http://terminology.hl7.org/CodeSystem/v2-0906" - oid: "urn:oid:2.16.840.1.113883.18.417" -- id: "program" - description: "Program" - url: "http://terminology.hl7.org/CodeSystem/program" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1384" -- id: "HL70005" - description: "PH_RaceAndEthnicity_CDC" - url: "http://terminology.hl7.org/CodeSystem/v3-Race" - oid: "urn:oid:2.16.840.1.113883.6.238" -- id: "v2-0005" - description: "PH_RaceAndEthnicity_CDC" - url: "http://terminology.hl7.org/CodeSystem/v2-0005" - oid: "urn:oid:2.16.840.1.113883.6.238" -- id: "adjudication-error" - description: "Adjudication Error Codes" - url: "http://terminology.hl7.org/CodeSystem/adjudication-error" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1053" -- id: "v3-MDFAttributeType" - description: "MDFAttributeType" - url: "http://terminology.hl7.org/CodeSystem/v3-MDFAttributeType" - oid: "urn:oid:2.16.840.1.113883.5.74" -- id: "v2-0140" - description: "militaryService" - url: "http://terminology.hl7.org/CodeSystem/v2-0140" - oid: "urn:oid:2.16.840.1.113883.18.62" -- id: "v2-0510" - description: "bloodProductDispenseStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0510" - oid: "urn:oid:2.16.840.1.113883.18.333" -- id: "v3-SubstitutionCondition" - description: "SubstitutionCondition" - url: "http://terminology.hl7.org/CodeSystem/v3-SubstitutionCondition" - oid: "urn:oid:2.16.840.1.113883.5.1071" -- id: "v3-iso3166-2" - description: "ISO 3166 Part 2 Country Subdivision Codes" - url: "urn:iso:std:iso:3166:-2" - oid: "urn:oid:1.0.3166.2" -- id: "conceptdomains" - description: "Concept Domains" - url: "http://terminology.hl7.org/CodeSystem/conceptdomains" - oid: null -- id: "v2-0394" - description: "responseModality" - url: "http://terminology.hl7.org/CodeSystem/v2-0394" - oid: "urn:oid:2.16.840.1.113883.18.245" -- id: "medicationdispense-performer-function" - description: "MedicationDispense Performer Function Codes" - url: "http://terminology.hl7.org/CodeSystem/medicationdispense-performer-function" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1319" -- id: "v2-0402" - description: "schoolType" - url: "http://terminology.hl7.org/CodeSystem/v2-0402" - oid: "urn:oid:2.16.840.1.113883.18.251" -- id: "v2-0052" - description: "diagnosisType" - url: "http://terminology.hl7.org/CodeSystem/v2-0052" - oid: "urn:oid:2.16.840.1.113883.18.21" -- id: "v2-0951" - description: "reasonForStudy" - url: "http://terminology.hl7.org/CodeSystem/v2-0951" - oid: "urn:oid:2.16.840.1.113883.18.451" -- id: "v2-0547" - description: "jurisdictionalBreadth" - url: "http://terminology.hl7.org/CodeSystem/v2-0547" - oid: "urn:oid:2.16.840.1.113883.18.354" -- id: "v2-0228" - description: "diagnosisClassification" - url: "http://terminology.hl7.org/CodeSystem/v2-0228" - oid: "urn:oid:2.16.840.1.113883.18.128" -- id: "ex-payee-resource-type" - description: "ClaimPayeeResourceType" - url: "http://terminology.hl7.org/CodeSystem/ex-payee-resource-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1164" -- id: "v3-scpqual" - description: "pan-Canadian Provider Qualification Types" - url: "https://fhir.infoway-inforoute.ca/CodeSystem/scpqual" - oid: "urn:oid:2.16.840.1.113883.2.20.5.4" -- id: "contract-content-derivative" - description: "Contract Content Derivation Codes" - url: "http://terminology.hl7.org/CodeSystem/contract-content-derivative" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1204" -- id: "v3-EntityNamePartType" - description: "EntityNamePartType" - url: "http://terminology.hl7.org/CodeSystem/v3-EntityNamePartType" - oid: "urn:oid:2.16.840.1.113883.5.44" -- id: "icpc2-icd10-THSRS" - description: "ICPC2-ICD10 Thesaurus" - url: "http://terminology.hl7.org/CodeSystem/icpc2-icd10-THSRS" - oid: "urn:oid:2.16.840.1.113883.6.142" -- id: "icpc-ITA" - description: "International Classification of Primary Care 1993 Italian" - url: "http://terminology.hl7.org/CodeSystem/icpc-ITA" - oid: "urn:oid:2.16.840.1.113883.6.138.9" -- id: "icpc-SPA" - description: "International Classification of Primary Care 1993 Spanish" - url: "http://terminology.hl7.org/CodeSystem/icpc-SPA" - oid: "urn:oid:2.16.840.1.113883.6.138.12" -- id: "icpc-ENG" - description: "International Classification of Primary Care 1993 (English)" - url: "http://terminology.hl7.org/CodeSystem/icpc-ENG" - oid: "urn:oid:2.16.840.1.113883.6.138.14" -- id: "definition-topic" - description: "DefinitionTopic" - url: "http://terminology.hl7.org/CodeSystem/definition-topic" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1244" -- id: "v2-0290" - description: "mimeBase64EncodingCharacters" - url: "http://terminology.hl7.org/CodeSystem/v2-0290" - oid: "urn:oid:2.16.840.1.113883.18.180" -- id: "v3-CodingRationale" - description: "CodingRationale" - url: "http://terminology.hl7.org/CodeSystem/v3-CodingRationale" - oid: "urn:oid:2.16.840.1.113883.5.1074" -- id: "v2-0443" - description: "providerRole" - url: "http://terminology.hl7.org/CodeSystem/v2-0443" - oid: "urn:oid:2.16.840.1.113883.18.283" -- id: "v3-ProcessingID" - description: "ProcessingID" - url: "http://terminology.hl7.org/CodeSystem/v3-ProcessingID" - oid: "urn:oid:2.16.840.1.113883.5.100" -- id: "v2-0506" - description: "serviceRequestRelationship" - url: "http://terminology.hl7.org/CodeSystem/v2-0506" - oid: "urn:oid:2.16.840.1.113883.18.330" -- id: "v2-0156" - description: "whichDate-timeQualifier" - url: "http://terminology.hl7.org/CodeSystem/v2-0156" - oid: "urn:oid:2.16.840.1.113883.18.74" -- id: "history-absent-reason" - description: "FamilyHistoryAbsentReason" - url: "http://terminology.hl7.org/CodeSystem/history-absent-reason" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1094" -- id: "v3-EntityNamePartQualifier" - description: "EntityNamePartQualifier" - url: "http://terminology.hl7.org/CodeSystem/v3-EntityNamePartQualifier" - oid: "urn:oid:2.16.840.1.113883.5.43" - -- id: "icd10PCS" - description: "ICD-10 Procedure Codes" - url: "http://www.cms.gov/Medicare/Coding/ICD10" - oid: "urn:oid:2.16.840.1.113883.6.4" -- id: "v2-0204" - description: "organizationalNameType" - url: "http://terminology.hl7.org/CodeSystem/v2-0204" - oid: "urn:oid:2.16.840.1.113883.18.109" -- id: "adverse-event-severity" - description: "AdverseEventSeverity" - url: "http://terminology.hl7.org/CodeSystem/adverse-event-severity" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1256" -- id: "v3-ActClass" - description: "ActClass" - url: "http://terminology.hl7.org/CodeSystem/v3-ActClass" - oid: "urn:oid:2.16.840.1.113883.5.6" -- id: "v2-0438" - description: "allergyClinicalStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0438" - oid: "urn:oid:2.16.840.1.113883.18.279" -- id: "v3-refSeq" - description: "Gene Reference Sequence Collection" - url: "http://www.ncbi.nlm.nih.gov/refseq" - oid: "urn:oid:2.16.840.1.113883.6.280" -- id: "modifiers" - description: "Modifier type Codes" - url: "http://terminology.hl7.org/CodeSystem/modifiers" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1151" -- id: "v2-0316" - description: "organDonorCodes" - url: "http://terminology.hl7.org/CodeSystem/v2-0316" - oid: "urn:oid:2.16.840.1.113883.18.192" -- id: "v2-0253" - description: "indirectExposureMechanism" - url: "http://terminology.hl7.org/CodeSystem/v2-0253" - oid: "urn:oid:2.16.840.1.113883.18.148" -- id: "v2-0480" - description: "pharmacyOrderTypes" - url: "http://terminology.hl7.org/CodeSystem/v2-0480" - oid: "urn:oid:2.16.840.1.113883.18.306" -- id: "implantStatus" - description: "Implant Status" - url: "http://terminology.hl7.org/CodeSystem/implantStatus" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1283" -- id: "v3-DocumentStorage" - description: "DocumentStorage" - url: "http://terminology.hl7.org/CodeSystem/v3-DocumentStorage" - oid: "urn:oid:2.16.840.1.113883.5.34" -- id: "v2-0615" - description: "userAuthenticationCredentialType" - url: "http://terminology.hl7.org/CodeSystem/v2-0615" - oid: "urn:oid:2.16.840.1.113883.18.373" -- id: "v2-0496" - description: "consentType" - url: "http://terminology.hl7.org/CodeSystem/v2-0496" - oid: "urn:oid:2.16.840.1.113883.18.320" -- id: "v2-0183" - description: "active-inactive" - url: "http://terminology.hl7.org/CodeSystem/v2-0183" - oid: "urn:oid:2.16.840.1.113883.18.97" -- id: "match-grade" - description: "MatchGrade" - url: "http://terminology.hl7.org/CodeSystem/match-grade" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1289" -- id: "list-order" - description: "List Order Codes" - url: "http://terminology.hl7.org/CodeSystem/list-order" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1107" -- id: "v3-ProcessingMode" - description: "ProcessingMode" - url: "http://terminology.hl7.org/CodeSystem/v3-ProcessingMode" - oid: "urn:oid:2.16.840.1.113883.5.101" -- id: "icpc2E-P-AUS" - description: "ICPC2P 1998 Plus Austral Mod" - url: "http://terminology.hl7.org/CodeSystem/icpc2E-P-AUS" - oid: "urn:oid:2.16.840.1.113883.6.140.2" -- id: "v2-0357" - description: "messageErrorCondition" - url: "http://terminology.hl7.org/CodeSystem/v2-0357" - oid: "urn:oid:2.16.840.1.113883.18.217" -- id: "v2-0642" - description: "reorderTheory" - url: "http://terminology.hl7.org/CodeSystem/v2-0642" - oid: "urn:oid:2.16.840.1.113883.18.379" -- id: "icd10CM" - description: "International Classification of Diseases, 10th Revision, Clinical Modification\ - \ (ICD-10-CM)" - url: "http://hl7.org/fhir/sid/icd-10-cm" - oid: "urn:oid:2.16.840.1.113883.6.90" -- id: "ICD-10-CM" - description: "International Classification of Diseases, 10th Revision, Clinical Modification\ - \ (ICD-10-CM)" - url: "http://hl7.org/fhir/sid/icd-10-cm" - oid: "urn:oid:2.16.840.1.113883.6.90" -- id: "observation-category" - description: "Observation Category Codes" - url: "http://terminology.hl7.org/CodeSystem/observation-category" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1125" -- id: "v2-0091" - description: "queryPriority" - url: "http://terminology.hl7.org/CodeSystem/v2-0091" - oid: "urn:oid:2.16.840.1.113883.18.35" -- id: "testscript-profile-origin-types" - description: "Test script profile origin type" - url: "http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1196" -- id: "v3-AddressUse" - description: "AddressUse" - url: "http://terminology.hl7.org/CodeSystem/v3-AddressUse" - oid: "urn:oid:2.16.840.1.113883.5.1119" -- id: "immunization-subpotent-reason" - description: "Immunization Subpotent Reason" - url: "http://terminology.hl7.org/CodeSystem/immunization-subpotent-reason" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1098" -- id: "measure-improvement-notation" - description: "MeasureImprovementNotation" - url: "http://terminology.hl7.org/CodeSystem/measure-improvement-notation" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1395" -- id: "v2-0356" - description: "alternateCharacterSetHandlingScheme" - url: "http://terminology.hl7.org/CodeSystem/v2-0356" - oid: "urn:oid:2.16.840.1.113883.18.216" -- id: "v2-0213" - description: "purgeStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0213" - oid: "urn:oid:2.16.840.1.113883.18.117" -- id: "v2-0497" - description: "consentMode" - url: "http://terminology.hl7.org/CodeSystem/v2-0497" - oid: "urn:oid:2.16.840.1.113883.18.321" -- id: "v2-0478" - description: "formularyStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0478" - oid: "urn:oid:2.16.840.1.113883.18.305" -- id: "v2-0881" - description: "roleExecutingPhysician" - url: "http://terminology.hl7.org/CodeSystem/v2-0881" - oid: "urn:oid:2.16.840.1.113883.18.411" -- id: "v2-0301" - description: "universalIdType" - url: "http://terminology.hl7.org/CodeSystem/v2-0301" - oid: "urn:oid:2.16.840.1.113883.18.186" -- id: "applicability" - description: "Benefit cost applicability" - url: "http://terminology.hl7.org/CodeSystem/applicability" - oid: "urn:oid:2.16.840.1.113883.4.642.1.0" -- id: "audit-entity-type" - description: "Audit event entity type" - url: "http://terminology.hl7.org/CodeSystem/audit-entity-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1134" -- id: "v3-ResponseMode" - description: "ResponseMode" - url: "http://terminology.hl7.org/CodeSystem/v3-ResponseMode" - oid: "urn:oid:2.16.840.1.113883.5.1126" -- id: "research-study-objective-type" - description: "ResearchStudyObjectiveType" - url: "http://terminology.hl7.org/CodeSystem/research-study-objective-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1248" -- id: "v3-AcknowledgementDetailType" - description: "AcknowledgementDetailType" - url: "http://terminology.hl7.org/CodeSystem/v3-AcknowledgementDetailType" - oid: "urn:oid:2.16.840.1.113883.5.1082" -- id: "operation-outcome" - description: "Operation Outcome Codes" - url: "http://terminology.hl7.org/CodeSystem/operation-outcome" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1127" -- id: "v3-QueryStatusCode" - description: "QueryStatusCode" - url: "http://terminology.hl7.org/CodeSystem/v3-QueryStatusCode" - oid: "urn:oid:2.16.840.1.113883.5.103" -- id: "v2-0317" - description: "annotations" - url: "http://terminology.hl7.org/CodeSystem/v2-0317" - oid: "urn:oid:2.16.840.1.113883.18.193" -- id: "expansion-processing-rule" - description: "ExpansionProcessingRule" - url: "http://terminology.hl7.org/CodeSystem/expansion-processing-rule" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1281" -- id: "v2-0252" - description: "causalityObservations" - url: "http://terminology.hl7.org/CodeSystem/v2-0252" - oid: "urn:oid:2.16.840.1.113883.18.147" -- id: "mdr" - description: "MedDRA" - url: "http://terminology.hl7.org/CodeSystem/mdr" - oid: "urn:oid:2.16.840.1.113883.6.163" -- id: "v3-ActRelationshipSubset" - description: "ActRelationshipSubset" - url: "http://terminology.hl7.org/CodeSystem/v3-ActRelationshipSubset" - oid: "urn:oid:2.16.840.1.113883.5.1099" -- id: "VHA" - description: "US Department of Veterans Affairs" - url: "http://terminology.hl7.org/CodeSystem/VHA" - oid: "urn:oid:2.16.840.1.113883.6.233" -- id: "v3-hl7ApprovalStatus" - description: "HL7ApprovalStatus" - url: "http://terminology.hl7.org/CodeSystem/v3-hl7ApprovalStatus" - oid: "urn:oid:2.16.840.1.113883.5.1130" -- id: "v2-0069" - description: "hospitalService" - url: "http://terminology.hl7.org/CodeSystem/v2-0069" - oid: "urn:oid:2.16.840.1.113883.18.27" -- id: "DEEDS407" - description: "DEEDS407" - url: "http://terminology.hl7.org/CodeSystem/DEEDS407" - oid: "urn:oid:2.16.840.1.113883.6.102.4.7" -- id: "hl7TermMaintInfra" - description: "HL7 Terminology Maintenance Infrastructure Vocabulary" - url: "http://terminology.hl7.org/CodeSystem/hl7TermMaintInfra" - oid: null -- id: "hsloc" - description: "Healthcare Service Location" - url: "http://terminology.hl7.org/CodeSystem/hsloc" - oid: "urn:oid:2.16.840.1.113883.6.259" -- id: "v3-PostalAddressUse" - description: "PostalAddressUse" - url: "http://terminology.hl7.org/CodeSystem/v3-PostalAddressUse" - oid: "urn:oid:2.16.840.1.113883.5.1012" -- id: "v2-0205" - description: "priceType" - url: "http://terminology.hl7.org/CodeSystem/v2-0205" - oid: "urn:oid:2.16.840.1.113883.18.110" -- id: "contactentity-type" - description: "Contact entity type" - url: "http://terminology.hl7.org/CodeSystem/contactentity-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1129" -- id: "v2-0442" - description: "locationServiceType" - url: "http://terminology.hl7.org/CodeSystem/v2-0442" - oid: "urn:oid:2.16.840.1.113883.18.282" -- id: "v2-0012" - description: "stockLocation" - url: "http://terminology.hl7.org/CodeSystem/v2-0012" - oid: "urn:oid:2.16.840.1.113883.18.12" -- id: "study-type" - description: "StatisticStudyType" - url: "http://terminology.hl7.org/CodeSystem/study-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1350" -- id: "v3-EncounterAccident" - description: "EncounterAccident" - url: "http://terminology.hl7.org/CodeSystem/v3-EncounterAccident" - oid: "urn:oid:2.16.840.1.113883.5.36" -- id: "umls" - description: "Unified Medical Language System" - url: "http://terminology.hl7.org/CodeSystem/umls" - oid: "urn:oid:2.16.840.1.113883.6.86" -- id: "v2-0507" - description: "observationResultHandling" - url: "http://terminology.hl7.org/CodeSystem/v2-0507" - oid: "urn:oid:2.16.840.1.113883.18.331" -- id: "v2-0157" - description: "whichDate-timeStatusQualifier" - url: "http://terminology.hl7.org/CodeSystem/v2-0157" - oid: "urn:oid:2.16.840.1.113883.18.75" -- id: "adverse-event-category" - description: "AdverseEventCategory" - url: "http://terminology.hl7.org/CodeSystem/adverse-event-category" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1251" -- id: "v2-0291" - description: "subtypeOfReferencedData" - url: "http://terminology.hl7.org/CodeSystem/v2-0291" - oid: "urn:oid:2.16.840.1.113883.18.181" -- id: "composition-altcode-kind" - description: "AlternativeCodeKind" - url: "http://terminology.hl7.org/CodeSystem/composition-altcode-kind" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1406" -- id: "v3-TargetAwareness" - description: "TargetAwareness" - url: "http://terminology.hl7.org/CodeSystem/v3-TargetAwareness" - oid: "urn:oid:2.16.840.1.113883.5.137" -- id: "v3-ActExposureLevelCode" - description: "ActExposureLevelCode" - url: "http://terminology.hl7.org/CodeSystem/v3-ActExposureLevelCode" - oid: "urn:oid:2.16.840.1.113883.5.1114" -- id: "list-example-use-codes" - description: "Example Use Codes for List" - url: "http://terminology.hl7.org/CodeSystem/list-example-use-codes" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1105" -- id: "v2-0946" - description: "supplierType" - url: "http://terminology.hl7.org/CodeSystem/v2-0946" - oid: "urn:oid:2.16.840.1.113883.18.446" -- id: "v2-0415" - description: "drgTransferType" - url: "http://terminology.hl7.org/CodeSystem/v2-0415" - oid: "urn:oid:2.16.840.1.113883.18.257" -- id: "v2-0100" - description: "invocationEvent" - url: "http://terminology.hl7.org/CodeSystem/v2-0100" - oid: "urn:oid:2.16.840.1.113883.18.38" -- id: "v3-fda-FFRN" - description: "Food and Drug Administration Food Facility Registration Numbers" - url: "http://terminology.hl7.org/CodeSystem/v3-fda-FFRN" - oid: "urn:oid:2.16.840.1.113883.3.24.6.1" -- id: "v2-0550" - description: "bodyParts" - url: "http://terminology.hl7.org/CodeSystem/v2-0550" - oid: "urn:oid:2.16.840.1.113883.18.356" -- id: "ex-serviceplace" - description: "Example Service Place Codes" - url: "http://terminology.hl7.org/CodeSystem/ex-serviceplace" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1157" -- id: "measure-data-usage" - description: "MeasureDataUsage" - url: "http://terminology.hl7.org/CodeSystem/measure-data-usage" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1234" -- id: "NHSNInfectionType" - description: "NHSN Infection Type" - url: "http://terminology.hl7.org/CodeSystem/NHSNInfectionType" - oid: "urn:oid:2.16.840.1.113883.6.268" -- id: "v2-0383" - description: "substanceStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0383" - oid: "urn:oid:2.16.840.1.113883.18.236" -- id: "medication-admin-location" - description: "MedicationAdministration Location Codes" - url: "http://terminology.hl7.org/CodeSystem/medication-admin-location" - oid: "urn:oid:2.16.840.1.113883.4.642.1.0" -- id: "condition-category" - description: "Condition Category Codes" - url: "http://terminology.hl7.org/CodeSystem/condition-category" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1073" -- id: "v2-0403" - description: "languageAbility" - url: "http://terminology.hl7.org/CodeSystem/v2-0403" - oid: "urn:oid:2.16.840.1.113883.18.252" -- id: "v3-hl7PublishingSection" - description: "HL7PublishingSection" - url: "http://terminology.hl7.org/CodeSystem/v3-hl7PublishingSection" - oid: "urn:oid:2.16.840.1.113883.5.1133" -- id: "v2-0950" - description: "orderStatusModifier" - url: "http://terminology.hl7.org/CodeSystem/v2-0950" - oid: "urn:oid:2.16.840.1.113883.18.450" -- id: "ex-USCLS" - description: "USCLS Codes" - url: "http://terminology.hl7.org/CodeSystem/ex-USCLS" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1153" -- id: "reason-medication-given" - description: "Reason Medication Given Codes" - url: "http://terminology.hl7.org/CodeSystem/reason-medication-given" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1110" -- id: "v2-0116" - description: "bedStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0116" - oid: "urn:oid:2.16.840.1.113883.18.47" -- id: "epsg-crs" - description: "European Petroleum Survey Group Geodetic Parameter Dataset Coordinate Reference\ - \ System" - url: "http://terminology.hl7.org/CodeSystem/epsg-crs" - oid: "urn:oid:2.16.840.1.113883.6.278" -- id: "coverage-copay-type" - description: "Coverage Copay Type Codes" - url: "http://terminology.hl7.org/CodeSystem/coverage-copay-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1149" -- id: "v2-0395" - description: "modifyIndicator" - url: "http://terminology.hl7.org/CodeSystem/v2-0395" - oid: "urn:oid:2.16.840.1.113883.18.246" -- id: "v2-0907" - description: "confidentiality" - url: "http://terminology.hl7.org/CodeSystem/v2-0907" - oid: "urn:oid:2.16.840.1.113883.18.418" -- id: "immunization-evaluation-dose-status" - description: "Immunization Evaluation Dose Status codes" - url: "http://terminology.hl7.org/CodeSystem/immunization-evaluation-dose-status" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1102" -- id: "v3-Dentition" - description: "Dentition" - url: "http://terminology.hl7.org/CodeSystem/v3-Dentition" - oid: "urn:oid:2.16.840.1.113883.5.1080" -- id: "v2-0004" - description: "patientClass" - url: "http://terminology.hl7.org/CodeSystem/v2-0004" - oid: "urn:oid:2.16.840.1.113883.18.5" -- id: "v2-0511" - description: "bpObservationStatusCodesInterpretation" - url: "http://terminology.hl7.org/CodeSystem/v2-0511" - oid: "urn:oid:2.16.840.1.113883.18.334" -- id: "v3-EntityDeterminer" - description: "EntityDeterminer" - url: "http://terminology.hl7.org/CodeSystem/v3-EntityDeterminer" - oid: "urn:oid:2.16.840.1.113883.5.30" -- id: "v2-0268" - description: "override" - url: "http://terminology.hl7.org/CodeSystem/v2-0268" - oid: "urn:oid:2.16.840.1.113883.18.161" -- id: "push-type-available" - description: "Push-type-available" - url: "http://terminology.hl7.org/CodeSystem/push-type-available" - oid: "urn:oid:2.16.840.1.113883.4.642.1.899" -- id: "v3-EditStatus" - description: "EditStatus" - url: "http://terminology.hl7.org/CodeSystem/v3-EditStatus" - oid: "urn:oid:2.16.840.1.113883.5.35" -- id: "v3-ActSite" - description: "ActSite" - url: "http://terminology.hl7.org/CodeSystem/v3-ActSite" - oid: "urn:oid:2.16.840.1.113883.5.1052" -- id: "v2-0287" - description: "problem-goalAction" - url: "http://terminology.hl7.org/CodeSystem/v2-0287" - oid: "urn:oid:2.16.840.1.113883.18.3" -- id: "v3-TableCellScope" - description: "TableCellScope" - url: "http://terminology.hl7.org/CodeSystem/v3-TableCellScope" - oid: "urn:oid:2.16.840.1.113883.5.132" -- id: "ib" - description: "ISBT" - url: "http://terminology.hl7.org/CodeSystem/ib" - oid: "urn:oid:2.16.840.1.113883.6.18" -- id: "primary-source-type" - description: "Primary-source-type" - url: "http://terminology.hl7.org/CodeSystem/primary-source-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.893" -- id: "v3-Charset" - description: "Charset" - url: "http://terminology.hl7.org/CodeSystem/v3-Charset" - oid: "urn:oid:2.16.840.1.113883.5.21" -- id: "v2-0566" - description: "bloodUnitType" - url: "http://terminology.hl7.org/CodeSystem/v2-0566" - oid: "urn:oid:2.16.840.1.113883.18.368" -- id: "v2-0423" - description: "caseCategory" - url: "http://terminology.hl7.org/CodeSystem/v2-0423" - oid: "urn:oid:2.16.840.1.113883.18.264" -- id: "validation-type" - description: "Validation-type" - url: "http://terminology.hl7.org/CodeSystem/validation-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.887" -- id: "icd9cm" - description: "ICD-9CM" - url: "http://terminology.hl7.org/CodeSystem/icd9cm" - oid: "urn:oid:2.16.840.1.113883.6.2" -- id: "v2-0970" - description: "onlineVerificationResult" - url: "http://terminology.hl7.org/CodeSystem/v2-0970" - oid: "urn:oid:2.16.840.1.113883.18.453" -- id: "condition-state" - description: "ConditionState" - url: "http://terminology.hl7.org/CodeSystem/condition-state" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1287" -- id: "communication-topic" - description: "CommunicationTopic" - url: "http://terminology.hl7.org/CodeSystem/communication-topic" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1078" -- id: "v3-ISO3166-3retired" - description: "ISO 3166 Numeric country Codes" - url: "http://terminology.hl7.org/CodeSystem/v3-ISO3166-3retired" - oid: "urn:oid:2.16.3" -- id: "v2-0618" - description: "protection" - url: "http://terminology.hl7.org/CodeSystem/v2-0618" - oid: "urn:oid:2.16.840.1.113883.18.376" -- id: "v2-0248" - description: "productSource" - url: "http://terminology.hl7.org/CodeSystem/v2-0248" - oid: "urn:oid:2.16.840.1.113883.18.144" -- id: "v2-0161" - description: "allowSubstitution" - url: "http://terminology.hl7.org/CodeSystem/v2-0161" - oid: "urn:oid:2.16.840.1.113883.18.79" -- id: "v2-0927" - description: "armStick" - url: "http://terminology.hl7.org/CodeSystem/v2-0927" - oid: "urn:oid:2.16.840.1.113883.18.433" -- id: "ahfs" - description: "AHFS Pharmacologic-Therapeutic Classification" - url: "http://terminology.hl7.org/CodeSystem/ahfs" - oid: "urn:oid:2.16.840.1.113883.6.234" -- id: "name-assembly-order" - description: "HumanNameAssemblyOrder" - url: "http://terminology.hl7.org/CodeSystem/name-assembly-order" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1266" -- id: "v3-HL7ConformanceInclusion" - description: "HL7ConformanceInclusion" - url: "http://terminology.hl7.org/CodeSystem/v3-HL7ConformanceInclusion" - oid: "urn:oid:2.16.840.1.113883.5.55" -- id: "v2-0474" - description: "organizationUnitType" - url: "http://terminology.hl7.org/CodeSystem/v2-0474" - oid: "urn:oid:2.16.840.1.113883.18.302" -- id: "MSH" - description: "MeSH" - url: "http://terminology.hl7.org/CodeSystem/MSH" - oid: "urn:oid:2.16.840.1.113883.6.177" -- id: "v3-snomed-CT" - description: "SNOMED\_CT International Edition" - url: "http://snomed.info/sct" - oid: "urn:oid:2.16.840.1.113883.6.96" -- id: "v3-EntityRisk" - description: "EntityRisk" - url: "http://terminology.hl7.org/CodeSystem/v3-EntityRisk" - oid: "urn:oid:2.16.840.1.113883.5.46" -- id: "DEEDS519" - description: "DEEDS519" - url: "http://terminology.hl7.org/CodeSystem/DEEDS519" - oid: "urn:oid:2.16.840.1.113883.6.102.5.19" -- id: "v2-0527" - description: "calendarAlignment" - url: "http://terminology.hl7.org/CodeSystem/v2-0527" - oid: "urn:oid:2.16.840.1.113883.18.343" -- id: "v2-0177" - description: "confidentialityCodes" - url: "http://terminology.hl7.org/CodeSystem/v2-0177" - oid: "urn:oid:2.16.840.1.113883.18.92" -- id: "medicationknowledge-package-type" - description: "MedicationKnowledge Package Type Codes" - url: "http://terminology.hl7.org/CodeSystem/medicationknowledge-package-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1340" -- id: "v2-0659" - description: "lotControl" - url: "http://terminology.hl7.org/CodeSystem/v2-0659" - oid: "urn:oid:2.16.840.1.113883.18.383" -- id: "v2-0209" - description: "relationalOperator" - url: "http://terminology.hl7.org/CodeSystem/v2-0209" - oid: "urn:oid:2.16.840.1.113883.18.114" -- id: "v3-HL7UpdateMode" - description: "HL7UpdateMode" - url: "http://terminology.hl7.org/CodeSystem/v3-HL7UpdateMode" - oid: "urn:oid:2.16.840.1.113883.5.57" -- id: "v2-0570" - description: "paymentMethod" - url: "http://terminology.hl7.org/CodeSystem/v2-0570" - oid: "urn:oid:2.16.840.1.113883.18.370" -- id: "v2-0065" - description: "specimenAction" - url: "http://terminology.hl7.org/CodeSystem/v2-0065" - oid: "urn:oid:2.16.840.1.113883.18.25" -- id: "v2-0435" - description: "advanceDirective" - url: "http://terminology.hl7.org/CodeSystem/v2-0435" - oid: "urn:oid:2.16.840.1.113883.18.276" -- id: "v2-0272" - description: "documentConfidentialityStatus2" - url: "http://terminology.hl7.org/CodeSystem/v2-0272" - oid: "urn:oid:2.16.840.1.113883.18.166" -- id: "v2-0337" - description: "certificationStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0337" - oid: "urn:oid:2.16.840.1.113883.18.207" -- id: "icpc-HUN" - description: "International Classification of Primary Care 1993 Hungarian" - url: "http://terminology.hl7.org/CodeSystem/icpc-HUN" - oid: "urn:oid:2.16.840.1.113883.6.138.8" -- id: "v2-0225" - description: "escortRequired" - url: "http://terminology.hl7.org/CodeSystem/v2-0225" - oid: "urn:oid:2.16.840.1.113883.18.126" -- id: "v2-0360" - description: "degreeLicenseCertificate" - url: "http://terminology.hl7.org/CodeSystem/v2-0360" - oid: "urn:oid:2.16.840.1.113883.18.220" -- id: "v3-ndc" - description: "National drug codes" - url: "http://hl7.org/fhir/sid/ndc" - oid: "urn:oid:2.16.840.1.113883.6.69" -- id: "DEEDS427" - description: "DEEDS427" - url: "http://terminology.hl7.org/CodeSystem/DEEDS427" - oid: "urn:oid:2.16.840.1.113883.6.102.4.27" -- id: "immunization-funding-source" - description: "Immunization Funding Source" - url: "http://terminology.hl7.org/CodeSystem/immunization-funding-source" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1100" -- id: "v3-lrg" - description: "Locus Reference Genomic Sequences (LRG)" - url: "http://www.lrg-sequence.org" - oid: "urn:oid:2.16.840.1.113883.6.283" -- id: "synthesis-type" - description: "StatisticSynthesisType" - url: "http://terminology.hl7.org/CodeSystem/synthesis-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1348" -- id: "v3-MdfRmimRowType" - description: "MdfRmimRowType" - url: "http://terminology.hl7.org/CodeSystem/v3-MdfRmimRowType" - oid: "urn:oid:2.16.840.1.113883.5.77" -- id: "opinions" - description: "Online Product Identification Number Index of Nova Scotia" - url: "http://terminology.hl7.org/CodeSystem/opinions" - oid: "urn:oid:2.16.840.1.113883.5.1102" -- id: "v3-SetOperator" - description: "SetOperator" - url: "http://terminology.hl7.org/CodeSystem/v3-SetOperator" - oid: "urn:oid:2.16.840.1.113883.5.1069" -- id: "ex-providerqualification" - description: "Example Provider Qualification Codes" - url: "http://terminology.hl7.org/CodeSystem/ex-providerqualification" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1160" -- id: "atc" - description: "American Type Culture Collection" - url: "http://www.whocc.no/atc" - oid: "urn:oid:2.16.840.1.113883.6.77" -- id: "v3-ActMood" - description: "ActMood" - url: "http://terminology.hl7.org/CodeSystem/v3-ActMood" - oid: "urn:oid:2.16.840.1.113883.5.1001" -- id: "v3-EntityStatus" - description: "EntityStatus" - url: "http://terminology.hl7.org/CodeSystem/v3-EntityStatus" - oid: "urn:oid:2.16.840.1.113883.5.1061" -- id: "ex-diagnosisrelatedgroup" - description: "Example Diagnosis Related Group Codes" - url: "http://terminology.hl7.org/CodeSystem/ex-diagnosisrelatedgroup" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1166" -- id: "v3-ResponseLevel" - description: "ResponseLevel" - url: "http://terminology.hl7.org/CodeSystem/v3-ResponseLevel" - oid: "urn:oid:2.16.840.1.113883.5.108" -- id: "v2-0376" - description: "specialHandling" - url: "http://terminology.hl7.org/CodeSystem/v2-0376" - oid: "urn:oid:2.16.840.1.113883.18.234" -- id: "v3-mime" - description: "MIME" - url: "http://www.iana.org/assignments/media-types" - oid: "urn:oid:2.16.840.1.113883.6.10" -- id: "rcV2" - description: "The Read Codes Version 2" - url: "http://terminology.hl7.org/CodeSystem/rcV2" - oid: "urn:oid:2.16.840.1.113883.6.29" -- id: "v3-hl7VoteResolution" - description: "HL7VoteResolution" - url: "http://terminology.hl7.org/CodeSystem/v3-hl7VoteResolution" - oid: "urn:oid:2.16.840.1.113883.5.1131" -- id: "v2-0634" - description: "itemImportance" - url: "http://terminology.hl7.org/CodeSystem/v2-0634" - oid: "urn:oid:2.16.840.1.113883.18.378" -- id: "v2-0321" - description: "dispenseMethod" - url: "http://terminology.hl7.org/CodeSystem/v2-0321" - oid: "urn:oid:2.16.840.1.113883.18.194" -- id: "v3-hc-npn" - description: "Health Canada Natural Product Number" - url: "http://hl7.org/fhir/sid/ca-hc-npn" - oid: "urn:oid:2.16.840.1.113883.5.1107" -- id: "v2-0008" - description: "acknowledgmentCodes" - url: "http://terminology.hl7.org/CodeSystem/v2-0008" - oid: "urn:oid:2.16.840.1.113883.18.10" -- id: "v2-0359" - description: "diagnosisPriority" - url: "http://terminology.hl7.org/CodeSystem/v2-0359" - oid: "urn:oid:2.16.840.1.113883.18.218" -- id: "v3-fda-FCE" - description: "Food and Drug Administration Food Canning Establishments" - url: "http://terminology.hl7.org/CodeSystem/v3-fda-FCE" - oid: "urn:oid:2.16.840.1.113883.3.24.6.2" -- id: "statistic-type" - description: "StatisticStatisticType" - url: "http://terminology.hl7.org/CodeSystem/statistic-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1411" -- id: "v2-0070" - description: "specimenSourceCodes" - url: "http://terminology.hl7.org/CodeSystem/v2-0070" - oid: "urn:oid:2.16.840.1.113883.18.28" -- id: "v3-orderableDrugForm" - description: "Orderable Drug Form" - url: "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm" - oid: "urn:oid:2.16.840.1.113883.5.85" -- id: "v2-0565" - description: "providerAdjustmentReason" - url: "http://terminology.hl7.org/CodeSystem/v2-0565" - oid: "urn:oid:2.16.840.1.113883.18.367" -- id: "PHIndustryCDCCensus2010" - description: "Industry CDC Census 2010" - url: "http://terminology.hl7.org/CodeSystem/PHIndustryCDCCensus2010" - oid: "urn:oid:2.16.840.1.114222.4.5.315" -- id: "v2-0135" - description: "assignmentOfBenefits" - url: "http://terminology.hl7.org/CodeSystem/v2-0135" - oid: "urn:oid:2.16.840.1.113883.18.60" -- id: "coverage-selfpay" - description: "Coverage SelfPay Codes" - url: "http://terminology.hl7.org/CodeSystem/coverage-selfpay" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1148" -- id: "immunization-program-eligibility" - description: "Immunization Program Eligibility" - url: "http://terminology.hl7.org/CodeSystem/immunization-program-eligibility" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1099" -- id: "v2-0027" - description: "priority" - url: "http://terminology.hl7.org/CodeSystem/v2-0027" - oid: "urn:oid:2.16.840.1.113883.18.15" -- id: "v3-VocabularyDomainQualifier" - description: "VocabularyDomainQualifier" - url: "http://terminology.hl7.org/CodeSystem/v3-VocabularyDomainQualifier" - oid: "urn:oid:2.16.840.1.113883.5.147" -- id: "v2-0477" - description: "controlledSubstanceSchedule" - url: "http://terminology.hl7.org/CodeSystem/v2-0477" - oid: "urn:oid:2.16.840.1.113883.18.304" -- id: "v3-LocalMarkupIgnore" - description: "LocalMarkupIgnore" - url: "http://terminology.hl7.org/CodeSystem/v3-LocalMarkupIgnore" - oid: "urn:oid:2.16.840.1.113883.5.65" -- id: "v2-0924" - description: "cumulativeDosageLimitUom" - url: "http://terminology.hl7.org/CodeSystem/v2-0924" - oid: "urn:oid:2.16.840.1.113883.18.430" -- id: "HL70162" - description: "routeOfAdministration" - url: "http://terminology.hl7.org/CodeSystem/v2-0162" - oid: "urn:oid:2.16.840.1.113883.18.80" -- id: "v2-0162" - description: "routeOfAdministration" - url: "http://terminology.hl7.org/CodeSystem/v2-0162" - oid: "urn:oid:2.16.840.1.113883.18.80" -- id: "v3-ContentProcessingMode" - description: "ContentProcessingMode" - url: "http://terminology.hl7.org/CodeSystem/v3-ContentProcessingMode" - oid: "urn:oid:2.16.840.1.113883.5.1110" -- id: "v2-0498" - description: "consentStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0498" - oid: "urn:oid:2.16.840.1.113883.18.322" -- id: "v2-0532" - description: "expandedYes-NoIndicator" - url: "http://terminology.hl7.org/CodeSystem/v2-0532" - oid: "urn:oid:2.16.840.1.113883.18.347" -- id: "rejection-criteria" - description: "RejectionCriterion" - url: "http://terminology.hl7.org/CodeSystem/rejection-criteria" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1260" -- id: "v3-ConceptCodeRelationship" - description: "Possible Concept Code Relationships" - url: "http://terminology.hl7.org/CodeSystem/v3-ConceptCodeRelationship" - oid: "urn:oid:2.16.840.1.113883.5.1088" -- id: "contract-data-meaning" - description: "ContractDataMeaning" - url: "http://terminology.hl7.org/CodeSystem/contract-data-meaning" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1205" -- id: "communication-category" - description: "CommunicationCategory" - url: "http://terminology.hl7.org/CodeSystem/communication-category" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1076" -- id: "v2-0524" - description: "sequenceCondition" - url: "http://terminology.hl7.org/CodeSystem/v2-0524" - oid: "urn:oid:2.16.840.1.113883.18.342" -- id: "v2-0174" - description: "natureOfServiceTestObservation" - url: "http://terminology.hl7.org/CodeSystem/v2-0174" - oid: "urn:oid:2.16.840.1.113883.18.90" -- id: "DEEDS408" - description: "DEEDS408" - url: "http://terminology.hl7.org/CodeSystem/DEEDS408" - oid: "urn:oid:2.16.840.1.113883.6.102.4.8" -- id: "supplyrequest-reason" - description: "SupplyRequestReason" - url: "http://terminology.hl7.org/CodeSystem/supplyrequest-reason" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1193" -- id: "v2-0066" - description: "employmentStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0066" - oid: "urn:oid:2.16.840.1.113883.18.26" -- id: "v2-0436" - description: "sensitivityToCausativeAgent" - url: "http://terminology.hl7.org/CodeSystem/v2-0436" - oid: "urn:oid:2.16.840.1.113883.18.277" -- id: "v2-0123" - description: "resultStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0123" - oid: "urn:oid:2.16.840.1.113883.18.51" -- id: "v2-0334" - description: "disabilityInformationRelationship" - url: "http://terminology.hl7.org/CodeSystem/v2-0334" - oid: "urn:oid:2.16.840.1.113883.18.204" -- id: "GTIN" - description: "GTIN Global Trade Item Number" - url: "https://www.gs1.org/gtin" - oid: "urn:oid:1.3.160" -- id: "v3-ParticipationFunction" - description: "ParticipationFunction" - url: "http://terminology.hl7.org/CodeSystem/v3-ParticipationFunction" - oid: "urn:oid:2.16.840.1.113883.5.88" -- id: "v3-TableRules" - description: "TableRules" - url: "http://terminology.hl7.org/CodeSystem/v3-TableRules" - oid: "urn:oid:2.16.840.1.113883.5.136" -- id: "v2-0271" - description: "documentCompletionStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0271" - oid: "urn:oid:2.16.840.1.113883.18.164" -- id: "iso639-1ret" - description: "ISO 639-1 Alpha-2 Language Codes" - url: "http://terminology.hl7.org/CodeSystem/iso639-1ret" - oid: "urn:oid:2.16.840.1.113883.6.99" -- id: "v2-0158" - description: "date-timeSelectionQualifier" - url: "http://terminology.hl7.org/CodeSystem/v2-0158" - oid: "urn:oid:2.16.840.1.113883.18.76" -- id: "v2-0508" - description: "bloodProductProcessingRequirements" - url: "http://terminology.hl7.org/CodeSystem/v2-0508" - oid: "urn:oid:2.16.840.1.113883.18.332" -- id: "allergyintolerance-clinical" - description: "AllergyIntolerance Clinical Status Codes" - url: "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1373" -- id: "v3-DCM" - description: "DICOM Controlled Terminology" - url: "http://dicom.nema.org/medical/dicom" - oid: "urn:oid:1.2.840.10008.2.16.4" -- id: "DEEDS424" - description: "DEEDS424" - url: "http://terminology.hl7.org/CodeSystem/DEEDS424" - oid: "urn:oid:2.16.840.1.113883.6.102.4.24" -- id: "MDREX" - description: "MedDRA expanded" - url: "http://terminology.hl7.org/CodeSystem/MDREX" - oid: "urn:oid:2.16.840.1.113883.6.164" -- id: "definition-status" - description: "DefinitionStatus" - url: "http://terminology.hl7.org/CodeSystem/definition-status" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1070" -- id: "read-Codes" - description: "Read Classification" - url: "http://terminology.hl7.org/CodeSystem/read-Codes" - oid: "urn:oid:2.16.840.1.113883.6.6" -- id: "v2-0949" - description: "orderControlCodeReason" - url: "http://terminology.hl7.org/CodeSystem/v2-0949" - oid: "urn:oid:2.16.840.1.113883.18.449" - -- id: "v2-0375" - description: "artificialBlood" - url: "http://terminology.hl7.org/CodeSystem/v2-0375" - oid: "urn:oid:2.16.840.1.113883.18.233" -- id: "v2-0230" - description: "procedureFunctionalType" - url: "http://terminology.hl7.org/CodeSystem/v2-0230" - oid: "urn:oid:2.16.840.1.113883.18.130" -- id: "rcFB" - description: "The Read Codes Four Byte Set:" - url: "http://terminology.hl7.org/CodeSystem/rcFB" - oid: "urn:oid:2.16.840.1.113883.6.28" -- id: "v2-0119" - description: "orderControlCodes" - url: "http://terminology.hl7.org/CodeSystem/v2-0119" - oid: "urn:oid:2.16.840.1.113883.18.48" -- id: "v3-AcknowledgementDetailCode" - description: "AcknowledgementDetailCode" - url: "http://terminology.hl7.org/CodeSystem/v3-AcknowledgementDetailCode" - oid: "urn:oid:2.16.840.1.113883.5.1100" -- id: "v2-0322" - description: "completionStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0322" - oid: "urn:oid:2.16.840.1.113883.18.195" -- id: "v2-0267" - description: "daysOfTheWeek" - url: "http://terminology.hl7.org/CodeSystem/v2-0267" - oid: "urn:oid:2.16.840.1.113883.18.160" -- id: "object-role" - description: "AuditEventEntityRole" - url: "http://terminology.hl7.org/CodeSystem/object-role" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1135" -- id: "v3-CompressionAlgorithm" - description: "CompressionAlgorithm" - url: "http://terminology.hl7.org/CodeSystem/v3-CompressionAlgorithm" - oid: "urn:oid:2.16.840.1.113883.5.1009" -- id: "directness" - description: "EvidenceDirectness" - url: "http://terminology.hl7.org/CodeSystem/directness" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1459" -- id: "DEEDS" - description: "DEEDS vocabularies" - url: "http://terminology.hl7.org/CodeSystem/DEEDS" - oid: "urn:oid:2.16.840.1.113883.6.102" -- id: "v3-Calendar" - description: "Calendar" - url: "http://terminology.hl7.org/CodeSystem/v3-Calendar" - oid: "urn:oid:2.16.840.1.113883.5.1055" -- id: "v2-0569" - description: "adjustmentAction" - url: "http://terminology.hl7.org/CodeSystem/v2-0569" - oid: "urn:oid:2.16.840.1.113883.18.369" -- id: "v3-EncounterSpecialCourtesy" - description: "EncounterSpecialCourtesy" - url: "http://terminology.hl7.org/CodeSystem/v3-EncounterSpecialCourtesy" - oid: "urn:oid:2.16.840.1.113883.5.40" -- id: "episodeofcare-type" - description: "Episode of care type" - url: "http://terminology.hl7.org/CodeSystem/episodeofcare-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1189" -- id: "v2-0210" - description: "relationalConjunction" - url: "http://terminology.hl7.org/CodeSystem/v2-0210" - oid: "urn:oid:2.16.840.1.113883.18.115" -- id: "DEEDS412" - description: "DEEDS412" - url: "http://terminology.hl7.org/CodeSystem/DEEDS412" - oid: "urn:oid:2.16.840.1.113883.6.102.4.12" -- id: "v2-0355" - description: "primaryKeyValueType" - url: "http://terminology.hl7.org/CodeSystem/v2-0355" - oid: "urn:oid:2.16.840.1.113883.18.215" -- id: "v2-0882" - description: "medicalRoleExecutingPhysician" - url: "http://terminology.hl7.org/CodeSystem/v2-0882" - oid: "urn:oid:2.16.840.1.113883.18.412" -- id: "choice-list-orientation" - description: "ChoiceListOrientation" - url: "http://terminology.hl7.org/CodeSystem/choice-list-orientation" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1273" -- id: "v2-0181" - description: "mfnRecord-levelErrorReturn" - url: "http://terminology.hl7.org/CodeSystem/v2-0181" - oid: "urn:oid:2.16.840.1.113883.18.96" -- id: "icpc-DUT" - description: "International Classification of Primary Care 1993 Dutch" - url: "http://terminology.hl7.org/CodeSystem/icpc-DUT" - oid: "urn:oid:2.16.840.1.113883.6.138.3" -- id: "v2-0494" - description: "specimenChildRole" - url: "http://terminology.hl7.org/CodeSystem/v2-0494" - oid: "urn:oid:2.16.840.1.113883.18.318" -- id: "v2-0247" - description: "statusOfEvaluation" - url: "http://terminology.hl7.org/CodeSystem/v2-0247" - oid: "urn:oid:2.16.840.1.113883.18.143" -- id: "goal-priority" - description: "Goal priority" - url: "http://terminology.hl7.org/CodeSystem/goal-priority" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1096" -- id: "v2-0617" - description: "addressUsage" - url: "http://terminology.hl7.org/CodeSystem/v2-0617" - oid: "urn:oid:2.16.840.1.113883.18.375" -- id: "v3-ActStatus" - description: "ActStatus" - url: "http://terminology.hl7.org/CodeSystem/v3-ActStatus" - oid: "urn:oid:2.16.840.1.113883.5.14" -- id: "state-change-reason" - description: "StateChangeReason" - url: "http://terminology.hl7.org/CodeSystem/state-change-reason" - oid: "urn:oid:2.16.840.1.113883.4.642.1.0" -- id: "observation-statistics" - description: "StatisticsCode" - url: "http://terminology.hl7.org/CodeSystem/observation-statistics" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1126" -- id: "v2-0894" - description: "sideOfBody" - url: "http://terminology.hl7.org/CodeSystem/v2-0894" - oid: "urn:oid:2.16.840.1.113883.18.413" -- id: "DCL" - description: "DICOM Class Label" - url: "http://terminology.hl7.org/CodeSystem/DCL" - oid: "urn:oid:2.16.840.1.113883.6.83" -- id: "v2-0178" - description: "file-levelEvent" - url: "http://terminology.hl7.org/CodeSystem/v2-0178" - oid: "urn:oid:2.16.840.1.113883.18.93" -- id: "v2-0482" - description: "orderType" - url: "http://terminology.hl7.org/CodeSystem/v2-0482" - oid: "urn:oid:2.16.840.1.113883.18.307" -- id: "MDRGER" - description: "MedDRA German" - url: "http://terminology.hl7.org/CodeSystem/MDRGER" - oid: "urn:oid:2.16.840.1.113883.6.163.4" -- id: "v2-0528" - description: "eventRelatedPeriod" - url: "http://terminology.hl7.org/CodeSystem/v2-0528" - oid: "urn:oid:2.16.840.1.113883.18.344" -- id: "v2-0251" - description: "actionTakenInResponseToTheEvent" - url: "http://terminology.hl7.org/CodeSystem/v2-0251" - oid: "urn:oid:2.16.840.1.113883.18.146" -- id: "ex-benefitcategory" - description: "Benefit Category Codes" - url: "http://terminology.hl7.org/CodeSystem/ex-benefitcategory" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1175" -- id: "ICD10dut" - description: "ICD10, Dutch Translation" - url: "http://hl7.org/fhir/sid/icd-10-nl" - oid: "urn:oid:2.16.840.1.113883.6.3.2" -- id: "v2-0085" - description: "observationResultStatusCodesInterpretation" - url: "http://terminology.hl7.org/CodeSystem/v2-0085" - oid: "urn:oid:2.16.840.1.113883.18.34" -- id: "v2-0206" - description: "segmentAction" - url: "http://terminology.hl7.org/CodeSystem/v2-0206" - oid: "urn:oid:2.16.840.1.113883.18.111" -- id: "contract-type" - description: "Contract Type Codes" - url: "http://terminology.hl7.org/CodeSystem/contract-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1330" -- id: "MDREA" - description: "MedDRA Am Engl expanded" - url: "http://terminology.hl7.org/CodeSystem/MDREA" - oid: "urn:oid:2.16.840.1.113883.6.164.1" -- id: "NHSNKneeReplacement" - description: "NHSN KneeR eplacement" - url: "http://terminology.hl7.org/CodeSystem/NHSNKneeReplacement" - oid: "urn:oid:2.16.840.1.113883.6.264" -- id: "PHOccupationalDataForHealthODH" - description: "Occupational Data for Health (ODH)" - url: "http://terminology.hl7.org/CodeSystem/PHOccupationalDataForHealthODH" - oid: "urn:oid:2.16.840.1.114222.4.5.327" -- id: "payment-adjustment-reason" - description: "Payment Adjustment Reason Codes" - url: "http://terminology.hl7.org/CodeSystem/payment-adjustment-reason" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1173" -- id: "v2-0504" - description: "sequenceCondition" - url: "http://terminology.hl7.org/CodeSystem/v2-0504" - oid: "urn:oid:2.16.840.1.113883.18.328" -- id: "v3-hc-AIGC" - description: "Active Ingredient Group Code" - url: "http://www.canada.ca/en/health-canada/services/drugs-health-products/drug-products/drug-product-database-2" - oid: "urn:oid:2.16.840.1.113883.5.1104" -- id: "v2-0912" - description: "participation" - url: "http://terminology.hl7.org/CodeSystem/v2-0912" - oid: "urn:oid:2.16.840.1.113883.18.420" -- id: "v2-0441" - description: "immunizationRegistryStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0441" - oid: "urn:oid:2.16.840.1.113883.18.281" -- id: "hl7-work-group" - description: "HL7Workgroup" - url: "http://terminology.hl7.org/CodeSystem/hl7-work-group" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1277" -- id: "contracttermtypecodes" - description: "Contract Term Type Codes" - url: "http://terminology.hl7.org/CodeSystem/contracttermtypecodes" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1199" -- id: "NHSNSpinalFusionLevel" - description: "NHSN Spinal Fusion Level" - url: "http://terminology.hl7.org/CodeSystem/NHSNSpinalFusionLevel" - oid: "urn:oid:2.16.840.1.113883.6.269" -- id: "v3-AdministrativeGender" - description: "AdministrativeGender" - url: "http://terminology.hl7.org/CodeSystem/v3-AdministrativeGender" - oid: "urn:oid:2.16.840.1.113883.5.1" -- id: "v2-0292" - description: "PH_VaccinesAdministered" - url: "http://terminology.hl7.org/ValueSet/v2-0292" - oid: "urn:oid:2.16.840.1.114222.4.11.934" -- id: "endpoint-payload-type" - description: "Endpoint Payload Type" - url: "http://terminology.hl7.org/CodeSystem/endpoint-payload-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1139" -- id: "contractsignertypecodes" - description: "Contract Signer Type Codes" - url: "http://terminology.hl7.org/CodeSystem/contractsignertypecodes" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1201" - -- id: "v2-0103" - description: "processingId" - url: "http://terminology.hl7.org/CodeSystem/v2-0103" - oid: "urn:oid:2.16.840.1.113883.18.40" -- id: "v2-0553" - description: "invoiceControl" - url: "http://terminology.hl7.org/CodeSystem/v2-0553" - oid: "urn:oid:2.16.840.1.113883.18.357" -- id: "utg-concept-properties" - description: "UTG Specific Concept Properties" - url: "http://terminology.hl7.org/CodeSystem/utg-concept-properties" - oid: null -- id: "NHSNSummaryData" - description: "NHSN Summary Data" - url: "http://terminology.hl7.org/CodeSystem/NHSNSummaryData" - oid: "urn:oid:2.16.840.1.113883.6.270" -- id: "v2-0416" - description: "procedureDrgType" - url: "http://terminology.hl7.org/CodeSystem/v2-0416" - oid: "urn:oid:2.16.840.1.113883.18.258" -- id: "cpnum" - description: "Gold Standard's Clinical Pharmacology Monograph Number" - url: "http://terminology.hl7.org/CodeSystem/cpnum" - oid: "urn:oid:2.16.840.1.113883.4.81" -- id: "v2-0945" - description: "auto-DilutionType" - url: "http://terminology.hl7.org/CodeSystem/v2-0945" - oid: "urn:oid:2.16.840.1.113883.18.445" -- id: "v3-RelationshipConjunction" - description: "RelationshipConjunction" - url: "http://terminology.hl7.org/CodeSystem/v3-RelationshipConjunction" - oid: "urn:oid:2.16.840.1.113883.5.106" -- id: "validation-status" - description: "Validation-status" - url: "http://terminology.hl7.org/CodeSystem/validation-status" - oid: "urn:oid:2.16.840.1.113883.4.642.1.895" -- id: "v3-ProbabilityDistributionType" - description: "ProbabilityDistributionType" - url: "http://terminology.hl7.org/CodeSystem/v3-ProbabilityDistributionType" - oid: "urn:oid:2.16.840.1.113883.5.1020" -- id: "subscriber-relationship" - description: "SubscriberPolicyholder Relationship Codes" - url: "http://terminology.hl7.org/CodeSystem/subscriber-relationship" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1386" -- id: "v3-MaterialType" - description: "MaterialType" - url: "http://terminology.hl7.org/CodeSystem/v3-MaterialType" - oid: "urn:oid:2.16.840.1.113883.5.73" -- id: "v3-TableFrame" - description: "TableFrame" - url: "http://terminology.hl7.org/CodeSystem/v3-TableFrame" - oid: "urn:oid:2.16.840.1.113883.5.134" -- id: "icpc-POR" - description: "International Classification of Primary Care 1993 Portuguese" - url: "http://terminology.hl7.org/CodeSystem/icpc-POR" - oid: "urn:oid:2.16.840.1.113883.6.138.11" -- id: "iso3166-1edition2alpha2" - description: "ISO 3166 Part 1 Country Codes, 2nd Edition, Alpha-2" - url: "http://terminology.hl7.org/CodeSystem/iso3166-1edition2alpha2" - oid: "urn:oid:1.0.3166.1.2.2" -- id: "ex-programcode" - description: "Example Program Reason Codes" - url: "http://terminology.hl7.org/CodeSystem/ex-programcode" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1161" - -- id: "v2-0396" - description: "codingSystem" - url: "http://terminology.hl7.org/CodeSystem/v2-0396" - oid: "urn:oid:2.16.840.1.113883.18.247" -- id: "measure-type" - description: "MeasureType" - url: "http://terminology.hl7.org/CodeSystem/measure-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1233" -- id: "subscription-tag" - description: "SubscriptionTag" - url: "http://terminology.hl7.org/CodeSystem/subscription-tag" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1141" -- id: "v3-TelecommunicationCapabilities" - description: "TelecommunicationCapabilities" - url: "http://terminology.hl7.org/CodeSystem/v3-TelecommunicationCapabilities" - oid: "urn:oid:2.16.840.1.113883.5.1118" -- id: "v2-0142" - description: "militaryStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0142" - oid: "urn:oid:2.16.840.1.113883.18.64" -- id: "v2-0007" - description: "admissionType" - url: "http://terminology.hl7.org/CodeSystem/v2-0007" - oid: "urn:oid:2.16.840.1.113883.18.9" -- id: "v3-icpc" - description: "International Classification of Primary Care, 1993 edition" - url: "http://hl7.org/fhir/sid/icpc-1" - oid: "urn:oid:2.16.840.1.113883.6.138" -- id: "v2-0457" - description: "overallClaimDisposition" - url: "http://terminology.hl7.org/CodeSystem/v2-0457" - oid: "urn:oid:2.16.840.1.113883.18.292" -- id: "v3-RoleStatus" - description: "RoleStatus" - url: "http://terminology.hl7.org/CodeSystem/v3-RoleStatus" - oid: "urn:oid:2.16.840.1.113883.5.1068" -- id: "v2-0904" - description: "securityCheckScheme" - url: "http://terminology.hl7.org/CodeSystem/v2-0904" - oid: "urn:oid:2.16.840.1.113883.18.415" -- id: "v2-0284" - description: "referralCategory" - url: "http://terminology.hl7.org/CodeSystem/v2-0284" - oid: "urn:oid:2.16.840.1.113883.18.177" -- id: "action-type" - description: "ActionType" - url: "http://terminology.hl7.org/CodeSystem/action-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1246" -- id: "questionnaire-usage-mode" - description: "QuestionnaireItemUsageMode" - url: "http://terminology.hl7.org/CodeSystem/questionnaire-usage-mode" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1274" -- id: "v2-0790" - description: "approvingRegulatoryAgency" - url: "http://terminology.hl7.org/CodeSystem/v2-0790" - oid: "urn:oid:2.16.840.1.113883.18.404" -- id: "v3-LivingArrangement" - description: "LivingArrangement" - url: "http://terminology.hl7.org/CodeSystem/v3-LivingArrangement" - oid: "urn:oid:2.16.840.1.113883.5.63" -- id: "v2-0513" - description: "bloodProductTransfusion-dispositionStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0513" - oid: "urn:oid:2.16.840.1.113883.18.335" -- id: "attribute-estimate-type" - description: "StatisticAttribute Estimate Type" - url: "http://terminology.hl7.org/CodeSystem/attribute-estimate-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1413" -- id: "v2-0006" - description: "religion2" - url: "http://terminology.hl7.org/CodeSystem/v2-0006" - oid: "urn:oid:2.16.840.1.113883.18.8" -- id: "v2-0456" - description: "nubc-ServiceLineRevenue-cs" - url: "http://terminology.hl7.org/CodeSystem/v2-0456" - oid: "urn:oid:2.16.840.1.113883.6.301.3" -- id: "missingtoothreason" - description: "Missing Tooth Reason Codes" - url: "http://terminology.hl7.org/CodeSystem/missingtoothreason" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1150" -- id: "organization-type" - description: "Organization type" - url: "http://terminology.hl7.org/CodeSystem/organization-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1128" -- id: "v2-0905" - description: "shipmentStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0905" - oid: "urn:oid:2.16.840.1.113883.18.416" -- id: "iso3166-1edition2alpha3" - description: "ISO 3166 Part 1 Country Codes, 2nd Edition, Alpha-3" - url: "http://terminology.hl7.org/CodeSystem/iso3166-1edition2alpha3" - oid: "urn:oid:1.0.3166.1.2.3" -- id: "NCIT" - description: "NCI Thesaurus" - url: "http://ncithesaurus-stage.nci.nih.gov" - oid: "urn:oid:2.16.840.1.113883.3.26.1.1" -- id: "v3-nciThesaurus" - description: "NCI Thesaurus" - url: "http://ncithesaurus-stage.nci.nih.gov" - oid: "urn:oid:2.16.840.1.113883.3.26.1.1" -- id: "v3-MessageWaitingPriority" - description: "MessageWaitingPriority" - url: "http://terminology.hl7.org/CodeSystem/v3-MessageWaitingPriority" - oid: "urn:oid:2.16.840.1.113883.5.1083" -- id: "v2-0682" - description: "deviceStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0682" - oid: "urn:oid:2.16.840.1.113883.18.386" -- id: "research-subject-state" - description: "ResearchSubjectState" - url: "http://terminology.hl7.org/CodeSystem/research-subject-state" - oid: "urn:oid:2.16.840.1.113883.4.642.1.0" -- id: "v2-0728" - description: "cclValue" - url: "http://terminology.hl7.org/CodeSystem/v2-0728" - oid: "urn:oid:2.16.840.1.113883.18.391" -- id: "v2-0397" - description: "sequencing" - url: "http://terminology.hl7.org/CodeSystem/v2-0397" - oid: "urn:oid:2.16.840.1.113883.18.248" -- id: "subscription-status-at-event" - description: "SubscriptionStatusAtEvent" - url: "http://terminology.hl7.org/CodeSystem/subscription-status-at-event" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1465" -- id: "research-study-phase" - description: "ResearchStudyPhase" - url: "http://terminology.hl7.org/CodeSystem/research-study-phase" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1247" -- id: "v2-0544" - description: "containerCondition" - url: "http://terminology.hl7.org/CodeSystem/v2-0544" - oid: "urn:oid:2.16.840.1.113883.18.353" -- id: "v3-LocalRemoteControlState" - description: "LocalRemoteControlState" - url: "http://terminology.hl7.org/CodeSystem/v3-LocalRemoteControlState" - oid: "urn:oid:2.16.840.1.113883.5.66" -- id: "ex-diagnosis-on-admission" - description: "Example Diagnosis on Admission Codes" - url: "http://terminology.hl7.org/CodeSystem/ex-diagnosis-on-admission" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1170" -- id: "v2-0401" - description: "governmentReimbursementProgram" - url: "http://terminology.hl7.org/CodeSystem/v2-0401" - oid: "urn:oid:2.16.840.1.113883.18.250" -- id: "encounter-type" - description: "Encounter type" - url: "http://terminology.hl7.org/CodeSystem/encounter-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1088" -- id: "icnp" - description: "International Classification for Nursing Practice" - url: "http://terminology.hl7.org/CodeSystem/icnp" - oid: "urn:oid:2.16.840.1.113883.6.97" -- id: "euclides" - description: "EUCLIDES" - url: "http://terminology.hl7.org/CodeSystem/euclides" - oid: "urn:oid:2.16.840.1.113883.6.34" -- id: "csaid" - description: "CAN/CSA-Z795-96" - url: "http://terminology.hl7.org/CodeSystem/csaid" - oid: "urn:oid:2.16.840.1.113883.6.235" -- id: "v3-ContainerSeparator" - description: "ContainerSeparator" - url: "http://terminology.hl7.org/CodeSystem/v3-ContainerSeparator" - oid: "urn:oid:2.16.840.1.113883.5.27" -- id: "ex-revenue-center" - description: "Example Revenue Center Codes" - url: "http://terminology.hl7.org/CodeSystem/ex-revenue-center" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1168" -- id: "v3-ParticipationMode" - description: "ParticipationMode" - url: "http://terminology.hl7.org/CodeSystem/v3-ParticipationMode" - oid: "urn:oid:2.16.840.1.113883.5.1064" -- id: "mthicpc2E-AE" - description: "ICPC2E Am Engl (Metathesaurus)" - url: "http://terminology.hl7.org/CodeSystem/mthicpc2E-AE" - oid: "urn:oid:2.16.840.1.113883.6.139.3" -- id: "endpoint-connection-type" - description: "Endpoint Connection Type" - url: "http://terminology.hl7.org/CodeSystem/endpoint-connection-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1140" -- id: "v2-0102" - description: "delayedAcknowledgmentType" - url: "http://terminology.hl7.org/CodeSystem/v2-0102" - oid: "urn:oid:2.16.840.1.113883.18.39" -- id: "fipspub92" - description: "FIPS_SOC" - url: "http://terminology.hl7.org/CodeSystem/fipspub92" - oid: "urn:oid:2.16.840.1.113883.6.91" -- id: "v3-ActInvoiceElementModifier" - description: "ActInvoiceElementModifier" - url: "http://terminology.hl7.org/CodeSystem/v3-ActInvoiceElementModifier" - oid: "urn:oid:2.16.840.1.113883.5.1051" -- id: "v2-0417" - description: "tissueType" - url: "http://terminology.hl7.org/CodeSystem/v2-0417" - oid: "urn:oid:2.16.840.1.113883.18.259" -- id: "verificationresult-communication-method" - description: "VerificationResult Communication Method" - url: "http://terminology.hl7.org/CodeSystem/verificationresult-communication-method" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1402" -- id: "v2-0339" - description: "advancedBeneficiaryNotice" - url: "http://terminology.hl7.org/CodeSystem/v2-0339" - oid: "urn:oid:2.16.840.1.113883.18.209" -- id: "hhcc" - description: "Home Health Care" - url: "http://terminology.hl7.org/CodeSystem/hhcc" - oid: "urn:oid:2.16.840.1.113883.6.17" -- id: "icpc2E-P" - description: "ICPC2E 1998 Plus" - url: "http://terminology.hl7.org/CodeSystem/icpc2E-P" - oid: "urn:oid:2.16.840.1.113883.6.140" -- id: "v2-0505" - description: "cyclicEntryExitIndicator" - url: "http://terminology.hl7.org/CodeSystem/v2-0505" - oid: "urn:oid:2.16.840.1.113883.18.329" -- id: "v2-0155" - description: "accept-applicationAcknowledgmentConditions" - url: "http://terminology.hl7.org/CodeSystem/v2-0155" - oid: "urn:oid:2.16.840.1.113883.18.73" -- id: "v2-0440" - description: "dataTypes" - url: "http://terminology.hl7.org/CodeSystem/v2-0440" - oid: "urn:oid:2.16.840.1.113883.18.280" - -- id: "v2-0207" - description: "processingMode" - url: "http://terminology.hl7.org/CodeSystem/v2-0207" - oid: "urn:oid:2.16.840.1.113883.18.112" -- id: "v2-0657" - description: "deviceType" - url: "http://terminology.hl7.org/CodeSystem/v2-0657" - oid: "urn:oid:2.16.840.1.113883.18.382" -- id: "IC2" - description: "ICHPPC-2" - url: "http://terminology.hl7.org/CodeSystem/IC2" - oid: "urn:oid:2.16.840.1.113883.6.44" -- id: "DEEDS405" - description: "DEEDS405" - url: "http://terminology.hl7.org/CodeSystem/DEEDS405" - oid: "urn:oid:2.16.840.1.113883.6.102.4.5" -- id: "coverageeligibilityresponse-ex-auth-support" - description: "CoverageEligibilityResponse Auth Support Codes" - url: "http://terminology.hl7.org/CodeSystem/coverageeligibilityresponse-ex-auth-support" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1394" -- id: "v3-OrganizationNameType" - description: "OrganizationNameType" - url: "http://terminology.hl7.org/CodeSystem/v3-OrganizationNameType" - oid: "urn:oid:2.16.840.1.113883.5.1016" -- id: "v2-0250" - description: "relatednessAssessment" - url: "http://terminology.hl7.org/CodeSystem/v2-0250" - oid: "urn:oid:2.16.840.1.113883.18.145" -- id: "v2-0315" - description: "livingWillCodes" - url: "http://terminology.hl7.org/CodeSystem/v2-0315" - oid: "urn:oid:2.16.840.1.113883.18.190" -- id: "v3-hl7PublishingSubSection" - description: "HL7PublishingSubSection" - url: "http://terminology.hl7.org/CodeSystem/v3-hl7PublishingSubSection" - oid: "urn:oid:2.16.840.1.113883.5.1134" -- id: "v2-0895" - description: "nubc-PresentOnAdmission-cs" - url: "http://terminology.hl7.org/CodeSystem/v2-0895" - oid: "urn:oid:2.16.840.1.113883.6.301.11" -- id: "v2-0179" - description: "responseLevel" - url: "http://terminology.hl7.org/CodeSystem/v2-0179" - oid: "urn:oid:2.16.840.1.113883.18.94" -- id: "v2-0483" - description: "authorizationMode" - url: "http://terminology.hl7.org/CodeSystem/v2-0483" - oid: "urn:oid:2.16.840.1.113883.18.308" -- id: "v2-0529" - description: "precision" - url: "http://terminology.hl7.org/CodeSystem/v2-0529" - oid: "urn:oid:2.16.840.1.113883.18.345" -- id: "v3-MaterialForm" - description: "MaterialForm" - url: "http://terminology.hl7.org/CodeSystem/v3-MaterialForm" - oid: "urn:oid:2.16.840.1.113883.5.1127" -- id: "definition-use" - description: "Structure Definition Use Codes / Keywords" - url: "http://terminology.hl7.org/CodeSystem/definition-use" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1191" -- id: "v2-0616" - description: "addressExpirationReason" - url: "http://terminology.hl7.org/CodeSystem/v2-0616" - oid: "urn:oid:2.16.840.1.113883.18.374" -- id: "v3-PeriodicIntervalOfTimeAbbreviation" - description: "PeriodicIntervalOfTimeAbbreviation" - url: "http://terminology.hl7.org/CodeSystem/v3-PeriodicIntervalOfTimeAbbreviation" - oid: "urn:oid:2.16.840.1.113883.5.1021" -- id: "certainty-subcomponent-type" - description: "StatisticCertaintySubcomponentType" - url: "http://terminology.hl7.org/CodeSystem/certainty-subcomponent-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1360" -- id: "v2-0180" - description: "masterfileActionCode" - url: "http://terminology.hl7.org/CodeSystem/v2-0180" - oid: "urn:oid:2.16.840.1.113883.18.95" -- id: "v2-0495" - description: "bodySiteModifier" - url: "http://terminology.hl7.org/CodeSystem/v2-0495" - oid: "urn:oid:2.16.840.1.113883.18.319" -- id: "v2-0211" - description: "alternateCharacterSets" - url: "http://terminology.hl7.org/CodeSystem/v2-0211" - oid: "urn:oid:2.16.840.1.113883.18.116" -- id: "v2-0354" - description: "messageStructure" - url: "http://terminology.hl7.org/CodeSystem/v2-0354" - oid: "urn:oid:2.16.840.1.113883.18.214" -- id: "v3-hgnc" - description: "HUGO Gene Nomenclature" - url: "http://www.genenames.org" - oid: "urn:oid:2.16.840.1.113883.6.281" -- id: "v2-0092" - description: "re-admissionIndicator" - url: "http://terminology.hl7.org/CodeSystem/v2-0092" - oid: "urn:oid:2.16.840.1.113883.18.36" -- id: "url" - description: "URL" - url: "http://terminology.hl7.org/CodeSystem/url" - oid: "urn:oid:2.16.840.1.113883.6.11" -- id: "nubc-UB92" - description: "National Uniform Billing Council, UB 92" - url: "http://terminology.hl7.org/CodeSystem/nubc-UB92" - oid: "urn:oid:2.16.840.1.113883.6.21" -- id: "adverse-event-seriousness" - description: "AdverseEventSeriousness" - url: "http://terminology.hl7.org/CodeSystem/adverse-event-seriousness" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1253" -- id: "v2-0909" - description: "patientResultsReleaseCategorizationScheme" - url: "http://terminology.hl7.org/CodeSystem/v2-0909" - oid: "urn:oid:2.16.840.1.113883.18.419" -- id: "v2-0323" - description: "actionCodes" - url: "http://terminology.hl7.org/CodeSystem/v2-0323" - oid: "urn:oid:2.16.840.1.113883.18.196" -- id: "icpc2E-P-AE" - description: "ICPC2E 1998 Plus Am Engl" - url: "http://terminology.hl7.org/CodeSystem/icpc2E-P-AE" - oid: "urn:oid:2.16.840.1.113883.6.140.1" -- id: "v3-Race" - description: "Race" - url: "http://terminology.hl7.org/CodeSystem/v3-Race" - oid: "urn:oid:2.16.840.1.113883.5.104" -- id: "v3-Sequencing" - description: "Sequencing" - url: "http://terminology.hl7.org/CodeSystem/v3-Sequencing" - oid: "urn:oid:2.16.840.1.113883.5.113" -- id: "MTHMDRSPA" - description: "MTH MedDRA Spanish" - url: "http://terminology.hl7.org/CodeSystem/MTHMDRSPA" - oid: "urn:oid:2.16.840.1.113883.6.165" -- id: "v2-0548" - description: "signatorysRelationshipToSubject" - url: "http://terminology.hl7.org/CodeSystem/v2-0548" - oid: "urn:oid:2.16.840.1.113883.18.355" -- id: "benefit-network" - description: "Network Type Codes" - url: "http://terminology.hl7.org/CodeSystem/benefit-network" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1177" -- id: "v2-0374" - description: "systemInducedContaminants" - url: "http://terminology.hl7.org/CodeSystem/v2-0374" - oid: "urn:oid:2.16.840.1.113883.18.232" -- id: "consentcategorycodes" - description: "Consent Category Codes" - url: "http://terminology.hl7.org/CodeSystem/consentcategorycodes" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1226" -- id: "v3-SpecimenType" - description: "SpecimenType" - url: "http://terminology.hl7.org/CodeSystem/v3-SpecimenType" - oid: "urn:oid:2.16.840.1.113883.5.129" -- id: "v3-ContainerCap" - description: "ContainerCap" - url: "http://terminology.hl7.org/CodeSystem/v3-ContainerCap" - oid: "urn:oid:2.16.840.1.113883.5.26" -- id: "v2-0231" - description: "studentStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0231" - oid: "urn:oid:2.16.840.1.113883.18.131" -- id: "metabolicSyndrome" - description: "METABOLIC SYNDROME" - url: "http://terminology.hl7.org/CodeSystem/metabolicSyndrome" - oid: "urn:oid:2.16.840.1.113883.6.249" -- id: "v3-ISO3166-1retired" - description: "ISO 3166 2 Character Country Codes" - url: "http://terminology.hl7.org/CodeSystem/v3-ISO3166-1retired" - oid: "urn:oid:2.16.1" -- id: "supply-item-type" - description: "Supply Item Type" - url: "http://terminology.hl7.org/CodeSystem/supply-item-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1194" -- id: "GMDN" - description: "Global Medical Device Nomenclature" - url: "http://terminology.hl7.org/CodeSystem/GMDN" - oid: "urn:oid:2.16.840.1.113883.6.276" -- id: "failure-action" - description: "Failure-action" - url: "http://terminology.hl7.org/CodeSystem/failure-action" - oid: "urn:oid:2.16.840.1.113883.4.642.1.891" -- id: "v2-0948" - description: "v2CS-relationshipType" - url: "http://terminology.hl7.org/CodeSystem/v2-0948" - oid: "urn:oid:2.16.840.1.113883.18.448" -- id: "cdcNHSN" - description: "CDC - National Healthcare Safety Network (NHSN) code system" - url: "http://terminology.hl7.org/CodeSystem/cdcNHSN" - oid: "urn:oid:2.16.840.1.113883.6.277" -- id: "variant-state" - description: "sequenceStatus" - url: "http://terminology.hl7.org/CodeSystem/variant-state" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1085" -- id: "HL70227" - description: "PH_ManufacturersOfVaccinesMVX_CDC_NIP" - url: "http://terminology.hl7.org/CodeSystem/v2-0227" - oid: "urn:oid:2.16.840.1.113883.12.227" -- id: "v2-0227" - description: "PH_ManufacturersOfVaccinesMVX_CDC_NIP" - url: "http://terminology.hl7.org/CodeSystem/v2-0227" - oid: "urn:oid:2.16.840.1.113883.12.227" -- id: "encounter-subject-status" - description: "Encounter subject status" - url: "http://terminology.hl7.org/CodeSystem/encounter-subject-status" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1420" -- id: "v3-NullFlavor" - description: "NullFlavor" - url: "http://terminology.hl7.org/CodeSystem/v3-NullFlavor" - oid: "urn:oid:2.16.840.1.113883.5.1008" -- id: "v2-0159" - description: "dietCodeSpecificationType" - url: "http://terminology.hl7.org/CodeSystem/v2-0159" - oid: "urn:oid:2.16.840.1.113883.18.77" -- id: "v3-hc-AIGN" - description: "Active Ingredient Group Number" - url: "http://www.canada.ca/en/health-canada/services/drugs-health-products/drug-products/drug-product-database-4" - oid: "urn:oid:2.16.840.1.113883.5.1106" -- id: "dicom-audit-lifecycle" - description: null - url: "http://terminology.hl7.org/CodeSystem/dicom-audit-lifecycle" - oid: null -- id: "ex-claimsubtype" - description: "Example Claim SubType Codes" - url: "http://terminology.hl7.org/CodeSystem/ex-claimsubtype" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1158" -- id: "activity-definition-category" - description: "ActivityDefinitionCategory" - url: "http://terminology.hl7.org/CodeSystem/activity-definition-category" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1243" -- id: "v2-0335" - description: "repeatPattern" - url: "http://terminology.hl7.org/CodeSystem/v2-0335" - oid: "urn:oid:2.16.840.1.113883.18.205" -- id: "medicationrequest-status-reason" - description: "MedicationRequest Status Reason Codes" - url: "http://terminology.hl7.org/CodeSystem/medicationrequest-status-reason" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1325" -- id: "icd-o-3" - description: "International Classification of Diseases for Oncology, version 3." - url: "http://terminology.hl7.org/CodeSystem/icd-o-3" - oid: "urn:oid:2.16.840.1.113883.6.43.1" -- id: "v2-0270" - description: "documentType" - url: "http://terminology.hl7.org/CodeSystem/v2-0270" - oid: "urn:oid:2.16.840.1.113883.18.163" -- id: "v2-0437" - description: "alertDevice" - url: "http://terminology.hl7.org/CodeSystem/v2-0437" - oid: "urn:oid:2.16.840.1.113883.18.278" -- id: "conformance-expectation" - description: "ConformanceExpectation" - url: "http://terminology.hl7.org/CodeSystem/conformance-expectation" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1271" -- id: "v3-EmployeeJobClass" - description: "EmployeeJobClass" - url: "http://terminology.hl7.org/CodeSystem/v3-EmployeeJobClass" - oid: "urn:oid:2.16.840.1.113883.5.1059" -- id: "v2-0122" - description: "chargeType" - url: "http://terminology.hl7.org/CodeSystem/v2-0122" - oid: "urn:oid:2.16.840.1.113883.18.50" -- id: "v2-0572" - description: "taxStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0572" - oid: "urn:oid:2.16.840.1.113883.18.372" -- id: "entformula-additive" - description: "Enteral Formula Additive Type Code" - url: "http://terminology.hl7.org/CodeSystem/entformula-additive" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1123" -- id: "adverse-event-causality-method" - description: "AdverseEventCausalityMethod" - url: "http://terminology.hl7.org/CodeSystem/adverse-event-causality-method" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1255" -- id: "v2-0933" - description: "intendedProcedureType" - url: "http://terminology.hl7.org/CodeSystem/v2-0933" - oid: "urn:oid:2.16.840.1.113883.18.434" -- id: "icpc-SWE" - description: "International Classification of Primary Care 1993 Swedish" - url: "http://terminology.hl7.org/CodeSystem/icpc-SWE" - oid: "urn:oid:2.16.840.1.113883.6.138.13" -- id: "message-reasons-encounter" - description: "Example Message Reason Codes" - url: "http://terminology.hl7.org/CodeSystem/message-reasons-encounter" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1122" -- id: "v2-0175" - description: "masterFileIdentifierCodes" - url: "http://terminology.hl7.org/CodeSystem/v2-0175" - oid: "urn:oid:2.16.840.1.113883.18.91" -- id: "goal-acceptance-status" - description: "GoalAcceptanceStatus" - url: "http://terminology.hl7.org/CodeSystem/goal-acceptance-status" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1270" -- id: "v2-0749" - description: "drgGroupingStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0749" - oid: "urn:oid:2.16.840.1.113883.18.396" -- id: "v2-0925" - description: "phlebotomyIssue" - url: "http://terminology.hl7.org/CodeSystem/v2-0925" - oid: "urn:oid:2.16.840.1.113883.18.431" -- id: "HL70163" - description: "bodySite" - url: "http://terminology.hl7.org/CodeSystem/v2-0163" - oid: "urn:oid:2.16.840.1.113883.18.81" -- id: "v2-0163" - description: "bodySite" - url: "http://terminology.hl7.org/CodeSystem/v2-0163" - oid: "urn:oid:2.16.840.1.113883.18.81" -- id: "v2-0499" - description: "consentBypassReason" - url: "http://terminology.hl7.org/CodeSystem/v2-0499" - oid: "urn:oid:2.16.840.1.113883.18.323" -- id: "medicationknowledge-characteristic" - description: "MedicationKnowledge Characteristic Codes" - url: "http://terminology.hl7.org/CodeSystem/medicationknowledge-characteristic" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1338" -- id: "NHSNVocabulary" - description: "NHSN HAI Vocabulary" - url: "http://terminology.hl7.org/CodeSystem/NHSNVocabulary" - oid: "urn:oid:2.16.840.1.113883.6.274" - -- id: "v2-0421" - description: "severityOfIllness" - url: "http://terminology.hl7.org/CodeSystem/v2-0421" - oid: "urn:oid:2.16.840.1.113883.18.262" -- id: "v2-0564" - description: "adjustmentCategory" - url: "http://terminology.hl7.org/CodeSystem/v2-0564" - oid: "urn:oid:2.16.840.1.113883.18.366" -- id: "camncvs" - description: "CAMNCVS" - url: "http://terminology.hl7.org/CodeSystem/camncvs" - oid: "urn:oid:2.16.840.1.113883.6.19" -- id: "GCRT" - description: "GCRT" - url: "http://terminology.hl7.org/CodeSystem/GCRT" - oid: "urn:oid:2.16.840.1.113883.4.80" -- id: "v3-EntityNamePartTypeR2" - description: "EntityNamePartTypeR2" - url: "http://terminology.hl7.org/CodeSystem/v3-EntityNamePartTypeR2" - oid: "urn:oid:2.16.840.1.113883.5.1121" -- id: "v3-EntityCode" - description: "EntityCode" - url: "http://terminology.hl7.org/CodeSystem/v3-EntityCode" - oid: "urn:oid:2.16.840.1.113883.5.1060" -- id: "v2-0216" - description: "patientStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0216" - oid: "urn:oid:2.16.840.1.113883.18.120" -- id: "testscript-operation-codes" - description: "Test script operation code" - url: "http://terminology.hl7.org/CodeSystem/testscript-operation-codes" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1195" -- id: "v2-0353" - description: "cweStatuses" - url: "http://terminology.hl7.org/CodeSystem/v2-0353" - oid: "urn:oid:2.16.840.1.113883.18.213" -- id: "DEEDS414" - description: "DEEDS414" - url: "http://terminology.hl7.org/CodeSystem/DEEDS414" - oid: "urn:oid:2.16.840.1.113883.6.102.4.14" -- id: "EPSG-GeodeticParameterDataset" - description: "EPSG Geodetic Parameter Dataset" - url: "http://terminology.hl7.org/CodeSystem/EPSG-GeodeticParameterDataset" - oid: "urn:oid:2.16.840.1.113883.6.242" -- id: "v2-0187" - description: "providerBilling" - url: "http://terminology.hl7.org/CodeSystem/v2-0187" - oid: "urn:oid:2.16.840.1.113883.18.99" - -- id: "adverse-event-causality-assess" - description: "AdverseEventCausalityAssessment" - url: "http://terminology.hl7.org/CodeSystem/adverse-event-causality-assess" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1254" -- id: "v2-0538" - description: "institutionRelationshipType" - url: "http://terminology.hl7.org/CodeSystem/v2-0538" - oid: "urn:oid:2.16.840.1.113883.18.351" -- id: "v2-0168" - description: "processingPriority" - url: "http://terminology.hl7.org/CodeSystem/v2-0168" - oid: "urn:oid:2.16.840.1.113883.18.86" -- id: "NHSNBSIRiskFactors" - description: "NHSN BSI Risk Factors" - url: "http://terminology.hl7.org/CodeSystem/NHSNBSIRiskFactors" - oid: "urn:oid:2.16.840.1.113883.6.266" -- id: "v2-0492" - description: "specimenAppropriateness" - url: "http://terminology.hl7.org/CodeSystem/v2-0492" - oid: "urn:oid:2.16.840.1.113883.18.316" -- id: "v3-scptype" - description: "pan-Canadian Provider Types" - url: "https://fhir.infoway-inforoute.ca/CodeSystem/scptype" - oid: "urn:oid:2.16.840.1.113883.2.20.5.3" -- id: "v3-ParticipationSignature" - description: "ParticipationSignature" - url: "http://terminology.hl7.org/CodeSystem/v3-ParticipationSignature" - oid: "urn:oid:2.16.840.1.113883.5.89" -- id: "v2-0241" - description: "patientOutcome" - url: "http://terminology.hl7.org/CodeSystem/v2-0241" - oid: "urn:oid:2.16.840.1.113883.18.140" -- id: "DEEDS506" - description: "DEEDS506" - url: "http://terminology.hl7.org/CodeSystem/DEEDS506" - oid: "urn:oid:2.16.840.1.113883.6.102.5.6" -- id: "smart-capabilities" - description: "SmartCapabilities" - url: "http://terminology.hl7.org/CodeSystem/smart-capabilities" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1265" -- id: "CDARUS" - description: "CDA_RUS" - url: "http://terminology.hl7.org/CodeSystem/CDARUS" - oid: "urn:oid:2.16.840.1.113883.6.239" -- id: "IETF1766" - description: "IETF RFC 1766" - url: "http://terminology.hl7.org/CodeSystem/IETF1766" - oid: "urn:oid:2.16.840.1.113883.6.84" -- id: "v2-0938" - description: "collectionEvent" - url: "http://terminology.hl7.org/CodeSystem/v2-0938" - oid: "urn:oid:2.16.840.1.113883.18.441" -- id: "v3-ContextControl" - description: "ContextControl" - url: "http://terminology.hl7.org/CodeSystem/v3-ContextControl" - oid: "urn:oid:2.16.840.1.113883.5.1057" -- id: "hibccHIN" - description: "HIBCC" - url: "http://terminology.hl7.org/CodeSystem/hibccHIN" - oid: "urn:oid:2.16.840.1.113883.6.40" -- id: "v2-0191" - description: "typeOfReferencedData" - url: "http://terminology.hl7.org/CodeSystem/v2-0191" - oid: "urn:oid:2.16.840.1.113883.18.102" -- id: "v2-0484" - description: "dispenseType" - url: "http://terminology.hl7.org/CodeSystem/v2-0484" - oid: "urn:oid:2.16.840.1.113883.18.309" -- id: "v3-ParticipationType" - description: "ParticipationType" - url: "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" - oid: "urn:oid:2.16.840.1.113883.5.90" -- id: "resource-type-link" - description: "PayeeResourceType" - url: "http://terminology.hl7.org/CodeSystem/resource-type-link" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1180" -- id: "ex-relatedclaimrelationship" - description: "Example Related Claim Relationship Codes" - url: "http://terminology.hl7.org/CodeSystem/ex-relatedclaimrelationship" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1159" -- id: "v2-0257" - description: "natureOfChallenge" - url: "http://terminology.hl7.org/CodeSystem/v2-0257" - oid: "urn:oid:2.16.840.1.113883.18.152" -- id: "research-study-prim-purp-type" - description: "ResearchStudyPrimaryPurposeType" - url: "http://terminology.hl7.org/CodeSystem/research-study-prim-purp-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1250" -- id: "v2-0742" - description: "drgStatusFinancialCalculation" - url: "http://terminology.hl7.org/CodeSystem/v2-0742" - oid: "urn:oid:2.16.840.1.113883.18.395" -- id: "v3-ActPriority" - description: "ActPriority" - url: "http://terminology.hl7.org/CodeSystem/v3-ActPriority" - oid: "urn:oid:2.16.840.1.113883.5.7" -- id: "v3-ResponseModality" - description: "ResponseModality" - url: "http://terminology.hl7.org/CodeSystem/v3-ResponseModality" - oid: "urn:oid:2.16.840.1.113883.5.109" -- id: "claimcareteamrole" - description: "Claim Care Team Role Codes" - url: "http://terminology.hl7.org/CodeSystem/claimcareteamrole" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1165" -- id: "v2-0083" - description: "outlierType" - url: "http://terminology.hl7.org/CodeSystem/v2-0083" - oid: "urn:oid:2.16.840.1.113883.18.33" -- id: "v3-EducationLevel" - description: "Education Level" - url: "http://terminology.hl7.org/CodeSystem/v3-EducationLevel" - oid: "urn:oid:2.16.840.1.113883.5.1077" -- id: "v2-0200" - description: "nameType2" - url: "http://terminology.hl7.org/CodeSystem/v2-0200" - oid: "urn:oid:2.16.840.1.113883.18.105" -- id: "DEEDS402" - description: "DEEDS402" - url: "http://terminology.hl7.org/CodeSystem/DEEDS402" - oid: "urn:oid:2.16.840.1.113883.6.102.4.2" -- id: "contractactorrole" - description: "Contract Actor Role Codes" - url: "http://terminology.hl7.org/CodeSystem/contractactorrole" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1203" -- id: "v2-0502" - description: "non-subjectConsenterReason" - url: "http://terminology.hl7.org/CodeSystem/v2-0502" - oid: "urn:oid:2.16.840.1.113883.18.326" -- id: "v3-mediaType" - description: "Media Type" - url: "http://terminology.hl7.org/CodeSystem/v3-mediaType" - oid: "urn:oid:2.16.840.1.113883.5.79" -- id: "v2-0017" - description: "transactionType" - url: "http://terminology.hl7.org/CodeSystem/v2-0017" - oid: "urn:oid:2.16.840.1.113883.18.13" -- id: "v2-0914" - description: "rootCause" - url: "http://terminology.hl7.org/CodeSystem/v2-0914" - oid: "urn:oid:2.16.840.1.113883.18.421" -- id: "v3-ActRelationshipSplit" - description: "ActRelationshipSplit" - url: "http://terminology.hl7.org/CodeSystem/v3-ActRelationshipSplit" - oid: "urn:oid:2.16.840.1.113883.5.13" -- id: "v2-0294" - description: "timeSelectionCriteriaParameterClass" - url: "http://terminology.hl7.org/CodeSystem/v2-0294" - oid: "urn:oid:2.16.840.1.113883.18.183" -- id: "standards-status" - description: "StandardsStatus" - url: "http://terminology.hl7.org/CodeSystem/standards-status" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1366" -- id: "adjudication-reason" - description: "Adjudication Reason Codes" - url: "http://terminology.hl7.org/CodeSystem/adjudication-reason" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1172" -- id: "abcCodes" - description: "ABCcodes" - url: "http://terminology.hl7.org/CodeSystem/abcCodes" - oid: "urn:oid:2.16.840.1.113883.6.25" -- id: "v3-ISO3166-2retired" - description: "ISO 3166 3 Character Country Codes" - url: "http://terminology.hl7.org/CodeSystem/v3-ISO3166-2retired" - oid: "urn:oid:2.16.2" -- id: "v2-0105" - description: "sourceOfComment" - url: "http://terminology.hl7.org/CodeSystem/v2-0105" - oid: "urn:oid:2.16.840.1.113883.18.42" -- id: "v2-0555" - description: "invoiceType" - url: "http://terminology.hl7.org/CodeSystem/v2-0555" - oid: "urn:oid:2.16.840.1.113883.18.359" -- id: "nmmds" - description: "Nursing Management Minimum Data Set" - url: "http://terminology.hl7.org/CodeSystem/nmmds" - oid: "urn:oid:2.16.840.1.113883.6.23" -- id: "v2-0806" - description: "sterilizationType" - url: "http://terminology.hl7.org/CodeSystem/v2-0806" - oid: "urn:oid:2.16.840.1.113883.18.406" -- id: "iso-21089-lifecycle" - description: null - url: "http://terminology.hl7.org/CodeSystem/iso-21089-lifecycle" - oid: null -- id: "icpc-NOR" - description: "International Classification of Primary Care 1993 Norwegian" - url: "http://terminology.hl7.org/CodeSystem/icpc-NOR" - oid: "urn:oid:2.16.840.1.113883.6.138.10" -- id: "v3-styleType" - description: "Style Type" - url: "http://terminology.hl7.org/CodeSystem/v3-styleType" - oid: "urn:oid:2.16.840.1.113883.5.1095" -- id: "v2-0739" - description: "drgStatusPatient" - url: "http://terminology.hl7.org/CodeSystem/v2-0739" - oid: "urn:oid:2.16.840.1.113883.18.394" -- id: "condition-ver-status" - description: "ConditionVerificationStatus" - url: "http://terminology.hl7.org/CodeSystem/condition-ver-status" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1075" -- id: "USZIPCODES" - description: "United States Postal Service" - url: "http://terminology.hl7.org/CodeSystem/USZIPCODES" - oid: "urn:oid:2.16.840.1.113883.6.231" -- id: "v2-0369" - description: "specimenRole" - url: "http://terminology.hl7.org/CodeSystem/v2-0369" - oid: "urn:oid:2.16.840.1.113883.18.227" -- id: "icpc-DAN" - description: "International Classification of Primary Care 1993 Danish" - url: "http://terminology.hl7.org/CodeSystem/icpc-DAN" - oid: "urn:oid:2.16.840.1.113883.6.138.2" -- id: "v2-0406" - description: "organizationUnitType" - url: "http://terminology.hl7.org/CodeSystem/v2-0406" - oid: "urn:oid:2.16.840.1.113883.18.254" -- id: "variable-role" - description: "EvidenceVariableRole" - url: "http://terminology.hl7.org/CodeSystem/variable-role" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1457" -- id: "v3-ObservationValue" - description: "ObservationValue" - url: "http://terminology.hl7.org/CodeSystem/v3-ObservationValue" - oid: "urn:oid:2.16.840.1.113883.5.1063" -- id: "ex-procedure-type" - description: "Example Procedure Type Codes" - url: "http://terminology.hl7.org/CodeSystem/ex-procedure-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1388" -- id: "NHSNSSILocationType" - description: "NHSN SSI Location Type" - url: "http://terminology.hl7.org/CodeSystem/NHSNSSILocationType" - oid: "urn:oid:2.16.840.1.113883.6.265" -- id: "v3-hl7Realm" - description: "HL7Realm" - url: "http://terminology.hl7.org/CodeSystem/v3-hl7Realm" - oid: "urn:oid:2.16.840.1.113883.5.1124" -- id: "icd10ae" - description: "ICD-10 American English" - url: "http://terminology.hl7.org/CodeSystem/icd10ae" - oid: "urn:oid:2.16.840.1.113883.6.3.1" -- id: "v2-0144" - description: "eligibilitySource" - url: "http://terminology.hl7.org/CodeSystem/v2-0144" - oid: "urn:oid:2.16.840.1.113883.18.65" -- id: "v3-substanceAdminSubstitution" - description: "Substance Admin Substitution" - url: "http://terminology.hl7.org/CodeSystem/v3-substanceAdminSubstitution" - oid: "urn:oid:2.16.840.1.113883.5.1070" -- id: "v2-0514" - description: "transfusionAdverseReaction" - url: "http://terminology.hl7.org/CodeSystem/v2-0514" - oid: "urn:oid:2.16.840.1.113883.18.336" -- id: "standardBillingUnit" - description: "Standard Billing Unit" - url: "http://terminology.hl7.org/CodeSystem/standardBillingUnit" - oid: "urn:oid:2.16.840.1.113883.2.13" -- id: "v2-0001" - description: "administrativeSex" - url: "http://terminology.hl7.org/CodeSystem/v2-0001" - oid: "urn:oid:2.16.840.1.113883.18.2" -- id: "validation-process" - description: "Validation-process" - url: "http://terminology.hl7.org/CodeSystem/validation-process" - oid: "urn:oid:2.16.840.1.113883.4.642.1.889" -- id: "v2-0778" - description: "itemType" - url: "http://terminology.hl7.org/CodeSystem/v2-0778" - oid: "urn:oid:2.16.840.1.113883.18.403" -- id: "v2-0282" - description: "referralDisposition" - url: "http://terminology.hl7.org/CodeSystem/v2-0282" - oid: "urn:oid:2.16.840.1.113883.18.175" -- id: "v3-ObservationInterpretation" - description: "ObservationInterpretation" - url: "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - oid: "urn:oid:2.16.840.1.113883.5.83" -- id: "pclocd" - description: "pan-Canadian LOINC Observation Code Database" - url: "https://fhir.infoway-inforoute.ca/CodeSystem/pCLOCD" - oid: "urn:oid:2.16.840.1.113883.2.20.5.1" -- id: "condition-clinical" - description: "Condition Clinical Status Codes" - url: "http://terminology.hl7.org/CodeSystem/condition-clinical" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1074" -- id: "DEEDS418" - description: "DEEDS418" - url: "http://terminology.hl7.org/CodeSystem/DEEDS418" - oid: "urn:oid:2.16.840.1.113883.6.102.4.18" -- id: "can-push-updates" - description: "Can-push-updates" - url: "http://terminology.hl7.org/CodeSystem/can-push-updates" - oid: "urn:oid:2.16.840.1.113883.4.642.1.897" -- id: "goal-achievement" - description: "Goal achievement status" - url: "http://terminology.hl7.org/CodeSystem/goal-achievement" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1375" -- id: "v2-0426" - description: "bloodProduct" - url: "http://terminology.hl7.org/CodeSystem/v2-0426" - oid: "urn:oid:2.16.840.1.113883.18.267" -- id: "v2-0076" - description: "messageType" - url: "http://terminology.hl7.org/CodeSystem/v2-0076" - oid: "urn:oid:2.16.840.1.113883.18.30" -- id: "deeds-old" - description: "DEEDS(old)" - url: "http://terminology.hl7.org/CodeSystem/deeds-old" - oid: "urn:oid:2.16.840.1.113883.6.89" -- id: "v3-hl7CMETAttribution" - description: "HL7CMETAttribution" - url: "http://terminology.hl7.org/CodeSystem/v3-hl7CMETAttribution" - oid: "urn:oid:2.16.840.1.113883.5.1132" -- id: "research-subject-state-type" - description: "ResearchSubjectStateType" - url: "http://terminology.hl7.org/CodeSystem/research-subject-state-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.0" -- id: "evidence-quality" - description: "QualityOfEvidenceRating" - url: "http://terminology.hl7.org/CodeSystem/evidence-quality" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1267" -- id: "claiminformationcategory" - description: "Claim Information Category Codes" - url: "http://terminology.hl7.org/CodeSystem/claiminformationcategory" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1163" -- id: "v2-0133" - description: "procedurePractitionerIdentifierCodeType" - url: "http://terminology.hl7.org/CodeSystem/v2-0133" - oid: "urn:oid:2.16.840.1.113883.18.59" -- id: "v3-VaccineManufacturer" - description: "VaccineManufacturer" - url: "http://terminology.hl7.org/CodeSystem/v3-VaccineManufacturer" - oid: "urn:oid:2.16.840.1.113883.5.144" -- id: "v2-tables" - description: "V2 Table List" - url: "http://terminology.hl7.org/CodeSystem/v2-tables" - oid: null -- id: "v2-0922" - description: "certificationCategory" - url: "http://terminology.hl7.org/CodeSystem/v2-0922" - oid: "urn:oid:2.16.840.1.113883.18.428" -- id: "v3-TribalEntityUS" - description: "TribalEntityUS" - url: "http://terminology.hl7.org/CodeSystem/v3-TribalEntityUS" - oid: "urn:oid:2.16.840.1.113883.5.140" -- id: "immunization-evaluation-dose-status-reason" - description: "Immunization Evaluation Dose Status Reason codes" - url: "http://terminology.hl7.org/CodeSystem/immunization-evaluation-dose-status-reason" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1103" -- id: "v2-0164" - description: "administrationDevice" - url: "http://terminology.hl7.org/CodeSystem/v2-0164" - oid: "urn:oid:2.16.840.1.113883.18.82" -- id: "v2-0534" - description: "clergyNotificationType" - url: "http://terminology.hl7.org/CodeSystem/v2-0534" - oid: "urn:oid:2.16.840.1.113883.18.348" -- id: "allergyintolerance-verification" - description: "AllergyIntolerance Verification Status" - url: "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1371" -- id: "noc" - description: "NOC" - url: "http://terminology.hl7.org/CodeSystem/noc" - oid: "urn:oid:2.16.840.1.113883.6.16" -- id: "library-type" - description: "LibraryType" - url: "http://terminology.hl7.org/CodeSystem/library-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1230" -- id: "fundsreserve" - description: "Funds Reservation Codes" - url: "http://terminology.hl7.org/CodeSystem/fundsreserve" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1051" -- id: "v3-IdentifierScope" - description: "IdentifierScope" - url: "http://terminology.hl7.org/CodeSystem/v3-IdentifierScope" - oid: "urn:oid:2.16.840.1.113883.5.1116" -- id: "v2-0871" - description: "supplyRisk" - url: "http://terminology.hl7.org/CodeSystem/v2-0871" - oid: "urn:oid:2.16.840.1.113883.18.410" -- id: "v3-rxNorm" - description: "RxNorm" - url: "http://www.nlm.nih.gov/research/umls/rxnorm" - oid: "urn:oid:2.16.840.1.113883.6.88" -- id: "financialtaskcode" - description: "Financial Task Codes" - url: "http://terminology.hl7.org/CodeSystem/financialtaskcode" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1390" -- id: "v2-0488" - description: "specimenCollectionMethod" - url: "http://terminology.hl7.org/CodeSystem/v2-0488" - oid: "urn:oid:2.16.840.1.113883.18.312" -- id: "iso21000-6-2004E-RDD" - description: "ISO/IEC 21000-6:2004(E) Rights Data Dictionary" - url: "http://terminology.hl7.org/CodeSystem/iso21000-6-2004E-RDD" - oid: "urn:oid:1.0.21000.6" -- id: "v3-cci" - description: "Canadian Classification of Health Interventions" - url: "http://cihi.ca/fhir/CodeSystem/cihi-cci" - oid: "urn:oid:2.16.840.1.113883.6.95" -- id: "certainty-subcomponent-rating" - description: "StatisticCertaintySubcomponentRating" - url: "http://terminology.hl7.org/CodeSystem/certainty-subcomponent-rating" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1362" -- id: "ex-coverage-financial-exception" - description: "Example Coverage Financial Exception Codes" - url: "http://terminology.hl7.org/CodeSystem/ex-coverage-financial-exception" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1329" -- id: "v3-mdc" - description: "ISO 11073-10101 Health informatics - Point-of-care" - url: "urn:iso:std:iso:11073:10101" - oid: "urn:oid:2.16.840.1.113883.6.24" -- id: "v2-0430" - description: "arrivalMode" - url: "http://terminology.hl7.org/CodeSystem/v2-0430" - oid: "urn:oid:2.16.840.1.113883.18.271" -- id: "v3-RouteOfAdministration" - description: "RouteOfAdministration" - url: "http://terminology.hl7.org/CodeSystem/v3-RouteOfAdministration" - oid: "urn:oid:2.16.840.1.113883.5.112" -- id: "iso639-1" - description: "ISO 639-1: Codes for the representation of names of languages -- Part 1:\ - \ Alpha-2 code" - url: "http://terminology.hl7.org/CodeSystem/iso639-1" - oid: "urn:oid:1.0.639.1" -- id: "v2-0298" - description: "cpRangeType" - url: "http://terminology.hl7.org/CodeSystem/v2-0298" - oid: "urn:oid:2.16.840.1.113883.18.184" -- id: "v2-0332" - description: "sourceType" - url: "http://terminology.hl7.org/CodeSystem/v2-0332" - oid: "urn:oid:2.16.840.1.113883.18.203" -- id: "v2-0277" - description: "appointmentType" - url: "http://terminology.hl7.org/CodeSystem/v2-0277" - oid: "urn:oid:2.16.840.1.113883.18.170" -- id: "security-source-type" - description: "Audit Event Source Type" - url: "http://terminology.hl7.org/CodeSystem/security-source-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1137" -- id: "v3-ietf3066" - description: "Tags for the Identification of Languages" - url: "urn:ietf:bcp:47" - oid: "urn:oid:2.16.840.1.113883.6.121" -- id: "v2-0918" - description: "pcaType" - url: "http://terminology.hl7.org/CodeSystem/v2-0918" - oid: "urn:oid:2.16.840.1.113883.18.424" -- id: "chargeitem-billingcodes" - description: "ChargeItemCode" - url: "http://terminology.hl7.org/CodeSystem/chargeitem-billingcodes" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1257" -- id: "DEEDS422" - description: "DEEDS422" - url: "http://terminology.hl7.org/CodeSystem/DEEDS422" - oid: "urn:oid:2.16.840.1.113883.6.102.4.22" -- id: "v2-0365" - description: "equipmentState" - url: "http://terminology.hl7.org/CodeSystem/v2-0365" - oid: "urn:oid:2.16.840.1.113883.18.223" -- id: "v2-0220" - description: "livingArrangement" - url: "http://terminology.hl7.org/CodeSystem/v2-0220" - oid: "urn:oid:2.16.840.1.113883.18.122" -- id: "v2-0559" - description: "product-serviceStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0559" - oid: "urn:oid:2.16.840.1.113883.18.363" -- id: "v2-0109" - description: "reportPriority" - url: "http://terminology.hl7.org/CodeSystem/v2-0109" - oid: "urn:oid:2.16.840.1.113883.18.46" -- id: "v3-Confidentiality" - description: "Confidentiality" - url: "http://terminology.hl7.org/CodeSystem/v3-Confidentiality" - oid: "urn:oid:2.16.840.1.113883.5.25" -- id: "referencerange-meaning" - description: "Observation Reference Range Meaning Codes" - url: "http://terminology.hl7.org/CodeSystem/referencerange-meaning" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1124" -- id: "v2-0373" - description: "treatment" - url: "http://terminology.hl7.org/CodeSystem/v2-0373" - oid: "urn:oid:2.16.840.1.113883.18.231" -- id: "mth-icpc2-icd10-AE" - description: "ICPC2-ICD10 Thesaurus, Am Engl" - url: "http://terminology.hl7.org/CodeSystem/mth-icpc2-icd10-AE" - oid: "urn:oid:2.16.840.1.113883.6.142.3" -- id: "NHSNSpinalFusionApproach" - description: "NHSN Spinal Fusion Approach" - url: "http://terminology.hl7.org/CodeSystem/NHSNSpinalFusionApproach" - oid: "urn:oid:2.16.840.1.113883.6.262" -- id: "v2-0236" - description: "eventReportedTo" - url: "http://terminology.hl7.org/CodeSystem/v2-0236" - oid: "urn:oid:2.16.840.1.113883.18.135" -- id: "ex-visionprescriptionproduct" - description: "Example Vision Prescription Product Codes" - url: "http://terminology.hl7.org/CodeSystem/ex-visionprescriptionproduct" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1188" -- id: "need" - description: "Need" - url: "http://terminology.hl7.org/CodeSystem/need" - oid: "urn:oid:2.16.840.1.113883.4.642.1.883" -- id: "naaccrCodes" - description: "NAACCR" - url: "http://terminology.hl7.org/CodeSystem/naaccrCodes" - oid: "urn:oid:2.16.840.1.113883.6.7" -- id: "icpc-BAQ" - description: "International Classification of Primary Care 1993 Basque" - url: "http://terminology.hl7.org/CodeSystem/icpc-BAQ" - oid: "urn:oid:2.16.840.1.113883.6.138.1" -- id: "v2-0324" - description: "locationCharacteristic" - url: "http://terminology.hl7.org/CodeSystem/v2-0324" - oid: "urn:oid:2.16.840.1.113883.18.197" -- id: "v3-TableCellHorizontalAlign" - description: "TableCellHorizontalAlign" - url: "http://terminology.hl7.org/CodeSystem/v3-TableCellHorizontalAlign" - oid: "urn:oid:2.16.840.1.113883.5.131" -- id: "nddf" - description: "National Drug Data File" - url: "http://terminology.hl7.org/CodeSystem/nddf" - oid: "urn:oid:2.16.840.1.113883.6.208" -- id: "iso639-2ret" - description: "ISO 639-2 Alpha-3 Language Codes" - url: "http://terminology.hl7.org/CodeSystem/iso639-2ret" - oid: "urn:oid:2.16.840.1.113883.6.100" -- id: "v3-hl7ITSVersionCode" - description: "HL7 ITS Version Code" - url: "http://terminology.hl7.org/CodeSystem/v3-hl7ITSVersionCode" - oid: "urn:oid:2.16.840.1.113883.5.1092" -- id: "v2-0261" - description: "locationEquipment" - url: "http://terminology.hl7.org/CodeSystem/v2-0261" - oid: "urn:oid:2.16.840.1.113883.18.156" -- id: "v2-0518" - description: "overrideType" - url: "http://terminology.hl7.org/CodeSystem/v2-0518" - oid: "urn:oid:2.16.840.1.113883.18.339" -- id: "v2-0148" - description: "moneyOrPercentageIndicator" - url: "http://terminology.hl7.org/CodeSystem/v2-0148" - oid: "urn:oid:2.16.840.1.113883.18.69" -- id: "v3-DeviceAlertLevel" - description: "DeviceAlertLevel" - url: "http://terminology.hl7.org/CodeSystem/v3-DeviceAlertLevel" - oid: "urn:oid:2.16.840.1.113883.5.31" -- id: "NHSNLCBIPathways" - description: "NHSN LCBI Pathways" - url: "http://terminology.hl7.org/CodeSystem/NHSNLCBIPathways" - oid: "urn:oid:2.16.840.1.113883.6.267" -- id: "icpc-GER" - description: "International Classification of Primary Care 1993 German" - url: "http://terminology.hl7.org/CodeSystem/icpc-GER" - oid: "urn:oid:2.16.840.1.113883.6.138.6" -- id: "v2-0149" - description: "dayType" - url: "http://terminology.hl7.org/CodeSystem/v2-0149" - oid: "urn:oid:2.16.840.1.113883.18.70" -- id: "v3-QueryQuantityUnit" - description: "QueryQuantityUnit" - url: "http://terminology.hl7.org/CodeSystem/v3-QueryQuantityUnit" - oid: "urn:oid:2.16.840.1.113883.5.1066" -- id: "v2-0325" - description: "locationRelationship" - url: "http://terminology.hl7.org/CodeSystem/v2-0325" - oid: "urn:oid:2.16.840.1.113883.18.198" -- id: "v3-ReligiousAffiliation" - description: "Religious Affiliation" - url: "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" - oid: "urn:oid:2.16.840.1.113883.5.1076" -- id: "v2-0260" - description: "patientLocationType" - url: "http://terminology.hl7.org/CodeSystem/v2-0260" - oid: "urn:oid:2.16.840.1.113883.18.155" -- id: "ex-tooth" - description: "Oral Site Codes" - url: "http://terminology.hl7.org/CodeSystem/ex-tooth" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1152" -- id: "v3-CalendarType" - description: "CalendarType" - url: "http://terminology.hl7.org/CodeSystem/v3-CalendarType" - oid: "urn:oid:2.16.840.1.113883.5.1017" -- id: "chromosome-human" - description: "chromosome-human" - url: "http://terminology.hl7.org/CodeSystem/chromosome-human" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1086" -- id: "immunization-origin" - description: "Immunization Origin Codes" - url: "http://terminology.hl7.org/CodeSystem/immunization-origin" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1101" -- id: "v2-0372" - description: "specimenComponent" - url: "http://terminology.hl7.org/CodeSystem/v2-0372" - oid: "urn:oid:2.16.840.1.113883.18.230" -- id: "v2-0667" - description: "deviceDataState" - url: "http://terminology.hl7.org/CodeSystem/v2-0667" - oid: "urn:oid:2.16.840.1.113883.18.384" -- id: "iso3166-1edition2" - description: "ISO 3166 Part 1 Country Codes, 2nd Edition" - url: "http://terminology.hl7.org/CodeSystem/iso3166-1edition2" - oid: "urn:oid:1.0.3166.1.2" -- id: "v2-0237" - description: "eventQualification" - url: "http://terminology.hl7.org/CodeSystem/v2-0237" - oid: "urn:oid:2.16.840.1.113883.18.136" -- id: "FDI-surface" - description: "Surface Codes" - url: "http://terminology.hl7.org/CodeSystem/FDI-surface" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1154" -- id: "contracttermsubtypecodes" - description: "Contract Term Subtype Codes" - url: "http://terminology.hl7.org/CodeSystem/contracttermsubtypecodes" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1200" -- id: "handling-condition" - description: "HandlingConditionSet" - url: "http://terminology.hl7.org/CodeSystem/handling-condition" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1259" -- id: "v2-0558" - description: "payeeRelationshipToInvoice" - url: "http://terminology.hl7.org/CodeSystem/v2-0558" - oid: "urn:oid:2.16.840.1.113883.18.362" -- id: "v2-0108" - description: "queryResultsLevel" - url: "http://terminology.hl7.org/CodeSystem/v2-0108" - oid: "urn:oid:2.16.840.1.113883.18.45" -- id: "v3-IntegrityCheckAlgorithm" - description: "IntegrityCheckAlgorithm" - url: "http://terminology.hl7.org/CodeSystem/v3-IntegrityCheckAlgorithm" - oid: "urn:oid:2.16.840.1.113883.5.1010" -- id: "v2-0364" - description: "commentType" - url: "http://terminology.hl7.org/CodeSystem/v2-0364" - oid: "urn:oid:2.16.840.1.113883.18.222" -- id: "v2-0734" - description: "grouperStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0734" - oid: "urn:oid:2.16.840.1.113883.18.393" -- id: "v3-hc-AIC" - description: "Active Ingredient Code" - url: "http://www.canada.ca/en/health-canada/services/drugs-health-products/drug-products/drug-product-database-1" - oid: "urn:oid:2.16.840.1.113883.5.1103" -- id: "copy-number-event" - description: "CopyNumberEvent" - url: "http://terminology.hl7.org/CodeSystem/copy-number-event" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1087" -- id: "ex-diagnosistype" - description: "Example Diagnosis Type Codes" - url: "http://terminology.hl7.org/CodeSystem/ex-diagnosistype" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1167" -- id: "whoSPA" - description: "WHO Adverse Reaction Terms Spanish" - url: "http://terminology.hl7.org/CodeSystem/whoSPA" - oid: "urn:oid:2.16.840.1.113883.6.230.4" -- id: "v2-0919" - description: "exclusiveTest" - url: "http://terminology.hl7.org/CodeSystem/v2-0919" - oid: "urn:oid:2.16.840.1.113883.18.425" -- id: "ICD-9DualCoding" - description: "ICD-9 Dual Coding" - url: "http://terminology.hl7.org/CodeSystem/ICD-9DualCoding" - oid: "urn:oid:2.16.840.1.113883.6.261" -- id: "v3-LanguageAbilityMode" - description: "LanguageAbilityMode" - url: "http://terminology.hl7.org/CodeSystem/v3-LanguageAbilityMode" - oid: "urn:oid:2.16.840.1.113883.5.60" -- id: "MDRDUT" - description: "MedDRA Dutch" - url: "http://terminology.hl7.org/CodeSystem/MDRDUT" - oid: "urn:oid:2.16.840.1.113883.6.163.2" -- id: "nutrition-intake-category" - description: "Nutrition intake category codes" - url: "http://terminology.hl7.org/CodeSystem/nutrition-intake-category" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1431" -- id: "icpc-HEB" - description: "International Classification of Primary Care 1993 Hebrew" - url: "http://terminology.hl7.org/CodeSystem/icpc-HEB" - oid: "urn:oid:2.16.840.1.113883.6.138.7" -- id: "v2-0763" - description: "drgProcedureRelevance" - url: "http://terminology.hl7.org/CodeSystem/v2-0763" - oid: "urn:oid:2.16.840.1.113883.18.401" -- id: "v2-0299" - description: "encoding" - url: "http://terminology.hl7.org/CodeSystem/v2-0299" - oid: "urn:oid:2.16.840.1.113883.18.185" -- id: "v2-0276" - description: "appointmentReason" - url: "http://terminology.hl7.org/CodeSystem/v2-0276" - oid: "urn:oid:2.16.840.1.113883.18.169" -- id: "financialtaskinputtype" - description: "Financial Task Input Type Codes" - url: "http://terminology.hl7.org/CodeSystem/financialtaskinputtype" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1392" -- id: "goal-relationship-type" - description: "GoalRelationshipType" - url: "http://terminology.hl7.org/CodeSystem/goal-relationship-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1269" -- id: "MDRPOR" - description: "MedDRA Portuguese" - url: "http://terminology.hl7.org/CodeSystem/MDRPOR" - oid: "urn:oid:2.16.840.1.113883.6.163.5" -- id: "v3-HL7CommitteeIDInRIM" - description: "HL7CommitteeIDInRIM" - url: "http://terminology.hl7.org/CodeSystem/v3-HL7CommitteeIDInRIM" - oid: "urn:oid:2.16.840.1.113883.5.54" -- id: "research-subject-milestone" - description: "ResearchSubjectMilestone" - url: "http://terminology.hl7.org/CodeSystem/research-subject-milestone" - oid: "urn:oid:2.16.840.1.113883.4.642.1.0" -- id: "v2-0061" - description: "checkDigitScheme" - url: "http://terminology.hl7.org/CodeSystem/v2-0061" - oid: "urn:oid:2.16.840.1.113883.18.22" -- id: "v2-0431" - description: "recreationalDrugType" - url: "http://terminology.hl7.org/CodeSystem/v2-0431" - oid: "urn:oid:2.16.840.1.113883.18.272" -- id: "v2-0124" - description: "transportationMode" - url: "http://terminology.hl7.org/CodeSystem/v2-0124" - oid: "urn:oid:2.16.840.1.113883.18.52" -- id: "encounter-special-arrangements" - description: "Special arrangements" - url: "http://terminology.hl7.org/CodeSystem/encounter-special-arrangements" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1090" -- id: "v3-EquipmentAlertLevel" - description: "EquipmentAlertLevel" - url: "http://terminology.hl7.org/CodeSystem/v3-EquipmentAlertLevel" - oid: "urn:oid:2.16.840.1.113883.5.49" -- id: "v2-0466" - description: "ambulatoryPaymentClassification" - url: "http://terminology.hl7.org/CodeSystem/v2-0466" - oid: "urn:oid:2.16.840.1.113883.18.296" -- id: "v2-0935" - description: "processInterruptionReason" - url: "http://terminology.hl7.org/CodeSystem/v2-0935" - oid: "urn:oid:2.16.840.1.113883.18.435" -- id: "v2-0523" - description: "computationType" - url: "http://terminology.hl7.org/CodeSystem/v2-0523" - oid: "urn:oid:2.16.840.1.113883.18.341" -- id: "medcin" - description: "MEDCIN" - url: "http://terminology.hl7.org/CodeSystem/medcin" - oid: "urn:oid:2.16.840.1.113883.6.26" -- id: "v2-0173" - description: "coordinationOfBenefits" - url: "http://terminology.hl7.org/CodeSystem/v2-0173" - oid: "urn:oid:2.16.840.1.113883.18.89" -- id: "v2-0489" - description: "risks" - url: "http://terminology.hl7.org/CodeSystem/v2-0489" - oid: "urn:oid:2.16.840.1.113883.18.313" -- id: "v3-HtmlLinkType" - description: "HtmlLinkType" - url: "http://terminology.hl7.org/CodeSystem/v3-HtmlLinkType" - oid: "urn:oid:2.16.840.1.113883.5.58" -- id: "service-category" - description: "Service category" - url: "http://terminology.hl7.org/CodeSystem/service-category" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1144" -- id: "v3-HL7DefinedRoseProperty" - description: "HL7DefinedRoseProperty" - url: "http://terminology.hl7.org/CodeSystem/v3-HL7DefinedRoseProperty" - oid: "urn:oid:2.16.840.1.113883.5.56" -- id: "v2-0923" - description: "processInterruption" - url: "http://terminology.hl7.org/CodeSystem/v2-0923" - oid: "urn:oid:2.16.840.1.113883.18.429" -- id: "v3-hl7V3Conformance" - description: "HL7V3Conformance" - url: "http://terminology.hl7.org/CodeSystem/v3-hl7V3Conformance" - oid: "urn:oid:2.16.840.1.113883.5.1125" -- id: "subscription-error" - description: "Subscription Error Codes" - url: "http://terminology.hl7.org/CodeSystem/subscription-error" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1438" -- id: "v2-0470" - description: "reimbursementType" - url: "http://terminology.hl7.org/CodeSystem/v2-0470" - oid: "urn:oid:2.16.840.1.113883.18.299" -- id: "v2-0165" - description: "administrationMethod" - url: "http://terminology.hl7.org/CodeSystem/v2-0165" - oid: "urn:oid:2.16.840.1.113883.18.83" -- id: "iso3166-1edition2numeric" - description: "ISO 3166 Part 1 Country Codes, 2nd Edition, Numeric" - url: "http://terminology.hl7.org/CodeSystem/iso3166-1edition2numeric" - oid: "urn:oid:1.0.3166.1.2.1" -- id: "v2-0535" - description: "signatureType" - url: "http://terminology.hl7.org/CodeSystem/v2-0535" - oid: "urn:oid:2.16.840.1.113883.18.349" -- id: "v2-0759" - description: "drgstatusAdmission" - url: "http://terminology.hl7.org/CodeSystem/v2-0759" - oid: "urn:oid:2.16.840.1.113883.18.399" -- id: "v2-0078" - description: "HL7-defined code system of concepts which specify a categorical assessment of an observation value." - url: "http://terminology.hl7.org/CodeSystem/v2-0078" - oid: null -- id: "v2-0309" - description: "coverageType" - url: "http://terminology.hl7.org/CodeSystem/v2-0309" - oid: "urn:oid:2.16.840.1.113883.18.188" -- id: "v2-0427" - description: "riskManagementIncident" - url: "http://terminology.hl7.org/CodeSystem/v2-0427" - oid: "urn:oid:2.16.840.1.113883.18.268" -- id: "v2-0562" - description: "processingConsideration" - url: "http://terminology.hl7.org/CodeSystem/v2-0562" - oid: "urn:oid:2.16.840.1.113883.18.365" -- id: "v2-0098" - description: "typeOfAgreement" - url: "http://terminology.hl7.org/CodeSystem/v2-0098" - oid: "urn:oid:2.16.840.1.113883.18.37" -- id: "v3-MessageCondition" - description: "MessageCondition" - url: "http://terminology.hl7.org/CodeSystem/v3-MessageCondition" - oid: "urn:oid:2.16.840.1.113883.5.80" -- id: "payeetype" - description: null - url: "http://terminology.hl7.org/CodeSystem/payeetype" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1050" -- id: "v3-QueryResponse" - description: "QueryResponse" - url: "http://terminology.hl7.org/CodeSystem/v3-QueryResponse" - oid: "urn:oid:2.16.840.1.113883.5.1067" -- id: "v2-0283" - description: "referralStatus" - url: "http://terminology.hl7.org/CodeSystem/v2-0283" - oid: "urn:oid:2.16.840.1.113883.18.176" -- id: "v3-RelationalOperator" - description: "RelationalOperator" - url: "http://terminology.hl7.org/CodeSystem/v3-RelationalOperator" - oid: "urn:oid:2.16.840.1.113883.5.105" -- id: "CDCREC" - description: "RaceAndEthnicityCDC" - url: "http://hl7.org/fhir/us/core/CodeSystem-cdcrec.html" - oid: "urn:oid:2.16.840.1.113883.6.238" -- id: "PHRaceAndEthnicityCDC" - description: "PH_RaceAndEthnicity_CDC" - url: "http://terminology.hl7.org/CodeSystem/PHRaceAndEthnicityCDC" - oid: "urn:oid:2.16.840.1.113883.6.238" -- id: "v2-0329" - description: "quantityMethod" - url: "http://terminology.hl7.org/CodeSystem/v2-0329" - oid: "urn:oid:2.16.840.1.113883.18.200" -- id: "usEPAsrs" - description: "US EPA Substance Registry System" - url: "http://terminology.hl7.org/CodeSystem/usEPAsrs" - oid: "urn:oid:2.16.840.1.113883.6.275" -- id: "v2-0145" - description: "roomType" - url: "http://terminology.hl7.org/CodeSystem/v2-0145" - oid: "urn:oid:2.16.840.1.113883.18.66" -- id: "v3-RoleLinkStatus" - description: "RoleLinkStatus" - url: "http://terminology.hl7.org/CodeSystem/v3-RoleLinkStatus" - oid: "urn:oid:2.16.840.1.113883.5.1137" -- id: "v2-0450" - description: "eventType" - url: "http://terminology.hl7.org/CodeSystem/v2-0450" - oid: "urn:oid:2.16.840.1.113883.18.286" -- id: "v3-MdfHmdMetSourceType" - description: "MdfHmdMetSourceType" - url: "http://terminology.hl7.org/CodeSystem/v3-MdfHmdMetSourceType" - oid: "urn:oid:2.16.840.1.113883.5.75" - -- id: "v2-0391" - description: "segmentGroup" - url: "http://terminology.hl7.org/CodeSystem/v2-0391" - oid: "urn:oid:2.16.840.1.113883.18.242" -- id: "v3-ObservationMethod" - description: "ObservationMethod" - url: "http://terminology.hl7.org/CodeSystem/v3-ObservationMethod" - oid: "urn:oid:2.16.840.1.113883.5.84" -- id: "v2-0368" - description: "remoteControlCommand" - url: "http://terminology.hl7.org/CodeSystem/v2-0368" - oid: "urn:oid:2.16.840.1.113883.18.226" -- id: "v3-PatientImportance" - description: "PatientImportance" - url: "http://terminology.hl7.org/CodeSystem/v3-PatientImportance" - oid: "urn:oid:2.16.840.1.113883.5.1075" -- id: "v2-0387" - description: "commandResponse" - url: "http://terminology.hl7.org/CodeSystem/v2-0387" - oid: "urn:oid:2.16.840.1.113883.18.238" -- id: "icpc2-icd10-ENG" - description: "ICPC2-ICD10 Thesaurus (English)" - url: "http://terminology.hl7.org/CodeSystem/icpc2-icd10-ENG" - oid: "urn:oid:2.16.840.1.113883.6.142.4" -- id: "insurance-plan-type" - description: "Insurance plan type" - url: "http://terminology.hl7.org/CodeSystem/insurance-plan-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1261" -- id: "ICD-9CM-diagnosiscodes" - description: "National Center for Health Statistics" - url: "http://terminology.hl7.org/CodeSystem/ICD-9CM-diagnosiscodes" - oid: "urn:oid:2.16.840.1.113883.6.103" -- id: "v3-EntityClass" - description: "EntityClass" - url: "http://terminology.hl7.org/CodeSystem/v3-EntityClass" - oid: "urn:oid:2.16.840.1.113883.5.41" -- id: "v2-0104" - description: "versionId" - url: "http://terminology.hl7.org/CodeSystem/v2-0104" - oid: "urn:oid:2.16.840.1.113883.18.41" -- id: "v2-0554" - description: "invoiceReason" - url: "http://terminology.hl7.org/CodeSystem/v2-0554" - oid: "urn:oid:2.16.840.1.113883.18.358" -- id: "v3-EntityNamePartQualifierR2" - description: "EntityNamePartQualifierR2" - url: "http://terminology.hl7.org/CodeSystem/v3-EntityNamePartQualifierR2" - oid: "urn:oid:2.16.840.1.113883.5.1122" -- id: "v2-0942" - description: "equipmentStateIndicator" - url: "http://terminology.hl7.org/CodeSystem/v2-0942" - oid: "urn:oid:2.16.840.1.113883.18.444" -- id: "mddid" - description: "MDDID" - url: "http://terminology.hl7.org/CodeSystem/mddid" - oid: "urn:oid:2.16.840.1.113883.6.253" -- id: "provenance-participant-type" - description: "Provenance participant type" - url: "http://terminology.hl7.org/CodeSystem/provenance-participant-type" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1131" -- id: "v2-0503" - description: "sequenceResultsFlag" - url: "http://terminology.hl7.org/CodeSystem/v2-0503" - oid: "urn:oid:2.16.840.1.113883.18.327" -- id: "v3-DataType" - description: "DataType" - url: "http://terminology.hl7.org/CodeSystem/v3-DataType" - oid: "urn:oid:2.16.840.1.113883.5.1007" -- id: "benefit-term" - description: "Benefit Term Codes" - url: "http://terminology.hl7.org/CodeSystem/benefit-term" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1179" -- id: "whoFRE" - description: "WHO Adverse Reaction Terms French" - url: "http://terminology.hl7.org/CodeSystem/whoFRE" - oid: "urn:oid:2.16.840.1.113883.6.230.1" -- id: "certainty-rating" - description: "StatisticCertaintyRating" - url: "http://terminology.hl7.org/CodeSystem/certainty-rating" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1415" -- id: "icpc2E-ENG" - description: "International Classification of Primary Care, second edition, English" - url: "http://terminology.hl7.org/CodeSystem/icpc2E-ENG" - oid: "urn:oid:2.16.840.1.113883.6.139.1" -- id: "v2-0201" - description: "telecommunicationUse" - url: "http://terminology.hl7.org/CodeSystem/v2-0201" - oid: "urn:oid:2.16.840.1.113883.18.106" -- id: "v2-0651" - description: "laborCalculationType" - url: "http://terminology.hl7.org/CodeSystem/v2-0651" - oid: "urn:oid:2.16.840.1.113883.18.380" -- id: "v3-WorkClassificationODH" - description: "Work Classification (Occupational Data for Health)" - url: "http://terminology.hl7.org/CodeSystem/v3-WorkClassificationODH" - oid: "urn:oid:2.16.840.1.113883.5.1139" -- id: "v2-0344" - description: "patientsRelationshipToInsured" - url: "http://terminology.hl7.org/CodeSystem/v2-0344" - oid: "urn:oid:2.16.840.1.113883.18.210" -- id: "common-tags" - description: "Common Tags" - url: "http://terminology.hl7.org/CodeSystem/common-tags" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1067" -- id: "v3-EncounterAcuity" - description: "Encounter Acuity" - url: "http://terminology.hl7.org/CodeSystem/v3-EncounterAcuity" - oid: "urn:oid:2.16.840.1.113883.5.1084" -- id: "list-empty-reason" - description: "List Empty Reasons" - url: "http://terminology.hl7.org/CodeSystem/list-empty-reason" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1106" -- id: "iso4217" - description: "ISO 4217 Currency Codes" - url: "http://terminology.hl7.org/CodeSystem/iso4217" - oid: "urn:oid:1.0.4217" -- id: "v2-0128" - description: "allergySeverity" - url: "http://terminology.hl7.org/CodeSystem/v2-0128" - oid: "urn:oid:2.16.840.1.113883.18.55" -- id: "v2-0256" - description: "timeDelayPostChallenge" - url: "http://terminology.hl7.org/CodeSystem/v2-0256" - oid: "urn:oid:2.16.840.1.113883.18.151" -- id: "v3-MaritalStatus" - description: "MaritalStatus" - url: "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" - oid: "urn:oid:2.16.840.1.113883.5.2" -- id: "v2-0939" - description: "communicationLocation" - url: "http://terminology.hl7.org/CodeSystem/v2-0939" - oid: "urn:oid:2.16.840.1.113883.18.442" -- id: "ICD-10DualCoding" - description: "ICD-10 Dual Coding" - url: "http://terminology.hl7.org/CodeSystem/ICD-10DualCoding" - oid: "urn:oid:2.16.840.1.113883.6.260" -- id: "v2-0190" - description: "addressType" - url: "http://terminology.hl7.org/CodeSystem/v2-0190" - oid: "urn:oid:2.16.840.1.113883.18.101" -- id: "v2-0485" - description: "extendedPriorityCodes" - url: "http://terminology.hl7.org/CodeSystem/v2-0485" - oid: "urn:oid:2.16.840.1.113883.18.310" -- id: "pnds" - description: "Perioperative Nursing Data Set" - url: "http://terminology.hl7.org/CodeSystem/pnds" - oid: "urn:oid:2.16.840.1.113883.6.22" -- id: "consentscope" - description: "Consent Scope Codes" - url: "http://terminology.hl7.org/CodeSystem/consentscope" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1228" -- id: "v3-EncounterAdmissionSource" - description: "EncounterAdmissionSource" - url: "http://terminology.hl7.org/CodeSystem/v3-EncounterAdmissionSource" - oid: "urn:oid:2.16.840.1.113883.5.37" -- id: "v2-0240" - description: "eventConsequence" - url: "http://terminology.hl7.org/CodeSystem/v2-0240" - oid: "urn:oid:2.16.840.1.113883.18.139" -- id: "v3-ConceptStatus" - description: "HL7 Coded Concept Status" - url: "http://terminology.hl7.org/CodeSystem/v3-ConceptStatus" - oid: "urn:oid:2.16.840.1.113883.5.1086" -- id: "v2-0305" - description: "personLocationType" - url: "http://terminology.hl7.org/CodeSystem/v2-0305" - oid: "urn:oid:2.16.840.1.113883.18.187" -- id: "v2-0755" - description: "drgstatusWeightAtBirth" - url: "http://terminology.hl7.org/CodeSystem/v2-0755" - oid: "urn:oid:2.16.840.1.113883.18.397" -- id: "processpriority" - description: "Process Priority Codes" - url: "http://terminology.hl7.org/CodeSystem/processpriority" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1155" -- id: "v3-ActUncertainty" - description: "ActUncertainty" - url: "http://terminology.hl7.org/CodeSystem/v3-ActUncertainty" - oid: "urn:oid:2.16.840.1.113883.5.1053" -- id: "v3-DocumentCompletion" - description: "DocumentCompletion" - url: "http://terminology.hl7.org/CodeSystem/v3-DocumentCompletion" - oid: "urn:oid:2.16.840.1.113883.5.33" -- id: "v2-0169" - description: "reportingPriority" - url: "http://terminology.hl7.org/CodeSystem/v2-0169" - oid: "urn:oid:2.16.840.1.113883.18.87" -- id: "v2-0493" - description: "specimenCondition" - url: "http://terminology.hl7.org/CodeSystem/v2-0493" - oid: "urn:oid:2.16.840.1.113883.18.317" -- id: "v3-MDFSubjectAreaPrefix" - description: "MDFSubjectAreaPrefix" - url: "http://terminology.hl7.org/CodeSystem/v3-MDFSubjectAreaPrefix" - oid: "urn:oid:2.16.840.1.113883.5.78" -- id: "v2-0217" - description: "visitPriority" - url: "http://terminology.hl7.org/CodeSystem/v2-0217" - oid: "urn:oid:2.16.840.1.113883.18.121" -- id: "oms" - description: "Omaha System" - url: "http://terminology.hl7.org/CodeSystem/oms" - oid: "urn:oid:2.16.840.1.113883.6.98" -- id: "v2-0702" - description: "cycleType" - url: "http://terminology.hl7.org/CodeSystem/v2-0702" - oid: "urn:oid:2.16.840.1.113883.18.387" -- id: "DEEDS415" - description: "DEEDS415" - url: "http://terminology.hl7.org/CodeSystem/DEEDS415" - oid: "urn:oid:2.16.840.1.113883.6.102.4.15" -- id: "supply-kind" - description: "Supply Type" - url: "http://terminology.hl7.org/CodeSystem/supply-kind" - oid: "urn:oid:2.16.840.1.113883.4.642.1.1192" -- id: "SS" - description: "United States Social Security Number" - url: "http://hl7.org/fhir/sid/us-ssn" - oid: "urn:oid:2.16.840.1.113883.4.1" -- id: "MCD" - description: "United States Medicare Number" - url: "http://hl7.org/fhir/sid/us-medicare" - oid: "urn:oid:2.16.840.1.113883.4.572" -- id: "MCR" - description: "United States Medicare Number" - url: "http://hl7.org/fhir/sid/us-medicare" - oid: "urn:oid:2.16.840.1.113883.4.572" - -- id: "MBI" - description: "Medicare Beneficiary Identifier" - url: "http://hl7.org/fhir/sid/us-mbi" - oid: "urn:oid:2.16.840.1.113883.4.927" -- id: "NPI" - description: "United States National Provider Identifier" - url: "http://hl7.org/fhir/sid/us-npi" - oid: "urn:oid:2.16.840.1.113883.4.6" -- id: "AllLanguages" - description: "languages" - url: "http://hl7.org/fhir/ValueSet/all-languages" - oid: "urn:oid:2.16.840.1.113883.4.642.3.21" - - # next two are different id notations for the same table. -- id: "HL70064" - description: "Financial Class (HL7)" - url: "https://phinvads.cdc.gov/vads/ViewCodeSystem.action?id=2.16.840.1.113883.12.64#" - oid: "urn:oid:2.16.840.1.113883.12.64" -- id: "V2-0064" - description: "Financial Class (HL7)" - url: "https://phinvads.cdc.gov/vads/ViewCodeSystem.action?id=2.16.840.1.113883.12.64#" - oid: "urn:oid:2.16.840.1.113883.12.64" - - # source-record-type-system -- id: "source-record-type-system" - url: "http://terminology.hl7.org/CodeSystem/v2-0076" - # source-event-trigger-system -- id: "source-event-trigger-system" - url: "http://terminology.hl7.org/CodeSystem/v2-0003" -- id: "ConditionClinicalStatus" - url: "http://hl7.org/fhir/ValueSet/condition-clinical" - oid: "urn:oid:2.16.840.1.113883.4.642.3.164" -- id: "ConditionVerificationStatus" - url: "http://hl7.org/fhir/ValueSet/condition-ver-status" - oid: "urn:oid:2.16.840.1.113883.4.642.3.166" - - # encounter extensions -- id: "mode-of-arrival-system" - url: "http://terminology.hl7.org/CodeSystem/v2-0430" -- id: "encounter-modeOfArrival-extension" - url: "http://hl7.org/fhir/StructureDefinition/encounter-modeOfArrival" -- id: "PatientContactRelationship" - description: "The nature of the relationship between the patient and the contact person." - url: "http://hl7.org/fhir/ValueSet/patient-contactrelationship" - oid: "urn:oid:2.16.840.1.113883.4.642.3.1130" diff --git a/prime-router/metadata/HL7/v251-elr/hl7/codesystem/ExtensionUrlMapping.yml b/prime-router/metadata/HL7/v251-elr/hl7/codesystem/ExtensionUrlMapping.yml deleted file mode 100644 index df11edf90d1..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/codesystem/ExtensionUrlMapping.yml +++ /dev/null @@ -1,331 +0,0 @@ -## HL7 Extensions - -- id: "mothersMaidenName" - url: "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName" -- id: "birthPlace" - url: "http://hl7.org/fhir/StructureDefinition/patient-birthPlace" -- id: "birthTime" - url: "http://hl7.org/fhir/StructureDefinition/patient-birthTime" -- id: "religion" - url: "http://hl7.org/fhir/StructureDefinition/patient-religion" -- id: "event-performerFunction" - url: "http://hl7.org/fhir/StructureDefinition/event-performerFunction" -- id: "humanname-own-prefix" - url: "http://hl7.org/fhir/StructureDefinition/humanname-own-prefix" -- id: "humanname-own-name" - url: "http://hl7.org/fhir/StructureDefinition/humanname-own-name" -- id: "humanname-partner-prefix" - url: "http://hl7.org/fhir/StructureDefinition/humanname-partner-prefix" -- id: "humanname-partner-name" - url: "http://hl7.org/fhir/StructureDefinition/humanname-partner-name" -- id: "humanname-assembly-order" - url: "http://hl7.org/fhir/StructureDefinition/humanname-assembly-order" -- id: "patient-congregation" - url: "http://hl7.org/fhir/StructureDefinition/patient-congregation" -- id: "patient-disability" - url: "http://hl7.org/fhir/StructureDefinition/patient-disability" -- id: "data-absent-reason" - url: "http://hl7.org/fhir/StructureDefinition/data-absent-reason" -- id: "contactpoint-country" - url: "http://hl7.org/fhir/StructureDefinition/contactpoint-country" -- id: "contactpoint-area" - url: "http://hl7.org/fhir/StructureDefinition/contactpoint-area" -- id: "contactpoint-local" - url: "http://hl7.org/fhir/StructureDefinition/contactpoint-local" -- id: "contactpoint-extension" - url: "http://hl7.org/fhir/StructureDefinition/contactpoint-extension" -- id: "patient-citizenship" - url: "http://hl7.org/fhir/StructureDefinition/patient-citizenship" -- id: "patient-nationality" - url: "http://hl7.org/fhir/StructureDefinition/patient-nationality" -- id: "iso21090-AD-use" - url: "http://hl7.org/fhir/StructureDefinition/iso21090-AD-use" -- id: "iso21090-ADXP-censusTract" - url: "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-censusTract" -- id: "observation-value-attachment" - url: "https://hl7.org/fhir/R5/StructureDefinition/observation-value-attachment" -- id: "identifier-check-digit" - url: "http://hl7.org/fhir/StructureDefinition/identifier-checkDigit" -- id: "naming-system-check-digit" - url: "http://hl7.org/fhir/StructureDefinition/namingsystem-checkDigit" -- id: "patient-animal" - url: "http://hl7.org/fhir/StructureDefinition/patient-animal" -- id: "relationship" - url: "https://hl7.org/fhir/StructureDefinition/relationship" - -## Datatypes - -# XON -> Organization -- id: "name-representation-code" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/name-representation-code" -- id: "identifier-location" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/identifier-location" -- id: "organization-name-type" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/organization-name-type" -- id: "xon-organization" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/xon-organization" - -# CX -> Identifier -- id: "assigning-facility" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-facility" -- id: "cx-identifier" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/cx-identifier" - -# CE/CWE -> Coding -- id: "coding-system-oid" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/coding-system-oid" -- id: "cwe-coding" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding" -- id: "cwe-coding-system" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system" -- id: "ce-coding" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/ce-coding" -- id: "ce-coding-system" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/ce-coding-system" -- id: "cne-coding" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/cne-coding" -- id: "cne-coding-system" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/cne-coding-system" -- id: "code" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/code" - -# XTN -> ContactPoint -- id: "xtn-contact-point" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/xtn-contact-point" - -# CWE -> Annotation -- id: "cwe-annotation" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-annotation" - -# CNN -> Practitioner -- id: "cnn-practitioner" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/cnn-practitioner" - -# XAD -> Address -- id: "xad-address" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/xad-address" -- id: "sad-address-line" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/sad-address-line" - -# XCN -> Practitioner -- id: "xcn-practitioner" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/xcn-practitioner" - -# XPN -> HumanName -- id: "xpn-human-name" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/xpn-human-name" - -# PL -> Location -- id: "pl6-person-location-type" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/pl6-person-location-type" - -# DLD -> Location -- id: "dld2-effective-date" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/dld2-effective-date" - -# CQ -> Quantity -- id: "cq-units" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/cq-units" - -# EI -> ExtensionEI -- id: "entity-identifier" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/entity-identifier" -- id: "placer-assigned-identifier" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/placer-assigned-identifier" -- id: "filler-assigned-identifier" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/filler-assigned-identifier" - -# EI -> Identifier -- id: "ei-assigner-organization-type" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/ei-assigner-organization-type" - -# ID -> CodeableConcept -- id: "codeable-concept-id" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/codeable-concept-id" - -# CWE -> Organization -- id: "cwe-organization" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-organization" - -# ED -> Attachment -- id: "ed-attachment" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/ed-attachment" - -## Segments - -# MSH -- id: "encoding-characters" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters" -- id: "character-set" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set" -- id: "msh-message-header" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header" - -# SFT -- id: "software-binary-id" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/software-binary-id" -- id: "source-software-description" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/source-software-description" -- id: "software-install-date" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/software-install-date" -- id: "software-vendor-org" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/software-vendor-org" - -# PID -> Patient -- id: "last-updated-facility-namespace-id" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/last-updated-facility-namespace-id" -- id: "ethnic-group" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/ethnic-group" -- id: "veteran-military-status" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/veteran-military-status" -- id: "identity-unknown" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/identity-unknown" -- id: "pid-patient" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/pid-patient" - -# PD1 -> Patient -- id: "pd1-patient-additional-demographic" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/pd1-patient-additional-demographic" -- id: "studentStatus" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/studentStatus" -- id: "livingWill" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/livingWill" - -# NTE -> Patient -- id: "patient-notes" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/patient-notes" - -# OBX -> Observation -- id: "sub-id" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/sub-id" -- id: "observation-sub-type" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/observation-sub-type" -- id: "obx-5-value-sn" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/obx-5-value-sn" -- id: "nature-of-abnormal-test" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/nature-of-abnormal-test" -- id: "analysis-date-time" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/analysis-date-time" -- id: "obx-observation" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/obx-observation" - -# SPM -> Specimen -- id: "specimen-source-site-modifier" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/specimen-source-site-modifier" -- id: "spm-specimen" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/spm-specimen" -- id: "reject-reason" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/reject-reason" -- id: "bodySiteModifier" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/bodySiteModifier" - -# NK1 -> RelatedPerson -- id: "nk1-related-person" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/nk1-related-person" -- id: "nk1-15-administrative-sex" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/nk1-15-administrative-sex" - -# ORC/OBR -> ServiceRequest/DiagnosticReport -- id: "orc-common-order" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/orc-common-order" -- id: "obr-observation-request" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/obr-observation-request" -- id: "status-modifier" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/status-modifier" -- id: "callback-number" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/callback-number" -- id: "business-event" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/business-event" - -# PV1/PV2 -> Encounter -- id: "admission-level-of-care" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/admission-level-of-care" -- id: "publicity-code" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/publicity-code" -- id: "estimated-length" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/estimated-length" -- id: "planned-discharge-date" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/planned-discharge-date" -- id: "planned-start-date" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/planned-start-date" -- id: "visit-user-code" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/visit-user-code" -- id: "temporary-location" - url: "https://hl7.org/fhir/StructureDefinition/temporary-location" -- id: "episode-of-care-name" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/episode-of-care-name" -- id: "pv1-patient-visit" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/pv1-patient-visit" -- id: "pv2-patient-visit-additional-information" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/pv2-patient-visit-additional-information" -- id: "pv1-2-patient-class" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/pv1-2-patient-class" -- id: "pv2-visit-description" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/pv2-visit-description" - -# NTE -> Annotation -- id: "note-source" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/note-source" -# Comment -- id: "note-comment" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/note-comment" -# Comment type -- id: "note-type" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/note-type" - -## Generic - -# internal indicator of sender, usable for filtering -- id: "sender-id" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/sender-id" - -# The following extensions are also used to store in the bundle where particular pieces of -# data should be placed in an HL7 message -- id: "hl7v2Segment" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Segment" -- id: "hl7v2Field" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field" -- id: "hl7v2Component" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Component" - -# Date time as hl7v2 string -# This extension exists because HL7 dates have very little restrictions (i.e. YYYY-MM, YYYY-MM-DD HH, YYYY-MM-DD HH:MM) -# are all valid, but the FHIR specs has much stricter rules. In order to reliably generate the same HL7 message, this extension -# is used to capture what was in the original HL7 message and then exclusively used when mapping FHIR->HL7 -- id: "hl7v2-date-time" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time" - -# These extensions are also used to store the unique identifiers -- id: "assigning-authority" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority" -- id: "namespace-id" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id" -- id: "universal-id" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id" -- id: "universal-id-type" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type" -# Unknown Universal ID Type -# This extension is used when mapping specifies only populating the universal-id-type extension for certain values -- id: "universal-id-unknown-type" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-unknown-type" -- id: "location-physical-type-poc" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/location-physical-type-poc" - -## Deprecated - -# TODO: #13288 -- id: "hl7-use" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7-use" -- id: "code-index-name" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/code-index-name" - -## Used by simple report - -# NOTE: this URL is not live, but this is is what simple report sends us -# TODO: #{Ticket to work with SR to clean their FHIR bundle} -- id: "race" - url: "http://ibm.com/fhir/cdm/StructureDefinition/local-race-cd" - -# SR Extension used to convey the order effective date -- id: "order-effective-date" - url: "https://reportstream.cdc.gov/fhir/StructureDefinition/order-effective-date" diff --git a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/CQ_ELR/Quantity.yml b/prime-router/metadata/HL7/v251-elr/hl7/datatypes/CQ_ELR/Quantity.yml deleted file mode 100644 index b7659fa424c..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/CQ_ELR/Quantity.yml +++ /dev/null @@ -1,34 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -value: - type: BIG_DECIMAL - expressionType: HL7Spec - valueOf: CQ.1 - -unit: - expressionType: nested - vars: - cwe_originalText: STRING, CQ.2.9 - expressions: - - condition: $cwe_originalText NULL - type: STRING - expressionType: HL7Spec - valueOf: CQ.2.2 - - condition: $cwe_originalText NOT_NULL - type: STRING - valueOf: $cwe_originalText - -extension: - condition: $cq2 NOT_NULL - generateList: true - expressionType: nested - vars: - cq2: STRING_ALL, CQ.2 - expressionsMap: - url: - type: SYSTEM_URL - value: 'cq-units' - valueCodeableConcept: - valueOf: datatypes/CWE_ELR/CodeableConcept - expressionType: resource - specs: CQ.2 \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/CWE_ELR/Annotation.yml b/prime-router/metadata/HL7/v251-elr/hl7/datatypes/CWE_ELR/Annotation.yml deleted file mode 100644 index f8a6292e8b8..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/CWE_ELR/Annotation.yml +++ /dev/null @@ -1,19 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -text: - type: STRING_ALL - valueOf: CWE - generateList: true - expressionType: HL7Spec - -extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: 'cwe-annotation' - valueCodeableConcept: - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - expressionType: resource - specs: CWE \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/CWE_ELR/CodeableConcept.yml b/prime-router/metadata/HL7/v251-elr/hl7/datatypes/CWE_ELR/CodeableConcept.yml deleted file mode 100644 index 983acda6dde..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/CWE_ELR/CodeableConcept.yml +++ /dev/null @@ -1,192 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -coding: - generateList: true - expressionType: nested - vars: - code: String, CWE.1 - display: String, CWE.2 - system: SYSTEM_URL, CWE.3 - version: String, CWE.7 - expressionsMap: - code: - type: String - expressionType: HL7Spec - valueOf: CWE.1 - display: - type: String - expressionType: HL7Spec - valueOf: CWE.2 - system: - type: SYSTEM_URL - expressionType: HL7Spec - valueOf: CWE.3 - version: - type: String - expressionType: HL7Spec - valueOf: CWE.7 - extension_cwe-coding: - condition: $code NOT_NULL || $display NOT_NULL || $system NOT_NULL || $version NOT_NULL - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: cwe-coding - valueString: - value: coding - extension_cwe-coding-system: - condition: $coding-system NOT_NULL - generateList: true - expressionType: nested - vars: - coding-system: String, CWE.3 - expressionsMap: - url: - type: SYSTEM_URL - value: cwe-coding-system - valueString: - value: $coding-system - -coding_alt: - generateList: true - expressionType: nested - vars: - altCode: String, CWE.4 - altDisplay: String, CWE.5 - altSystem: SYSTEM_URL, CWE.6 - altVersion: String, CWE.8 - expressionsMap: - code: - type: String - expressionType: HL7Spec - valueOf: CWE.4 - display: - type: String - expressionType: HL7Spec - valueOf: CWE.5 - system: - type: SYSTEM_URL - expressionType: HL7Spec - valueOf: CWE.6 - version: - type: String - expressionType: HL7Spec - valueOf: CWE.8 - extension_cwe-coding: - condition: $altCode NOT_NULL || $altDisplay NOT_NULL || $altSystem NOT_NULL || $altVersion NOT_NULL - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: cwe-coding - valueString: - value: alt-coding - extension_cwe-coding-system: - condition: $coding-system NOT_NULL - generateList: true - expressionType: nested - vars: - coding-system: String, CWE.6 - expressionsMap: - url: - type: SYSTEM_URL - value: cwe-coding-system - valueString: - value: $coding-system - -coding_secondary-alt: - generateList: true - expressionType: nested - vars: - secondaryAltCode: String, CWE.10 - secondaryAltDisplay: String, CWE.11 - secondaryAltSystem: SYSTEM_URL, CWE.12 - secondaryAltVersion: String, CWE.13 - expressionsMap: - code: - type: String - expressionType: HL7Spec - valueOf: CWE.10 - display: - type: String - expressionType: HL7Spec - valueOf: CWE.11 - system: - type: SYSTEM_URL - expressionType: HL7Spec - valueOf: CWE.12 - version: - type: String - expressionType: HL7Spec - valueOf: CWE.13 - extension_cwe-coding: - condition: $secondaryAltCode NOT_NULL || $secondaryAltDisplay NOT_NULL || $secondaryAltSystem NOT_NULL || $secondaryAltVersion NOT_NULL - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: cwe-coding - valueString: - value: secondary-alt-coding - extension_cwe-coding-system: - condition: $coding-system NOT_NULL - generateList: true - expressionType: nested - vars: - coding-system: String, CWE.12 - expressionsMap: - url: - type: SYSTEM_URL - value: cwe-coding-system - valueString: - value: $coding-system - -text: - type: STRING - expressionType: HL7Spec - valueOf: CWE.9 - -extension: - generateList: true - expressionType: nested - expressions: - # codingSystemOID - - generateList: true - expressionType: nested - condition: $codingSystemOID NOT_NULL - vars: - codingSystemOID: String, CWE.14 - expressionsMap: - url: - type: SYSTEM_URL - value: coding-system-oid - valueOid: - type: STRING - valueOf: $oidString - vars: - oidString: $oidUrlPrefix + $codingSystemOID - constants: - oidUrlPrefix: "urn:oid:" - - generateList: true - expressionType: nested - condition: $hl7v2Field NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - type: STRING - valueOf: $hl7v2Field - - generateList: true - expressionType: nested - condition: $hl7v2Component NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Component - valueString: - type: STRING - valueOf: $hl7v2Component \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/CWE_ELR/Coding.yml b/prime-router/metadata/HL7/v251-elr/hl7/datatypes/CWE_ELR/Coding.yml deleted file mode 100644 index ab9a62c75ab..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/CWE_ELR/Coding.yml +++ /dev/null @@ -1,33 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -code: - type: STRING - expressionType: HL7Spec - valueOf: CWE.1 - -display: - type: STRING - expressionType: HL7Spec - valueOf: CWE.2 - -system: - type: STRING - expressionType: HL7Spec - valueOf: CWE.3 - -version: - type: STRING - expressionType: HL7Spec - valueOf: CWE.7 - -extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: 'cwe-coding' - valueCodeableConcept: - valueOf: ../../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - expressionType: resource - specs: CWE \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/CWE_ELR/Organization.yml b/prime-router/metadata/HL7/v251-elr/hl7/datatypes/CWE_ELR/Organization.yml deleted file mode 100644 index 7c4516f11f7..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/CWE_ELR/Organization.yml +++ /dev/null @@ -1,60 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Organization - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -identifier: - generateList: true - expressionType: nested - expressionsMap: - value: - type: STRING - expressionType: HL7Spec - valueOf: CWE.1 - system: - type: STRING - expressionType: HL7Spec - valueOf: CWE.3 - -name: - type: STRING - expressionType: HL7Spec - valueOf: CWE.2 | CWE.9 - -extension: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: cwe-organization - valueCodeableConcept: - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - specs: $BASE_VALUE - - generateList: true - expressionType: nested - condition: $cweOrganizationHL7Field NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - type: STRING - valueOf: $cweOrganizationHL7Field - - generateList: true - expressionType: nested - condition: $cweOrganizationHL7Component NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Component - valueString: - type: STRING - valueOf: $cweOrganizationHL7Component \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/CWE_ELR/Quantity.yml b/prime-router/metadata/HL7/v251-elr/hl7/datatypes/CWE_ELR/Quantity.yml deleted file mode 100644 index 46bfb4911cd..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/CWE_ELR/Quantity.yml +++ /dev/null @@ -1,46 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -code: - condition: $identifier NOT_NULL && $nameOfCodingSystem NOT_NULL - type: STRING - expressionType: HL7Spec - valueOf: CWE.1 - vars: - identifier: CWE.1 - nameOfCodingSystem: CWE.3 - -unit: - expressionType: nested - vars: - identifier: CWE.1 - text: CWE.2 - expressions: - - condition: $text NULL && $identifier NOT_NULL - type: STRING - valueOf: CWE.1 - expressionType: HL7Spec - - condition: $text NOT_NULL - type: STRING - valueOf: CWE.2 - expressionType: HL7Spec - -system: - condition: $identifier NOT_NULL && $nameOfCodingSystem NOT_NULL - type: SYSTEM_URL - expressionType: HL7Spec - valueOf: CWE.1 - vars: - identifier: CWE.1 - nameOfCodingSystem: CWE.3 - -extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: 'cwe-quantity' - valueCodeableConcept: - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - expressionType: resource - specs: CWE \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/PL_ELR/Location.yml b/prime-router/metadata/HL7/v251-elr/hl7/datatypes/PL_ELR/Location.yml deleted file mode 100644 index ca9a64c3bb7..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/PL_ELR/Location.yml +++ /dev/null @@ -1,292 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Location - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -identifier: - generateList: true - expressionType: nested - vars: - pl3: STRING_ALL, PL.3 - pl2: STRING_ALL, PL.2 - pl1: STRING_ALL, PL.1 - pl8: STRING_ALL, PL.8 - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - pl10: STRING_ALL, PL.10 - pl11: STRING_ALL, PL.11 - expressions: - - expressionType: nested - generateList: true - condition: $pl3 NOT_NULL - expressions: - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.3 - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.3 - - expressionType: resource - condition: $pl11 NULL && $pl10 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier-Organization - specs: PL.10 - - expressionType: resource - vars: - eiAssigningOrganization: PL.11 - condition: $pl11 NOT_NULL && $pl10 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier-DefaultAssigner - specs: PL.10 - - expressionType: nested - condition: $pl3 NULL && $pl2 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.2 - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.2 - - expressionType: resource - condition: $pl11 NULL && $pl10 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier-Organization - specs: PL.10 - - expressionType: resource - vars: - eiAssigningOrganization: PL.11 - condition: $pl11 NOT_NULL && $pl10 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier-DefaultAssigner - specs: PL.10 - - expressionType: nested - condition: $pl3 NULL && $pl2 NULL && $pl1 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.1 - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.1 - - expressionType: resource - condition: $pl11 NULL && $pl10 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier-Organization - specs: PL.10 - - expressionType: resource - vars: - eiAssigningOrganization: PL.11 - condition: $pl11 NOT_NULL && $pl10 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier-DefaultAssigner - specs: PL.10 - - expressionType: nested - condition: $pl3 NULL && $pl2 NULL && $pl1 NULL && $pl8 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.8 - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.8 - - expressionType: resource - condition: $pl11 NULL && $pl10 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier-Organization - specs: PL.10 - - expressionType: resource - vars: - eiAssigningOrganization: PL.11 - condition: $pl11 NOT_NULL && $pl10 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier-DefaultAssigner - specs: PL.10 - - expressionType: nested - condition: $pl3 NULL && $pl2 NULL && $pl1 NULL && $pl8 NULL && $pl7 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.7 - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.7 - - expressionType: resource - condition: $pl11 NULL && $pl10 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier-Organization - specs: PL.10 - - expressionType: resource - vars: - eiAssigningOrganization: PL.11 - condition: $pl11 NOT_NULL && $pl10 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier-DefaultAssigner - specs: PL.10 - - expressionType: nested - condition: $pl3 NULL && $pl2 NULL && $pl1 NULL && $pl8 NULL && $pl7 NULL && $pl4 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.4 - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.4 - - expressionType: resource - condition: $pl11 NULL && $pl10 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier-Organization - specs: PL.10 - - expressionType: resource - vars: - eiAssigningOrganization: PL.11 - condition: $pl11 NOT_NULL && $pl10 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier-DefaultAssigner - specs: PL.10 - -physicalType: - expressionType: nested - vars: - pl3: STRING_ALL, PL.3 - pl2: STRING_ALL, PL.2 - pl1: STRING_ALL, PL.1 - pl8: STRING_ALL, PL.8 - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - constants: - system: "http://terminology.hl7.org/CodeSystem/location-physical-type" - expressions: - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "bd" - system: - valueOf: $system - condition: $pl3 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "ro" - system: - valueOf: $system - condition: $pl3 NULL && $pl2 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - expressionType: nested - generateList: true - expressions: - - expressionType: nested - expressionsMap: - _code: - expressionType: nested - expressionsMap: - extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: location-physical-type-poc - valueString: - value: "poc" - system: - type: STRING - value: "http://terminology.hl7.org/CodeSystem/location-physical-type" - condition: $pl3 NULL && $pl2 NULL && $pl1 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "lvl" - system: - valueOf: $system - condition: $pl3 NULL && $pl2 NULL && $pl1 NULL && $pl8 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "bu" - system: - valueOf: $system - condition: $pl3 NULL && $pl2 NULL && $pl1 NULL && $pl8 NULL && $pl7 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "si" - system: - valueOf: $system - condition: $pl3 NULL && $pl2 NULL && $pl1 NULL && $pl8 NULL && $pl7 NULL && $pl4 NOT_NULL - - -partOf: - expressionType: nested - vars: - pl3: STRING_ALL, PL.3 - pl2: STRING_ALL, PL.2 - pl1: STRING_ALL, PL.1 - pl8: STRING_ALL, PL.8 - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - condition: $pl3 NOT_NuLL || $pl2 NOT_NULL || $pl1 NOT_NULL || $pl8 NOT_NULL || $pl7 NOT_NULL - expressions: - - expressionType: reference - condition: $pl2 NOT_NULL - valueOf: datatypes/PL_ELR/LocationBranch1 #PL2 - specs: $BASE_VALUE - - expressionType: reference - condition: $pl2 NULL && $pl1 NOT_NULL #PL1 - valueOf: datatypes/PL_ELR/LocationBranch2 - specs: $BASE_VALUE - - expressionType: reference - condition: $pl2 NULL && $pl1 NULL && $pl8 NOT_NULL - valueOf: datatypes/PL_ELR/LocationBranch3 - specs: $BASE_VALUE - - expressionType: reference - condition: $pl2 NULL && $pl1 NULL && $pl8 NULL && $pl7 NOT_NULL - valueOf: datatypes/PL_ELR/LocationBranch4 - specs: $BASE_VALUE - - expressionType: reference - condition: $pl2 NULL && $pl1 NULL && $pl8 NULL && $pl7 NULL && $pl4 NOT_NULL - valueOf: datatypes/PL_ELR/LocationBranch5 - specs: $BASE_VALUE - -status: - expressionType: HL7Spec - valueOf: PL.5 - type: STRING - -mode: - value: "instance" - -description: - type: STRING - expressionType: HL7Spec - valueOf: PL.9 - -extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: pl6-person-location-type - valueString: - type: STRING - expressionType: HL7Spec - valueOf: PL.6 \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/PL_ELR/LocationBranch1.yml b/prime-router/metadata/HL7/v251-elr/hl7/datatypes/PL_ELR/LocationBranch1.yml deleted file mode 100644 index 5f3c963748c..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/PL_ELR/LocationBranch1.yml +++ /dev/null @@ -1,182 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Location - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -identifier: - generateList: true - expressionType: nested - vars: - pl2: STRING_ALL, PL.2 - pl1: STRING_ALL, PL.1 - pl8: STRING_ALL, PL.8 - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - expressions: - - expressionType: nested - condition: $pl2 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.2 - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.2 - - expressionType: nested - condition: $pl2 NULL && $pl1 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.1 - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.1 - - expressionType: nested - condition: $pl2 NULL && $pl1 NULL && $pl8 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.8 - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.8 - - expressionType: nested - condition: $pl2 NULL && $pl1 NULL && $pl8 NULL && $pl7 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.7 - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.7 - - expressionType: nested - condition: $pl2 NULL && $pl1 NULL && $pl8 NULL && $pl7 NULL && $pl4 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.4 - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.4 - - - -physicalType: - expressionType: nested - vars: - pl2: STRING, PL.2 - pl1: STRING, PL.1 - pl8: STRING, PL.8 - pl7: STRING, PL.7 - pl4: STRING_ALL, PL.4 - constants: - system: "http://terminology.hl7.org/CodeSystem/location-physical-type" - expressions: - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "ro" - system: - valueOf: $system - condition: $pl2 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - expressionType: nested - generateList: true - expressions: - - expressionType: nested - expressionsMap: - _code: - expressionType: nested - expressionsMap: - extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: location-physical-type-poc - valueString: - value: "poc" - system: - type: STRING - value: "http://terminology.hl7.org/CodeSystem/location-physical-type" - system: - type: STRING - valueOf: $system - condition: $pl2 NULL && $pl1 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "lvl" - system: - valueOf: $system - condition: $pl2 NULL && $pl1 NULL && $pl8 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "bu" - system: - valueOf: $system - condition: $pl2 NULL && $pl1 NULL && $pl8 NULL && $pl7 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "si" - system: - valueOf: $system - condition: $pl2 NULL && $pl1 NULL && $pl8 NULL && $pl7 NULL && $pl4 NOT_NULL - - -partOf: - expressionType: nested - vars: - pl2: STRING_ALL, PL.2 - pl1: STRING_ALL, PL.1 - pl8: STRING_ALL, PL.8 - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - condition: $pl2 NOT_NULL || $pl1 NOT_NULL || $pl8 NOT_NULL || $pl7 NOT_NULL - expressions: - - expressionType: reference - condition: $pl1 NOT_NULL #PL1 - valueOf: datatypes/PL_ELR/LocationBranch2 - specs: $BASE_VALUE - - expressionType: reference - condition: $pl1 NULL && $pl8 NOT_NULL #PL8 - valueOf: datatypes/PL_ELR/LocationBranch3 - specs: $BASE_VALUE - - expressionType: reference - condition: $pl1 NULL && $pl8 NULL && $pl7 NOT_NULL #PL7 - valueOf: datatypes/PL_ELR/LocationBranch4 - specs: $BASE_VALUE - - expressionType: reference - condition: $pl1 NULL && $pl8 NULL && $pl7 NULL && $pl4 NOT_NULL #PL4 - valueOf: datatypes/PL_ELR/LocationBranch5 - specs: $BASE_VALUE \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/PL_ELR/LocationBranch2.yml b/prime-router/metadata/HL7/v251-elr/hl7/datatypes/PL_ELR/LocationBranch2.yml deleted file mode 100644 index 5910216e119..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/PL_ELR/LocationBranch2.yml +++ /dev/null @@ -1,151 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Location - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -identifier: - generateList: true - expressionType: nested - vars: - pl1: STRING_ALL, PL.1 - pl8: STRING_ALL, PL.8 - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - expressions: - - expressionType: nested - condition: $pl1 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.1 - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.1 - - expressionType: nested - condition: $pl1 NULL && $pl8 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.8 - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.8 - - expressionType: nested - condition: $pl1 NULL && $pl8 NULL && $pl7 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.7 - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.7 - - expressionType: nested - condition: $pl1 NULL && $pl8 NULL && $pl7 NULL && $pl4 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.4 - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.4 - - - -physicalType: - expressionType: nested - vars: - pl1: STRING_ALL, PL.1 - pl8: STRING_ALL, PL.8 - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - constants: - system: "http://terminology.hl7.org/CodeSystem/location-physical-type" - expressions: - - expressionType: nested - expressionsMap: - coding: - expressionType: nested - generateList: true - expressions: - - expressionType: nested - expressionsMap: - _code: - expressionType: nested - expressionsMap: - extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: location-physical-type-poc - valueString: - value: "poc" - system: - type: STRING - value: "http://terminology.hl7.org/CodeSystem/location-physical-type" - condition: $pl1 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "lvl" - system: - valueOf: $system - condition: $pl1 NULL && $pl8 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "bu" - system: - valueOf: $system - condition: $pl1 NULL && $pl8 NULL && $pl7 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "si" - system: - valueOf: $system - condition: $pl1 NULL && $pl8 NULL && $pl7 NULL && $pl4 NOT_NULL - - -partOf: - expressionType: nested - vars: - pl1: STRING_ALL, PL.1 - pl8: STRING_ALL, PL.8 - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - condition: $pl1 NOT_NULL || $pl8 NOT_NULL || $pl7 NOT_NULL - expressions: - - expressionType: reference - condition: $pl8 NOT_NULL #PL8 - valueOf: datatypes/PL_ELR/LocationBranch3 - specs: $BASE_VALUE - - expressionType: reference - condition: $pl8 NULL && $pl7 NOT_NULL #PL7 - valueOf: datatypes/PL_ELR/LocationBranch4 - specs: $BASE_VALUE - - expressionType: reference - condition: $pl8 NULL && $pl7 NULL && $pl4 NOT_NULL #PL4 - valueOf: datatypes/PL_ELR/LocationBranch5 - specs: $BASE_VALUE \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/PL_ELR/LocationBranch3.yml b/prime-router/metadata/HL7/v251-elr/hl7/datatypes/PL_ELR/LocationBranch3.yml deleted file mode 100644 index df25fb43437..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/PL_ELR/LocationBranch3.yml +++ /dev/null @@ -1,110 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Location - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -identifier: - generateList: true - expressionType: nested - vars: - pl8: STRING_ALL, PL.8 - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - expressions: - - expressionType: nested - condition: $pl8 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.8 - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.8 - - expressionType: nested - condition: $pl8 NULL && $pl7 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.7 - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.7 - - expressionType: nested - condition: $pl8 NULL && $pl7 NULL && $pl4 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.4 - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.4 - - - -physicalType: - expressionType: nested - vars: - pl8: STRING_ALL, PL.8 - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - constants: - system: "http://terminology.hl7.org/CodeSystem/location-physical-type" - expressions: - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "lvl" - system: - valueOf: $system - condition: $pl8 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "bu" - system: - valueOf: $system - condition: $pl8 NULL && $pl7 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "si" - system: - valueOf: $system - condition: $pl8 NULL && $pl7 NULL && $pl4 NOT_NULL - - -partOf: - expressionType: nested - vars: - pl8: STRING_ALL, PL.8 - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - condition: $pl8 NOT_NULL || $pl7 NOT_NULL - expressions: - - expressionType: reference - condition: $pl7 NOT_NULL #PL7 - valueOf: datatypes/PL_ELR/LocationBranch4 - specs: $BASE_VALUE - - expressionType: reference - condition: $pl7 NULL && $pl4 NOT_NULL #PL4 - valueOf: datatypes/PL_ELR/LocationBranch5 - specs: $BASE_VALUE \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/PL_ELR/LocationBranch4.yml b/prime-router/metadata/HL7/v251-elr/hl7/datatypes/PL_ELR/LocationBranch4.yml deleted file mode 100644 index 562ca527bc5..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/PL_ELR/LocationBranch4.yml +++ /dev/null @@ -1,82 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Location - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -identifier: - generateList: true - expressionType: nested - vars: - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - expressions: - - expressionType: nested - condition: $pl7 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.7 - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.7 - - expressionType: nested - condition: $pl7 NULL && $pl4 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.4 - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.4 - - - -physicalType: - expressionType: nested - vars: - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - constants: - system: "http://terminology.hl7.org/CodeSystem/location-physical-type" - expressions: - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "bu" - system: - valueOf: $system - condition: $pl7 NOT_NULL - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "si" - system: - valueOf: $system - condition: $pl7 NULL && $pl4 NOT_NULL - - -partOf: - expressionType: nested - vars: - pl7: STRING_ALL, PL.7 - pl4: STRING_ALL, PL.4 - condition: $pl7 NOT_NULL - expressions: - - expressionType: reference - condition: $pl4 NOT_NULL - valueOf: datatypes/PL_ELR/LocationBranch5 - specs: $BASE_VALUE \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/PL_ELR/LocationBranch5.yml b/prime-router/metadata/HL7/v251-elr/hl7/datatypes/PL_ELR/LocationBranch5.yml deleted file mode 100644 index 28a80563c95..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/PL_ELR/LocationBranch5.yml +++ /dev/null @@ -1,46 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Location - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -identifier: - generateList: true - expressionType: nested - vars: - pl4: STRING_ALL, PL.4 - expressions: - - expressionType: nested - condition: $pl4 NOT_NULL - generateList: true - expressions: - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierNamespaceId - specs: PL.4 - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Identifier/IdentifierUniversalId - specs: PL.4 - - -physicalType: - expressionType: nested - vars: - pl4: STRING_ALL, PL.4 - constants: - system: "http://terminology.hl7.org/CodeSystem/location-physical-type" - expressions: - - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: "si" - system: - valueOf: $system - condition: $pl4 NOT_NULL - diff --git a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/PRL_ELR/Extension.yml b/prime-router/metadata/HL7/v251-elr/hl7/datatypes/PRL_ELR/Extension.yml deleted file mode 100644 index 4161e1ac46e..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/PRL_ELR/Extension.yml +++ /dev/null @@ -1,46 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - type: STRING - valueOf: $prlExtensionName - -extension: - generateList: true - expressionType: nested - expressions: - - vars: - prl1: STRING_ALL, PRL.1 - condition: $prl1 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: prl-1-parent-observation-identifier - valueCodeableConcept: - valueOf: datatypes/CWE_ELR/CodeableConcept - expressionType: resource - specs: PRL.1 - - vars: - prl2: STRING, PRL.2 - condition: $prl2 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: prl-2-parent-observation-sub-identifier - valueString: - type: STRING - expressionType: HL7Spec - valueOf: PRL.2 - - vars: - prl3: STRING, PRL.3 - condition: $prl3 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: prl-3-parent-observation-descriptor - valueString: - type: STRING - expressionType: HL7Spec - valueOf: PRL.3 diff --git a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/XPN_ELR/HumanName.yml b/prime-router/metadata/HL7/v251-elr/hl7/datatypes/XPN_ELR/HumanName.yml deleted file mode 100644 index b8ff6390f66..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/XPN_ELR/HumanName.yml +++ /dev/null @@ -1,102 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: HumanName - -family: - type: STRING - valueOf: XPN.1.1 - expressionType: HL7Spec -_family: - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/FN/ExtensionHumanName-family - specs: XPN.1 - -given: - generateList: true - expressionType: nested - expressions: - - expressionType: HL7Spec - valueOf: XPN.2 - type: STRING - - expressionType: HL7Spec - valueOf: XPN.3 - type: STRING -suffix: - generateList: true - expressionType: nested - expressions: - - expressionType: HL7Spec - valueOf: XPN.4 - type: STRING - - expressionType: HL7Spec - valueOf: XPN.6 - type: STRING - - expressionType: HL7Spec - valueOf: XPN.14 - type: STRING -prefix: - type: STRING - valueOf: XPN.5 - expressionType: HL7Spec -use: - type: NAME_USE - valueOf: XPN.7 - expressionType: HL7Spec - -extension_AssemblyOrder: - vars: - xpn11: String, XPN.11 - condition: $xpn11 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: humanname-assembly-order - valueCode: - type: STRING - valueOf: XPN.11 - expressionType: HL7Spec - -# XPN.10 is deprecated so the schema favors using XPN.12/13 if either are populated -period_2: - vars: - xpn12: String, XPN.12 - xpn13: String, XPN.13 - condition: $xpn12 NOT_NULL || $xpn13 NOT_NULL - expressionType: nested - expressionsMap: - start: - valueOf: "GeneralUtils.dateTimeWithZoneId(periodStart,ZONEID)" - expressionType: JEXL - vars: - periodStart: XPN.12 - end: - valueOf: "GeneralUtils.dateTimeWithZoneId(periodEnd,ZONEID)" - expressionType: JEXL - vars: - periodEnd: XPN.13 - -extension: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - condition: $hl7v2Field NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - type: STRING - valueOf: $hl7v2Field - - expressionType: nested - condition: $hl7v2Component NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Component - valueString: - type: STRING - valueOf: $hl7v2Component - - expressionType: resource - valueOf: datatypes/XPN_ELR/XPNExtension \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/XPN_ELR/XPNExtension.yml b/prime-router/metadata/HL7/v251-elr/hl7/datatypes/XPN_ELR/XPNExtension.yml deleted file mode 100644 index 0ce0896b37c..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/datatypes/XPN_ELR/XPNExtension.yml +++ /dev/null @@ -1,121 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - type: SYSTEM_URL - valueOf: xpn-human-name - -extension: - vars: - xpn2: String, XPN.2 - xpn3: String, XPN.3 - xpn4: String, XPN.4 - xpn6: String, XPN.6 - xpn7: String, XPN.7 - xpn8: String, XPN.8 - xpn9: STRING_ALL, XPN.9 - xpn12: String, XPN.12 - xpn13: String, XPN.13 - xpn14: String, XPN.14 - expressionType: nested - generateList: true - expressions: - - expressionType: nested - condition: $xpn2 NOT_NULL - expressionsMap: - url: - type: STRING - valueOf: XPN.2 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: XPN.2 - - expressionType: nested - condition: $xpn3 NOT_NULL - expressionsMap: - url: - type: STRING - valueOf: XPN.3 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: XPN.3 - - expressionType: nested - condition: $xpn4 NOT_NULL - expressionsMap: - url: - type: STRING - valueOf: XPN.4 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: XPN.4 - - expressionType: nested - condition: $xpn6 NOT_NULL - expressionsMap: - url: - type: STRING - valueOf: XPN.6 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: XPN.6 - - expressionType: nested - condition: $xpn7 NOT_NULL - expressionsMap: - url: - type: STRING - valueOf: XPN.7 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: XPN.7 - - expressionType: nested - condition: $xpn8 NOT_NULL - expressionsMap: - url: - type: STRING - valueOf: XPN.8 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: XPN.8 - - expressionType: nested - condition: $xpn9 NOT_NULL - expressionsMap: - url: - type: STRING - value: XPN.9 - valueCodeableConcept: - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - expressionType: resource - specs: XPN.9 - - expressionType: nested - condition: $xpn12 NOT_NULL - expressionsMap: - url: - type: STRING - value: XPN.12 - valueString: - type: STRING - valueOf: $xpn12 - expressionType: HL7Spec - - expressionType: nested - condition: $xpn13 NOT_NULL - expressionsMap: - url: - type: STRING - value: XPN.13 - valueString: - type: STRING - valueOf: $xpn13 - expressionType: HL7Spec - - expressionType: nested - condition: $xpn14 NOT_NULL - expressionsMap: - url: - type: STRING - valueOf: XPN.14 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: XPN.14 \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/extension/ExtensionHierarchicDesignator.yml b/prime-router/metadata/HL7/v251-elr/hl7/extension/ExtensionHierarchicDesignator.yml deleted file mode 100644 index d463f931b52..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/extension/ExtensionHierarchicDesignator.yml +++ /dev/null @@ -1,69 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - condition: $urlValue NOT_NULL - type: SYSTEM_URL - valueOf: $urlValue - -extension_1-namespaceId: - condition: $value NOT_NULL - generateList: true - valueOf: extension/Extension - expressionType: resource - vars: - value: String, HD.1 - constants: - KEY_NAME_SUFFIX: String - urlValue: namespace-id - -extension_2-universalIdISO: - generateList: true - valueOf: extension/Extension - expressionType: resource - condition: $idStr NOT_NULL && $universalIdType EQUALS ISO - vars: - idStr: String, HD.2 - value: $urlPrefix + HD.2 - universalIdType: String, HD.3 - constants: - urlPrefix: "urn:oid:" - KEY_NAME_SUFFIX: Oid - urlValue: universal-id - -extension_3-universalIdUUID: - generateList: true - valueOf: extension/Extension - expressionType: resource - condition: $idStr NOT_NULL && $universalIdType EQUALS UUID - vars: - idStr: String, HD.2 - value: $urlPrefix + HD.2 - universalIdType: String, HD.3 - constants: - urlPrefix: "urn:uuid:" - KEY_NAME_SUFFIX: Uuid - urlValue: universal-id - -extension_4-universalIdNullType: - generateList: true - valueOf: extension/Extension - expressionType: resource - condition: $value NOT_NULL && $universalIdType NULL - vars: - value: String, HD.2 - universalIdType: String, HD.3 - constants: - KEY_NAME_SUFFIX: String - urlValue: universal-id - -extension_5-universalIdUnknownType: - generateList: true - valueOf: extension/Extension - expressionType: resource - condition: $value NOT_NULL && $universalIdType NOT_EQUALS ISO && $universalIdType NOT_EQUALS UUID - vars: - value: String, HD.2 - universalIdType: String, HD.3 - constants: - KEY_NAME_SUFFIX: String - urlValue: universal-id diff --git a/prime-router/metadata/HL7/v251-elr/hl7/extension/ExtensionMeta.yml b/prime-router/metadata/HL7/v251-elr/hl7/extension/ExtensionMeta.yml deleted file mode 100644 index 89f4dff7db3..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/extension/ExtensionMeta.yml +++ /dev/null @@ -1,74 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -security: - condition: $code NOT_NULL - valueOf: datatype/Coding - expressionType: resource - vars: - code: MSH.8 - display: MSH.8 - -tag_1: - condition: $code NOT_NULL - valueOf: datatype/Coding - generateList: true - expressionType: resource - vars: - code: MSH.11.1 - constants: - system: v2-0103 - -tag_2: - condition: $code NOT_NULL - valueOf: datatype/Coding - generateList: true - expressionType: resource - vars: - code: MSH.11.2 - constants: - system: v2-0207 - -extension_1: - generateList: true - valueOf: extension/Extension - expressionType: resource - vars: - value: String, MSH.12.1 - constants: - KEY_NAME_SUFFIX: String - urlValue: source-data-model-version - -# Patient las update facility universal ID -extension_2: - generateList: true - valueOf: extension/Extension - expressionType: resource - condition: $idStr NOT_NULL && $systemStr EQUALS ISO - vars: - idStr: String, PID.34.2 - value: $oidUrlPrefix + PID.34.2 - systemStr: String, PID.34.3 - constants: - oidUrlPrefix: "urn:oid:" - KEY_NAME_SUFFIX: Oid - urlValue: last-updated-facility-universal-id - -# Patient las update facility namespace -extension_3: - generateList: true - valueOf: extension/Extension - expressionType: resource - condition: $value NOT_NULL - vars: - value: String, PID.34.1 - constants: - KEY_NAME_SUFFIX: String - urlValue: last-updated-facility-namespace-id - -# Patient last updated -lastUpdated: - type: STRING - valueOf: "GeneralUtils.dateTimeWithZoneId(dateTimeIn,ZONEID)" - expressionType: JEXL - vars: - dateTimeIn: PID.33 diff --git a/prime-router/metadata/HL7/v251-elr/hl7/message/ORU_R01.yml b/prime-router/metadata/HL7/v251-elr/hl7/message/ORU_R01.yml deleted file mode 100644 index cfe8c0da75e..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/message/ORU_R01.yml +++ /dev/null @@ -1,99 +0,0 @@ -# $schema: ./../../../../json_schema/fhir/hl7-to-fhir-mapping-message-template.json - -resources: - - - resourceName: MessageHeader - segment: MSH - resourcePath: segments/MSH/MessageHeader - repeats: false - isReferenced: true - - - resourceName: Provenance - segment: MSH - resourcePath: segments/MSH/Provenance-Source - - - resourceName: Provenance - segment: MSH - resourcePath: segments/MSH/Provenance-Transformation - - - resourceName: Patient - segment: .PID - group: PATIENT_RESULT.PATIENT - resourcePath: segments/PID/Patient - isReferenced: true - additionalSegments: - - .PD1 - - MSH - - .NTE - - .NK1 - - - resourceName: Provenance - group: PATIENT_RESULT.PATIENT - segment: .PID - resourcePath: segments/PID/Provenance-Patient - - - resourceName: RelatedPerson - segment: .NK1 - group: PATIENT_RESULT.PATIENT - resourcePath: segments/NK1/RelatedPerson - isReferenced: false - repeats: true - - - resourceName: Encounter - segment: .VISIT.PV1 - group: PATIENT_RESULT.PATIENT - resourcePath: segments/PV1/Encounter - isReferenced: true - additionalSegments: - - .PATIENT.VISIT.PV2 - - MSH - - - resourceName: Observation - segment: .ORDER_OBSERVATION.OBSERVATION.OBX - group: PATIENT_RESULT.ORDER_OBSERVATION - resourcePath: segments/OBX/Observation - repeats: true - isReferenced: true - additionalSegments: - - .OBSERVATION.NTE - - .SPECIMEN.SPM - - - resourceName: SpecimenSource - segment: .OBR - group: PATIENT_RESULT.ORDER_OBSERVATION - resourcePath: segments/ORC/Specimen - isReferenced: true - repeats: true - - - resourceName: Specimen - segment: .SPECIMEN.SPM - group: PATIENT_RESULT.ORDER_OBSERVATION - resourcePath: segments/SPM/Specimen - repeats: true - isReferenced: true - - # PATIENT_RESULT.ORDER_OBSERVATION.SPECIMEN.SPECIMEN_OBSERVATION.OBX provides access for v2.7 - # PATIENT_RESULT.ORDER_OBSERVATION.SPECIMEN.OBX provides access for v2.5.1 - - resourceName: SpecimenObservation - segment: .SPECIMEN.SPECIMEN_OBSERVATION.OBX - group: PATIENT_RESULT.ORDER_OBSERVATION - resourcePath: segments/OBX/Observation - repeats: true - - - resourceName: ServiceRequest - segment: .OBR - group: PATIENT_RESULT.ORDER_OBSERVATION - resourcePath: segments/ORC/ServiceRequest - repeats: true - isReferenced: true - additionalSegments: - - .NTE - - .ORC - - - resourceName: DiagnosticReport - segment: .OBR - group: PATIENT_RESULT.ORDER_OBSERVATION - resourcePath: segments/ORC/DiagnosticReport - repeats: true - additionalSegments: - - .ORC diff --git a/prime-router/metadata/HL7/v251-elr/hl7/resource/Common.yml b/prime-router/metadata/HL7/v251-elr/hl7/resource/Common.yml deleted file mode 100644 index 0589b715d7d..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/resource/Common.yml +++ /dev/null @@ -1,4 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -# This file exists to override what is provided in the hl7v2-converter library -# as there are no common elements currently that should get added to every FHIR resource \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/MSHExtension.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/MSHExtension.yml deleted file mode 100644 index ac46be1bfe7..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/MSHExtension.yml +++ /dev/null @@ -1,119 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - type: SYSTEM_URL - value: msh-message-header - -extension: - expressionType: nested - generateList: true - expressions: - - expressionType: nested - vars: - msh7: MSH.7 - condition: $msh7 NOT_NULL - expressionsMap: - url: - type: STRING - value: MSH.7 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: MSH.7 - - expressionType: nested - vars: - msh10: MSH.10 - condition: $msh10 NOT_NULL - expressionsMap: - url: - type: STRING - value: MSH.10 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: MSH.10 - - expressionType: nested - vars: - msh13: MSH.13 - condition: $msh13 NOT_NULL - expressionsMap: - url: - type: STRING - value: MSH.13 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: MSH.13 - - expressionType: nested - vars: - msh14: MSH.14 - condition: $msh14 NOT_NULL - expressionsMap: - url: - type: STRING - value: MSH.14 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: MSH.14 - - condition: $msh15 NOT_NULL - expressionType: nested - vars: - msh15: MSH.15 - expressionsMap: - url: - type: STRING - value: MSH.15 - valueString: - valueOf: MSH.15 - expressionType: HL7Spec - type: STRING - - condition: $msh16 NOT_NULL - expressionType: nested - vars: - msh16: MSH.16 - expressionsMap: - url: - type: STRING - value: MSH.16 - valueString: - type: STRING - valueOf: MSH.16 - expressionType: HL7Spec - - vars: - msh19: STRING_ALL, MSH.19 - condition: $msh19 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: MSH.19 - valueCodeableConcept: - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - specs: MSH.19 - - vars: - msh20: MSH.20 - condition: $msh20 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: MSH.20 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: MSH.20 - - expressionType: nested - vars: - $msh21: STRING_ALL, MSH.21 - condition: $msh21 NOT_NULL - generateList: true - specs: MSH.21 * - expressionsMap: - url: - type: STRING - value: MSH.21 - valueIdentifier: - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier - expressionType: resource diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/MessageHeader.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/MessageHeader.yml deleted file mode 100644 index 98a4383c669..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/MessageHeader.yml +++ /dev/null @@ -1,116 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: MessageHeader - -id: - type: NAMED_UUID - valueOf: MSH.10 - expressionType: HL7Spec - -eventCoding: - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/MSG/Coding - specs: MSH.9 - required: true - -meta: - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/PT/Meta - specs: MSH.11 - vars: - metaSecurity: STRING, MSH.8 - -source: - expressionType: nested - vars: - msh3: STRING_ALL, MSH.3 - expressions: - - constants: - messageHeaderSourceField: MSH.3 - condition: $msh3 NOT_NULL - valueOf: segments/MSH/datatypes/HD/Source - expressionType: resource - specs: MSH.3 - -sender: - condition: $msh4 NOT_NULL || $organizationCountry NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Organization - expressionType: reference - generateList: true - specs: MSH.4 - vars: - organizationCountry: MSH.17 - msh4: STRING_ALL, MSH.4 - -destination: - vars: - msh6: MSH.6 - msh5: STRING_ALL, MSH.5 - expressionType: nested - generateList: true - expressions: - - constants: - messageHeaderDestinationField: MSH.5 - condition: $msh5 NOT_NULL - expressionType: resource - valueOf: segments/MSH/datatypes/HD/Destination - specs: MSH.5 - - expressionType: nested - condition: $msh6 NOT_NULL && $msh5 NULL - constants: - hdOrganizationHL7Field: MSH.6 - expressionsMap: - receiver: - expressionType: reference - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Organization - specs: MSH.6 - -language: - vars: - cwe1: MSH.19.1 - expressionType: nested - expressions: - - condition: $cwe1 NOT_NULL - valueOf: MSH.19.1 - type: STRING - expressionType: HL7Spec - - condition: $cwe1 NULL - valueOf: MSH.19.4 - type: STRING - expressionType: HL7Spec - -# MSH.10 is captured in Bundle.Identifier -# MSH.12 is hardcoded to 2.5.1 -extension_messageHeader: - generateList: true - expressionType: nested - expressions: - - condition: $msh2 NOT_NULL && $msh2 EQUALS_STRING ^~\&# - expressionType: nested - vars: - msh2: String, MSH.2 - expressionsMap: - url: - type: SYSTEM_URL - value: encoding-characters - valueString: - type: STRING - valueOf: MSH.2 - expressionType: HL7Spec - - condition: $msh18 NOT_NULL - expressionType: nested - vars: - msh18: STRING_ALL, MSH.18 - specs: MSH.18 * - generateList: true - expressionsMap: - url: - type: SYSTEM_URL - value: character-set - valueString: - generateList: true - type: STRING - valueOf: $BASE_VALUE - expressionType: HL7Spec - - expressionType: resource - valueOf: segments/MSH/MSHExtension diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/Provenance-Source.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/Provenance-Source.yml deleted file mode 100644 index 5fa2ff64eba..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/Provenance-Source.yml +++ /dev/null @@ -1,78 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Provenance -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -target: - valueOf: datatype/Reference - generateList: true - expressionType: resource - specs: $MessageHeader - -agent: - expressionType: nested - generateList: true - vars: - msh4: STRING_ALL, MSH.4 - expressions: - - condition: $msh4 NOT_NULL - expressionType: nested - expressionsMap: - type: - expressionType: nested - expressionsMap: - coding: - expressionType: nested - expressionsMap: - code: - type: STRING - valueOf: "author" - system: - type: SYSTEM_URL - valueOf: "http://terminology.hl7.org/CodeSystem/provenance-participant-type" - who: - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Organization - expressionType: reference - specs: MSH.4 - -recorded: - type: STRING - valueOf: "GeneralUtils.dateTimeWithZoneId(dateTimeIn,ZONEID)" - expressionType: JEXL - vars: - dateTimeIn: MSH.7 - -activity: - expressionType: nested - constants: - caret: "^" - vars: - msg1: String, MSH.9.1 - msg2: String, MSH.9.2 - msg3: String, MSH.9.3 - expressionsMap: - coding: - expressionType: nested - vars: - displayValue: $msg1 + $caret + $msg2 + $caret + $msg3 - expressionsMap: - display: - type: STRING - valueOf: $displayValue - -entity: - condition: $sft NOT_NULL - vars: - sft: SFT - expressionType: nested - expressionsMap: - what: - expressionType: reference - valueOf: segments/SFT/Device - specs: SFT - role: - type: STRING - value: "source" diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/Provenance-Transformation.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/Provenance-Transformation.yml deleted file mode 100644 index 7bc6d2a3f7b..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/Provenance-Transformation.yml +++ /dev/null @@ -1,46 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Provenance -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -activity: - expressionType: nested - expressionsMap: - coding: - expressionType: nested - expressionsMap: - code: - type: STRING - valueOf: "v2-FHIR transformation" - -recorded: - type: STRING - valueOf: "GeneralUtils.getCurrentDateTimeUsingZoneId(ZONEID)" - expressionType: JEXL - -policy: - type: SYSTEM_URL - valueOf: "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" - -agent: - expressionType: nested - generateList: true - expressionsMap: - type: - expressionType: nested - expressionsMap: - coding: - expressionType: nested - expressionsMap: - code: - type: STRING - valueOf: "assembler" - system: - type: SYSTEM_URL - valueOf: "http://terminology.hl7.org/CodeSystem/provenance-participant-type" - who: - valueOf: segments/MSH/ReportStreamOrganization - expressionType: reference diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/ReportStreamOrganization.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/ReportStreamOrganization.yml deleted file mode 100644 index 792dc695f38..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/ReportStreamOrganization.yml +++ /dev/null @@ -1,32 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Organization - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -identifier_1: - expressionType: nested - generateList: true - expressionsMap: - value_1: - type: STRING - valueOf: "CDC PRIME - Atlanta" - -identifier_2: - expressionType: nested - generateList: true - expressionsMap: - value: - type: STRING - valueOf: "2.16.840.1.114222.4.1.237821" - type: - valueOf: ../../datatypes/v251/hl7/datatypes/ID/CodeableConceptUniversalid - generateList: true - expressionType: resource - specs: "ISO" - system: - type: STRING - valueOf: "urn:ietf:rfc:3986" diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/datatypes/HD/Destination.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/datatypes/HD/Destination.yml deleted file mode 100644 index 94dc8e4e998..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/datatypes/HD/Destination.yml +++ /dev/null @@ -1,85 +0,0 @@ -# $schema: ./../../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -name: - type: STRING - expressionType: HL7Spec - valueOf: HD.1 - -endpoint: - vars: - hd2: STRING, HD.2 - hd3: STRING, HD.3 - constants: - oidUrlPrefix: "urn:oid:" - uuidUrlPrefix: "urn:uuid:" - expressionType: nested - expressions: - - condition: $hd2 NOT_NULL && $hd3 EQUALS ISO - vars: - endpointValue: $oidUrlPrefix + $hd2 - type: STRING - valueOf: $endpointValue - - condition: $hd2 NOT_NULL && $hd3 EQUALS UUID - vars: - endpointValue: $uuidUrlPrefix + $hd2 - type: STRING - valueOf: $endpointValue - -_endpoint: - vars: - hd3: STRING, HD.3 - expressionType: nested - condition: $hd3 NULL - expressionsMap: - extension: - expressionType: nested - generateList: true - expressionsMap: - url: - type: SYSTEM_URL - value: data-absent-reason - valueCode: - value: "unknown" - -receiver: - vars: - msh6: MSH.6 - expressionType: nested - expressions: - - condition: $msh6 NOT_NULL - expressionType: reference - specs: $msh6 - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Organization - constants: - hdOrganizationHL7Field: MSH.6 - - -extension: - expressionType: nested - generateList: true - expressions: - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: universal-id - valueString: - type: STRING - valueOf: HD.2 - expressionType: HL7Spec - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: universal-id-type - valueString: - type: STRING - valueOf: HD.3 - expressionType: HL7Spec - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - valueOf: $messageHeaderDestinationField \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/datatypes/HD/Source.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/datatypes/HD/Source.yml deleted file mode 100644 index 69b36aff412..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/datatypes/HD/Source.yml +++ /dev/null @@ -1,139 +0,0 @@ -# $schema: ./../../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -# Only populate name if HD.2 is not populated or it is populated and -# HD.3 is not ISO, UUID, DNS, URI -name: - vars: - hd1: STRING, HD.1 - hd2: STRING, HD.2 - hd3: STRING, HD.3 - constants: - dash: "-" - colon: ":" - expressionType: nested - expressions: - - condition: $hd2 NULL - type: STRING - valueOf: HD.1 - expressionType: HL7Spec - - condition: $hd2 NOT_NULL - expressionType: nested - vars: - nameValue: $hd1 + $dash + $hd3 + $colon + $hd2 - expressions: - - condition: $hd3 NOT_EQUALS ISO && $hd3 NOT_EQUALS UUID && $hd3 NOT_EQUALS DNS && $hd3 NOT_EQUALS URI - type: STRING - value: $nameValue - -endpoint: - vars: - hd2: STRING, HD.2 - hd3: STRING, HD.3 - constants: - oidUrlPrefix: "urn:oid:" - uuidUrlPrefix: "urn:uuid:" - dnsUrlPrefix: "urn:dns:" - uriUrlPrefix: "urn:uri:" - expressionType: nested - expressions: - - condition: $hd2 NOT_NULL && $hd3 EQUALS ISO - vars: - endpointValue: $oidUrlPrefix + $hd2 - type: STRING - valueOf: $endpointValue - - condition: $hd2 NOT_NULL && $hd3 EQUALS UUID - vars: - endpointValue: $uuidUrlPrefix + $hd2 - type: STRING - valueOf: $endpointValue - - condition: $hd2 NOT_NULL && $hd3 EQUALS DNS - vars: - endpointValue: $dnsUrlPrefix + $hd2 - type: STRING - valueOf: $endpointValue - - condition: $hd2 NOT_NULL && $hd3 EQUALS URI - vars: - endpointValue: $uriUrlPrefix + $hd2 - type: STRING - valueOf: $endpointValue - -_endpoint: - vars: - hd3: STRING, HD.3 - expressionType: nested - expressions: - - expressionType: nested - condition: $hd3 NULL - expressionsMap: - extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: data-absent-reason - valueCode: - value: "unknown" - - expressionType: nested - condition: $hd3 NOT_EQUALS ISO && $hd3 NOT_EQUALS UUID && $hd3 NOT_EQUALS DNS && $hd3 NOT_EQUALS URI - expressionsMap: - extension: - expressionType: nested - generateList: true - expressionsMap: - url: - type: SYSTEM_URL - value: data-absent-reason - valueCode: - value: "unknown" - - -software: - expressionType: HL7Spec - type: STRING - valueOf: SFT.3 - -version: - expressionType: HL7Spec - type: STRING - valueOf: SFT.2 - -extension: - expressionType: nested - generateList: true - expressions: - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: namespace-id - valueString: - type: STRING - valueOf: HD.1 - expressionType: HL7Spec - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: universal-id - valueString: - type: STRING - valueOf: HD.2 - expressionType: HL7Spec - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: universal-id-type - valueString: - type: STRING - valueOf: HD.3 - expressionType: HL7Spec - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - valueOf: $messageHeaderSourceField - type: STRING diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/segments/SFT/Source.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/segments/SFT/Source.yml deleted file mode 100644 index 15d0404410d..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/MSH/segments/SFT/Source.yml +++ /dev/null @@ -1,77 +0,0 @@ -# $schema: ./../../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -_endpoint: - expressionType: nested - expressionsMap: - extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: data-absent-reason - valueCode: - value: "unknown" - -software: - expressionType: HL7Spec - type: STRING - valueOf: SFT.3 - -version: - expressionType: HL7Spec - type: STRING - valueOf: SFT.2 - -extension: - expressionType: nested - generateList: true - expressions: - - expressionType: nested - vars: - sft4: STRING, SFT.4 - condition: $sft4 NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: software-binary-id - valueString: - type: STRING - expressionType: HL7Spec - valueOf: SFT.4 - - vars: - sft5: STRING, SFT.5 - condition: $sft5 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: source-software-description - valueString: - type: STRING - expressionType: HL7Spec - valueOf: SFT.5 - - expressionType: nested - vars: - sft6: STRING, SFT.6 - condition: $sft6 NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: software-install-date - valueString: - type: STRING - expressionType: HL7Spec - valueOf: SFT.6 - - expressionType: nested - vars: - sft1: STRING_ALL, SFT.1 - condition: $sft1 NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: software-vendor-org - valueReference: - valueOf: ../../datatypes/v251/hl7/datatypes/XON/Organization - expressionType: reference - specs: SFT.1 \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/NK1/NK1Extension.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/NK1/NK1Extension.yml deleted file mode 100644 index 171d63a8b49..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/NK1/NK1Extension.yml +++ /dev/null @@ -1,21 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - type: SYSTEM_URL - value: nk1-related-person - -extension: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - generateList: true - condition: $nk1-13 NOT_NULL - specs: NK1.13 * - expressionsMap: - url: - type: STRING - value: NK1.13 - valueReference: - valueOf: ../../datatypes/v251/hl7/datatypes/XON/Organization - expressionType: reference \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/NK1/RelatedPerson.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/NK1/RelatedPerson.yml deleted file mode 100644 index 8fdfaaaf634..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/NK1/RelatedPerson.yml +++ /dev/null @@ -1,155 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: RelatedPerson - -# Not implementing NK1.6: not in mapping, not in NIST -# Not implementing NK1.7: not in mapping, not in NIST -# Not implementing NK1.8: not in mapping, not in NIST -# Not implementing NK1.9: not in mapping, not in NIST -# Not implementing NK1.10: not in mapping, not in NIST -# Not implementing NK1.11: not in mapping, not in NIST -# Not implementing NK1.12: not in mapping, not in NIST -# Not implementing NK1.14: not in mapping, not in NIST -# Not implementing NK1.15: not in mapping, not in NIST -# Not implementing NK1.16: not in mapping, not in NIST -# Not implementing NK1.17: not in mapping, not in NIST -# Not implementing NK1.18: not in mapping, not in NIST -# Not implementing NK1.19: not in mapping, not in NIST -# Not implementing NK1.21: not in mapping, not in NIST -# Not implementing NK1.22: not in mapping, not in NIST -# Not implementing NK1.23: not in mapping, not in NIST -# Not implementing NK1.24: not in mapping, not in NIST -# Not implementing NK1.25: not in mapping, not in NIST -# Not implementing NK1.26: not in mapping, not in NIST -# Not implementing NK1.27: not in mapping, not in NIST -# Not implementing NK1.28: not in mapping, not in NIST -# Not implementing NK1.29: not in mapping, not in NIST -# Not implementing NK1.33: not in mapping, not in NIST -# Not implementing NK1.34: not in mapping, not in NIST -# Not implementing NK1.35: not in mapping, not in NIST -# Not implementing NK1.36: not in mapping, not in NIST -# Not implementing NK1.37: not in mapping, not in NIST -# Not implementing NK1.38: not in mapping, not in NIST -# Not implementing NK1.39: not in mapping, not in NIST -# Not implementing NK1.40: not in mapping, not in NIST -# Not implementing NK1.41: not in mapping, not in NIST - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -patient: - valueOf: datatype/Reference - expressionType: resource - specs: $Patient - useGroup: true - -name: - expressionType: nested - generateList: true - expressions: - - valueOf: datatypes/XPN_ELR/HumanName - expressionType: resource - condition: $nk1-2 NOT_NULL - generateList: true - vars: - nk1-2: NK1.2 - specs: NK1.2 * - constants: - hl7v2Field: "NK1.2" - - valueOf: datatypes/XPN_ELR/HumanName - expressionType: resource - condition: $nk1-30 NOT_NULL - generateList: true - vars: - nk1-30: NK1.30 - specs: NK1.30 * - constants: - hl7v2Field: "NK1.30" - -relationship: - expressionType: nested - generateList: true - expressions: - - valueOf: datatypes/CWE_ELR/CodeableConcept - expressionType: resource - condition: $nk1-3 NOT_NULL - vars: - nk1-3: NK1.3 - specs: NK1.3 - constants: - hl7v2Field: "NK1.3" - -address: - expressionType: nested - generateList: true - expressions: - - valueOf: ../../datatypes/v251/hl7/datatypes/XAD/Address - generateList: true - expressionType: resource - condition: $nk1-4 NOT_NULL - vars: - nk1-4: NK1.4 - specs: NK1.4 * - constants: - hl7v2Field: "NK1.4" - - valueOf: ../../datatypes/v251/hl7/datatypes/XAD/Address - generateList: true - expressionType: resource - condition: $nk1-32 NOT_NULL - vars: - nk1-32: NK1.32 - specs: NK1.32 * - constants: - hl7v2Field: "NK1.32" - -telecom: - expressionType: nested - generateList: true - expressions: - - condition: $valueIn NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/XTN/ContactPoint - generateList: true - expressionType: resource - specs: NK1.5 * - vars: - valueIn: NK1.5 - constants: - hl7v2Field: "NK1.5" - - condition: $valueIn NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/XTN/ContactPoint - generateList: true - expressionType: resource - specs: NK1.31 * - vars: - valueIn: NK1.31 - constants: - hl7v2Field: "NK1.31" - -communication: - expressionType: nested - vars: - nk1-20: STRING_ALL, NK1.20 - condition: $nk1-20 NOT_NULL - expressionsMap: - language: - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - expressionType: resource - specs: NK1.20 - -extension: - expressionType: nested - generateList: true - vars: - nk1-13: STRING_ALL, NK1.13 - expressions: - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - valueOf: hl7v2Segment - valueString: - valueOf: 'NK1' - - expressionType: resource - valueOf: segments/NK1/NK1Extension \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/NTE/Annotation.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/NTE/Annotation.yml deleted file mode 100644 index 9ba009349ce..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/NTE/Annotation.yml +++ /dev/null @@ -1,44 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -text: - type: STRING - valueOf: NTE.3 - required: true - expressionType: HL7Spec - -extension_1-noteSource: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: note-source - valueId: - valueOf: NTE.2 - expressionType: HL7Spec - type: STRING - -extension_2-noteComment: - generateList: true - expressionType: nested - specs: NTE.3 * - expressionsMap: - url: - type: SYSTEM_URL - value: note-comment - valueId: - valueOf: FT - expressionType: HL7Spec - type: STRING - -extension_3-noteType: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: note-type - valueCodeableConcept: - valueOf: datatypes/CWE_ELR/CodeableConcept - expressionType: resource - specs: NTE.4 \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/OBX/Device.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/OBX/Device.yml deleted file mode 100644 index 64cb809a99d..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/OBX/Device.yml +++ /dev/null @@ -1,13 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Device - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -identifier: - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier - expressionType: resource - specs: $BASE_VALUE \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/OBX/OBXExtension.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/OBX/OBXExtension.yml deleted file mode 100644 index 527a0cabbdb..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/OBX/OBXExtension.yml +++ /dev/null @@ -1,115 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - type: SYSTEM_URL - value: obx-observation - -extension: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - vars: - obx2: STRING_ALL, OBX.2 - condition: $obx2 NOT_NULL - expressionsMap: - url: - value: OBX.2 - type: STRING - valueId: - type: STRING - expressionType: HL7Spec - valueOf: OBX.2 - - expressionType: nested - vars: - obx6: STRING_ALL, OBX.6 - condition: $obx6 NOT_NULL - expressionsMap: - url: - type: STRING - value: OBX.6 - valueCodeableConcept: - valueOf: datatypes/CWE_ELR/CodeableConcept - specs: OBX.6 - expressionType: resource - - expressionType: nested - vars: - obx9: STRING_ALL, OBX.9 - condition: $obx9 NOT_NULL - expressionsMap: - url: - value: OBX.9 - type: STRING - valueString: - type: STRING - expressionType: HL7Spec - valueOf: OBX.9 - - expressionType: nested - vars: - obx11: STRING_ALL, OBX.11 - condition: $obx11 NOT_NULL - expressionsMap: - url: - value: OBX.11 - type: STRING - valueString: - type: STRING - expressionType: HL7Spec - valueOf: OBX.11 - - expressionType: nested - vars: - obx12: STRING_ALL, OBX.12 - condition: $obx12 NOT_NULL - expressionsMap: - url: - value: OBX.12 - type: STRING - valueString: - type: STRING - expressionType: HL7Spec - valueOf: OBX.12 - - expressionType: nested - vars: - obx13: STRING_ALL, OBX.13 - condition: $obx13 NOT_NULL - expressionsMap: - url: - type: STRING - value: OBX.13 - valueString: - type: STRING - expressionType: HL7Spec - specs: OBX.13 - - expressionType: nested - vars: - obx17: STRING_ALL, OBX.17 - condition: $obx17 NOT_NULL - generateList: true - specs: OBX.17 * - expressionsMap: - url: - type: STRING - value: OBX.17 - valueCodeableConcept: - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - expressionType: resource - - expressionType: nested - vars: - obx18: STRING_ALL, OBX.18 - condition: $obx18 NOT_NULL - generateList: true - specs: OBX.18 * - expressionsMap: - url: - type: STRING - value: OBX.18 - valueReference: - valueOf: segments/OBX/Device - expressionType: reference - - - - - - - diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/OBX/Observation.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/OBX/Observation.yml deleted file mode 100644 index 76055d029f3..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/OBX/Observation.yml +++ /dev/null @@ -1,503 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Observation - -# Not implementing OBX.5 when OBX.2 is RP as the inventory say it still needs to be resolved -# Not implementing OBX.5 when OBX.2 is CF, the type does not exist in NIST and the mapping is wrong in the inventory -# Not implementing OBX.5 when OBX.2 is NA (Numeric Array), the inventory does not specify how that should map to SampledData -# OBX.17 is repeatable but maps to method on Observation which is not, so it's all captured in OBXExtension -# OBX.18 is repeatable but maps to device on Observation which is not, so it's all captured in OBXExtension -# Not implementing OBX.20 not in mapping deprecated in NIST -# Not implementing OBX.21 not in mapping deprecated in NIST -# Not implementing OBX.22 not in mapping deprecated in NIST -# Not implementing OBX.26 not in mapping not in NIST -# Not implementing OBX.27 not in mapping not in NIST -# Not implementing OBX.28 not in mapping not in NIST -# Not implementing OBX.29 not in mapping not in NIST -# Not implementing OBX.30 not in mapping not in NIST -# Not implementing OBX.31 not in mapping not in NIST -# Not implementing OBX.32 not in mapping not in NIST -# Not implementing OBX.33 as it's not in the NIST spec the logic in the inventory cannot be implemented in the library - - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -code: - vars: - obx3: STRING, OBX.3 - condition: $obx3 NOT_NULL - expressionType: resource - valueOf: datatypes/CWE_ELR/CodeableConcept - specs: OBX.3 - -valueString_obx: - vars: - obx2: STRING, OBX.2 - expressionType: nested - expressions: - - condition: $obx2 EQUALS ST || $obx2 EQUALS FT || $obx2 EQUALS TX - type: STRING_ALL - valueOf: OBX.5 - expressionType: HL7Spec - - condition: $obx2 EQUALS VR - vars: - vrValue: OBX.5.1 + $dash + OBX.5.2 - constants: - dash: "-" - type: STRING - valueOf: $vrValue - - condition: $obx2 EQUALS SN && $obx53 EQUALS + - vars: - obx53: STRING, OBX.5.3 - value: OBX.5.1 + $plus + OBX.5.2 + $plus + OBX.5.3 + $plus + OBX.5.4 - constants: - plus: "+" - type: STRING - valueOf: $value - -valueCodeableConcept: - expressionType: nested - vars: - obx2: STRING, OBX.2 - expressions: - - condition: $obx2 EQUALS CNE - valueOf: ../../datatypes/v251/hl7/datatypes/CNE/CodeableConcept - specs: OBX.5 - expressionType: resource - - condition: $obx2 EQUALS CWE - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - specs: OBX.5 - expressionType: resource - - condition: $obx2 EQUALS CE - valueOf: ../../datatypes/v251/hl7/datatypes/CE/CodeableConcept - specs: OBX.5 - expressionType: resource - - condition: $obx2 EQUALS IS - expressionType: nested - expressionsMap: - coding: - expressionType: nested - generateList: true - expressionsMap: - code: - type: STRING - expressionType: HL7Spec - valueOf: OBX.5 - -valuePeriod: - condition: $obx2 EQUALS DR - valueOf: ../../datatypes/v251/hl7/datatypes/DR/Period - expressionType: resource - specs: OBX.5 - vars: - obx2: STRING, OBX.2 - start: OBX.5.1 - end: OBX.5.2 - dateTimeIn: OBX.5.1 - dateTimeOut: OBX.5.2 - -valueDateTime: - condition: $obx2 EQUALS DT || $obx2 EQUALS DTM - type: STRING - valueOf: "GeneralUtils.dateTimeWithZoneId(dateTimeIn,ZONEID)" - expressionType: JEXL - vars: - dateTimeIn: OBX.5 - obx2: STRING, OBX.2 -_valueDateTime: - expressionType: nested - condition: $obx2 EQUALS DT || $obx2 EQUALS DTM - vars: - obx5: OBX.5 - obx2: STRING, OBX.2 - expressionsMap: - extension: - condition: $obx5 NOT_NULL - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2-date-time - valueString: - type: STRING - valueOf: OBX.5 - expressionType: HL7Spec - -valueTime: - condition: $obx2 EQUALS TM - type: STRING - valueOf: OBX.5 - expressionType: HL7Spec - vars: - obx2: STRING, OBX.2 - -_valueTime: - expressionType: nested - condition: $obx2 EQUALS TM - vars: - obx5: OBX.5 - obx2: STRING, OBX.2 - expressionsMap: - extension: - condition: $obx5 NOT_NULL - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2-date-time - valueString: - type: STRING - valueOf: OBX.5 - expressionType: HL7Spec - -valueRange: - vars: - obx2: STRING, OBX.2 - CWERangeUnits: OBX.6 - obx53: STRING, OBX.5.3 - expressionType: nested - specs: OBX.5 - expressions: - - condition: $obx2 EQUALS NR - valueOf: ../../datatypes/v251/hl7/datatypes/NR/Range - expressionType: resource - - condition: $obx2 EQUALS SN && $obx53 EQUALS - - valueOf: ../../datatypes/v251/hl7/datatypes/SN/Range - expressionType: resource - - -valueRatio: - vars: - obx2: STRING, OBX.2 - obx53: STRING, OBX.5.3 - CWERangeUnits: OBX.6 - condition: $obx2 EQUALS SN && ($obx53 EQUALS / || $obx53 EQUALS :) - valueOf: ../../datatypes/v251/hl7/datatypes/SN/Ratio - expressionType: resource - specs: OBX.5 - -valueQuantity: - vars: - obx2: STRING, OBX.2 - CWEQuantityUnits: OBX.6 - obx53: STRING, OBX.5.3 - expressionType: nested - expressions: - - condition: $obx2 EQUALS NM - expressionType: nested - expressionsMap: - value: - type: STRING - expressionType: HL7Spec - valueOf: OBX.5 - code: - condition: $identifier NOT_NULL && $nameOfCodingSystem NOT_NULL - type: STRING - expressionType: HL7Spec - valueOf: CWEQuantityUnits.1 - vars: - identifier: CWEQuantityUnits.1 - nameOfCodingSystem: CWEQuantityUnits.3 - unit: - expressionType: nested - vars: - identifier: CWEQuantityUnits.1 - text: CWEQuantityUnits.2 - expressions: - - condition: $text NULL && $identifier NOT_NULL - type: STRING - valueOf: CWEQuantityUnits.1 - expressionType: HL7Spec - - condition: $text NOT_NULL - type: STRING - valueOf: CWEQuantityUnits.2 - expressionType: HL7Spec - system: - condition: $identifier NOT_NULL && $nameOfCodingSystem NOT_NULL - type: STRING - expressionType: HL7Spec - valueOf: CWEQuantityUnits.3 - vars: - identifier: CWEQuantityUnits.1 - nameOfCodingSystem: CWEQuantityUnits.3 - - condition: > - $obx2 EQUALS SN && $obx53 NOT_EQUALS : && $obx53 NOT_EQUALS / && $obx53 NOT_EQUALS - && $obx53 NOT_EQUALS + - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/SN/Quantity - specs: OBX.5 - -referenceRange: - vars: - obx7: STRING_ALL, OBX.7 - condition: $obx7 NOT_NULL - expressionType: nested - generateList: true - expressionsMap: - text: - expressionType: HL7Spec - type: STRING - valueOf: OBX.7 - -interpretation: - vars: - obx8: STRING_ALL, OBX.8 - condition: $obx8 NOT_NULL - generateList: true - valueOf: datatypes/CWE_ELR/CodeableConcept - expressionType: resource - specs: OBX.8 * - -status: - type: OBSERVATION_STATUS - default: unknown - valueOf: OBX.11 - expressionType: HL7Spec - -dataAbsentReason: - vars: - obx2: STRING, OBX.2 - obx5: STRING, OBX.5 - obx11: STRING, OBX.11 - constants: - system: http://terminology.hl7.org/CodeSystem/data-absent-reason - expressionType: nested - expressions: - - condition: $obx11 EQUALS X - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: cannot-be-obtained - system: - valueOf: $system - - condition: $obx11 EQUALS_STRING N - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: not-asked - system: - valueOf: $system - - condition: $obx2 EQUALS ST && ($obx5 EQUALS_STRING $emptyString || $obx5 NULL) - expressionType: nested - constants: - emptyString: "" - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - valueOf: unknown - system: - valueOf: $system - -effectiveDateTime: - type: STRING - valueOf: "GeneralUtils.dateTimeWithZoneId(dateTimeIn,ZONEID)" - expressionType: JEXL - vars: - dateTimeIn: OBX.14 -_effectiveDateTime: - expressionType: nested - condition: $obx14 NOT_NULL - vars: - obx14: OBX.14 - expressionsMap: - extension_1: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2-date-time - valueString: - type: STRING - valueOf: OBX.14 - expressionType: HL7Spec - -method: - vars: - obx17: STRING_ALL, OBX.17 - condition: $obx17 NOT_NuLL - valueOf: datatypes/CWE_ELR/CodeableConcept - expressionType: resource - specs: OBX.17 - -device: - vars: - obx18: STRING_ALL, OBX.18 - condition: $obx18 NOT_NULL - valueOf: segments/OBX/Device - expressionType: reference - specs: OBX.18 - -performer: - generateList: true - expressionType: nested - expressions: - - expressionType: reference - vars: - obx15: STRING_ALL, OBX.15 - condition: $obx15 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/Organization - constants: - cweOrganizationHL7Field: OBX.15 - specs: OBX.15 - - expressionType: reference - generateList: true - specs: OBX.16 * - valueOf: segments/OBX/PractitionerRole - vars: - OBXPractitionerComponent: $BASE_VALUE - obx16: STRING_ALL, OBX.16 - condition: $obx16 NOT_NULL - constants: - OBXPractitionerRoleSystem: "http://terminology.hl7.org/CodeSystem/practitioner-role" - OBXPractitionerRoleCode: "responsibleObserver" - - expressionType: reference - vars: - obx25: STRING_ALL, OBX.25 - OBXPractitionerComponent: OBX.25 - OBXPractitionerRoleOrganization: OBX.23 - OBXPractitionerRoleOrganizationAddress: OBX.24 - condition: $obx25 NOT_NULL - valueOf: segments/OBX/PractitionerRole - constants: - OBXPractitionerRoleSystem: "http://terminology.hl7.org/CodeSystem/v2-0912" - OBXPractitionerRoleCode: "MDIR" - - expressionType: reference - vars: - obx25: STRING_ALL, OBX.25 - obx23: STRING_ALL, obx23 - XADAddress: OBX.24 - condition: $obx25 NULL && ($obx23 NOT_NULL || $XADAddress NOT_NULL) - valueOf: ../../datatypes/v251/hl7/datatypes/XON/Organization - specs: OBX.23 - constants: - XONHL7Field: OBX.25 - -extension: - generateList: true - expressionType: nested - vars: - obx2: STRING, OBX.2 - expressions: - - expressionType: nested - vars: - obx4: STRING,OBX.4 - condition: $obx4 NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: sub-id - valueString: - expressionType: HL7Spec - type: STRING - valueOf: OBX.4 - - expressionType: nested - vars: - obx10: STRING_ALL, OBX.10 - condition: $obx10 NOT_NULL - generateList: true - specs: OBX.10 * - expressionsMap: - url: - type: SYSTEM_URL - value: nature-of-abnormal-test - valueId: - valueOf: $BASE_VALUE - expressionType: HL7Spec - type: STRING - - expressionType: nested - vars: - obx19: STRING, OBX.19 - condition: $obx19 NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: analysis-date-time - valueDateTime: - type: STRING - valueOf: "GeneralUtils.dateTimeWithZoneId(dateTimeIn,ZONEID)" - expressionType: JEXL - vars: - dateTimeIn: OBX.19 - _valueDateTime: - expressionType: nested - condition: $obx19 NOT_NULL - vars: - obx19: OBX.19 - expressionsMap: - extension_1: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2-date-time - valueString: - type: STRING - valueOf: $obx19 - expressionType: HL7Spec - - expressionType: nested - vars: - obx54: STRING, OBX.5.4 - condition: $obx2 EQUALS ED && $obx54 EQUALS Base64 - expressionsMap: - url: - type: SYSTEM_URL - value: observation-value-attachment - valueAttachment: - valueOf: ../../datatypes/v251/hl7/datatypes/ED/Attachment - expressionType: resource - specs: OBX.5 - - expressionType: resource - condition: $obx2 EQUALS SN - valueOf: ../../datatypes/v251/hl7/datatypes/SN/ExtensionSN - specs: OBX.5 - - expressionType: resource - valueOf: segments/OBX/OBXExtension - - -subject: - valueOf: datatype/Reference - expressionType: resource - specs: $Patient - -encounter: - valueOf: datatype/Reference - expressionType: resource - specs: $Encounter - -# $suppressNote is a constant that can be passed in so that a note is not generated -# This was required when we translate the SPECIMEN.OBX segment so that the created observation -# does not include notes from the OBSERVATION GROUP -# ORDER_OBSERVATION -# NTE -> Should not be included as part of the Observation created from the OBX -# SPECIMEN -# OBX -# See use here: https://github.com/CDCgov/prime-reportstream/blob/813fe6d15e780af3ea88eb61ddfbdf2a8f4462a9/prime-router/metadata/fhir_mapping/hl7/resource/ServiceRequest.yml#L380 -note_observation: - valueOf: segments/NTE/Annotation - condition: $suppressNote NULL - expressionType: resource - generateList: true - specs: NTE - -focus: - valueOf: datatype/Reference - expressionType: resource - specs: $Specimen - useGroup: true diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/OBX/PractitionerRole.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/OBX/PractitionerRole.yml deleted file mode 100644 index 5f31cbc9315..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/OBX/PractitionerRole.yml +++ /dev/null @@ -1,36 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: PractitionerRole - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -practitioner: - valueOf: ../../datatypes/v251/hl7/datatypes/XCN/Practitioner - expressionType: reference - specs: $OBXPractitionerComponent - -organization: - condition: $roleOrg NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/XON/Organization - expressionType: reference - specs: $OBXPractitionerRoleOrganization - vars: - XADAddress: $OBXPractitionerRoleOrganizationAddress - roleOrg: STRING_ALL, $OBXPractitionerRoleOrganization - -code: - expressionType: nested - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - system: - type: STRING - valueOf: $OBXPractitionerRoleSystem - code: - type: STRING - valueOf: $OBXPractitionerRoleCode \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/ORC/DiagnosticReport.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/ORC/DiagnosticReport.yml deleted file mode 100644 index 9367c7d981b..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/ORC/DiagnosticReport.yml +++ /dev/null @@ -1,264 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: DiagnosticReport - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -identifier: - expressionType: nested - generateList: true - vars: - obr2: STRING_ALL, OBR.2 - orc2: STRING_ALL, ORC.2 - obr3: STRING_ALL, OBR.3 - orc3: STRING_ALL, ORC.3 - orc4: STRING_ALL, ORC.4 - expressions: - - condition: $orc2 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier - expressionType: resource - specs: ORC.2 - constants: - code: "PLAC" - system: "http://terminology.hl7.org/CodeSystem/v2-0203" - hl7v2Field: ORC.2 - - condition: $orc2 NULL && $obr2 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier - expressionType: resource - specs: OBR.2 - constants: - code: "PLAC" - system: "http://terminology.hl7.org/CodeSystem/v2-0203" - hl7v2Field: OBR.2 - - condition: $orc3 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier - expressionType: resource - specs: ORC.3 - constants: - system: "http://terminology.hl7.org/CodeSystem/v2-0203" - code: "FILL" - display: "Filler Identifier" - - condition: $orc3 NULL && $obr3 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier - expressionType: resource - specs: OBR.3 - constants: - system: "http://terminology.hl7.org/CodeSystem/v2-0203" - code: "FILL" - display: "Filler Identifier" - - condition: $orc4 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier - expressionType: resource - specs: ORC.4 - constants: - system: "http://terminology.hl7.org/CodeSystem/v2-0203" - code: "PGN" - - condition: $orc4 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier - expressionType: resource - specs: ORC.4 - constants: - system: "http://terminology.hl7.org/CodeSystem/v2-0203" - code: "FGN" - -code: - valueOf: datatypes/CWE_ELR/CodeableConcept - expressionType: resource - specs: OBR.4 - -effectiveDateTime: - condition: $start NOT_NULL && $end NULL - type: STRING - valueOf: "GeneralUtils.dateTimeWithZoneId(dateTimeIn,ZONEID)" - expressionType: JEXL - vars: - dateTimeIn: OBR.7 - start: OBR.7 - end: OBR.8 -_effectiveDateTime: - expressionType: nested - condition: $start NOT_NULL && $end NULL - vars: - dateTimeIn: OBR.7 - start: OBR.7 - end: OBR.8 - expressionsMap: - extension_1: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2-date-time - valueString: - type: STRING - valueOf: $dateTimeIn - expressionType: HL7Spec - -effectivePeriod: - condition: $startDate NOT_NULL && $endDate NOT_NULL - vars: - startDate: OBR.7 - endDate: OBR.8 - expressionType: nested - expressionsMap: - start: - valueOf: "GeneralUtils.dateTimeWithZoneId(startDate,ZONEID)" - expressionType: JEXL - _start: - expressionType: nested - condition: $startDate NOT_NULL - expressionsMap: - extension_1: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2-date-time - valueString: - type: STRING - valueOf: $startDate - expressionType: HL7Spec - end: - valueOf: "GeneralUtils.dateTimeWithZoneId(endDate,ZONEID)" - expressionType: JEXL - _end: - expressionType: nested - condition: $endDate NOT_NULL - expressionsMap: - extension_1: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2-date-time - valueString: - type: STRING - valueOf: $endDate - expressionType: HL7Spec - -issued: - type: STRING - valueOf: 'GeneralUtils.dateTimeWithZoneId(dateTimeIn,ZONEID)' - expressionType: JEXL - vars: - dateTimeIn: OBR.22 -_issued: - expressionType: nested - condition: $obr22 NOT_NULL - vars: - obr22: OBR.22 - expressionsMap: - extension_1: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2-date-time - valueString: - type: STRING - valueOf: $obr22 - expressionType: HL7Spec - -category: - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/ID/CodeableConcept - specs: OBR.24 - -status: - type: DIAGNOSTIC_REPORT_STATUS - valueOf: OBR.25 - expressionType: HL7Spec - required: true - -resultsInterpreter: - vars: - obr32: STRING_ALL, OBR.32 - condition: $obr32 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/NDL/PractitionerRole - generateList: true - expressionType: reference - specs: OBR.32 - -performer_1-technician: - valueOf: ../../datatypes/v251/hl7/datatypes/NDL/PractitionerRole - condition: $obr34 NOT_NULL - generateList: true - expressionType: reference - specs: OBR.34 - vars: - obr34: OBR.34 - constants: - performerParticipationType: "SPRF" - -performer_2-transcriptionist: - valueOf: ../../datatypes/v251/hl7/datatypes/NDL/PractitionerRole - condition: $obr35 NOT_NULL - generateList: true - expressionType: reference - specs: OBR.35 - vars: - obr35: OBR.35 - constants: - performerParticipationType: "TRANS" - -extension: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - vars: - orc16: ORC.16 - condition: $orc16 NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: "http://hl7.org/fhir/StructureDefinition/event-statusReason" - valueCodeableConcept: - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - specs: ORC.16 - -encounter: - valueOf: datatype/Reference - expressionType: resource - specs: $Encounter - -subject: - valueOf: datatype/Reference - expressionType: resource - specs: $Patient - -basedOn: - valueOf: datatype/Reference - expressionType: resource - specs: $ServiceRequest - generateList: true - useGroup: true - -specimen: - expressionType: nested - generateList: true - expressions: - - valueOf: datatype/Reference - generateList: true - expressionType: resource - specs: $Specimen - useGroup: true - - valueOf: datatype/Reference - expressionType: resource - specs: $SpecimenSource - useGroup: true - -result: - valueOf: datatype/Reference - generateList: true - expressionType: resource - specs: $Observation - useGroup: true \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/ORC/OBRExtension.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/ORC/OBRExtension.yml deleted file mode 100644 index d70a7ae30c7..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/ORC/OBRExtension.yml +++ /dev/null @@ -1,340 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - type: SYSTEM_URL - value: obr-observation-request - -extension: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - vars: - obr2: STRING_ALL, OBR.2 - orc2: STRING_ALL, ORC.2 - condition: $orc2 NOT_NULL && $obr2 NOT_NULL - expressionsMap: - url: - type: STRING - value: OBR.2 - valueIdentifier: - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier - expressionType: resource - specs: OBR.2 - - expressionType: nested - vars: - obr3: STRING_ALL, OBR.3 - orc3: STRING_ALL, ORC.3 - condition: $orc3 NOT_NULL && $obr3 NOT_NULL - expressionsMap: - url: - type: STRING - value: OBR.3 - valueIdentifier: - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier - expressionType: resource - specs: OBR.3 - - expressionType: nested - vars: - obr10: STRING_ALL, OBR.10 - condition: $obr10 NOT_NULL - specs: OBR.10 * - generateList: true - expressionsMap: - url: - type: STRING - value: OBR.10 - valueReference: - expressionType: reference - valueOf: ../../datatypes/v251/hl7/datatypes/XCN/Practitioner - - expressionType: nested - vars: - obr11: STRING, OBR.11 - condition: $obr11 NOT_NULL - expressionsMap: - url: - type: STRING - value: OBR.11 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: OBR.11 - - expressionType: nested - vars: - obr12: STRING_ALL, OBR.12 - condition: $obr12 NOT_NULL - expressionsMap: - url: - type: STRING - value: OBR.12 - valueCodeableConcept: - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - specs: OBR.12 - - expressionType: nested - vars: - obr13: STRING_ALL, OBR.13 - condition: $obr13 NOT_NULL - expressionsMap: - url: - type: STRING - value: OBR.13 - valueString: - expressionType: HL7Spec - type: STRING - valueOf: OBR.13 - - expressionType: nested - vars: - obr16: STRING_ALL, OBR.16 - condition: $obr16 NOT_NULL - specs: OBR.16 * - generateList: true - expressionsMap: - url: - type: STRING - value: OBR.16 - valueReference: - expressionType: reference - valueOf: ../../datatypes/v251/hl7/datatypes/XCN/Practitioner - - condition: $orc14 NOT_NULL && $obr17 NOT_NULL - vars: - orc14: STRING_ALL, ORC.14 - obr17: STRING_ALL, OBR.17 - expressionType: nested - specs: OBR.17 * - generateList: true - expressionsMap: - url: - type: SYSTEM_URL - value: callback-number - valueContactPoint: - valueOf: ../../datatypes/v251/hl7/datatypes/XTN/ContactPoint - expressionType: resource - constants: - hl7v2Field: "OBR.17" - - expressionType: nested - vars: - obr18: OBR.18 - condition: $obr18 NOT_NULL - expressionsMap: - url: - type: STRING - value: OBR.18 - valueString: - type: STRING - valueOf: OBR.18 - expressionType: HL7Spec - - expressionType: nested - vars: - obr19: OBR.19 - condition: $obr19 NOT_NULL - expressionsMap: - url: - type: STRING - value: OBR.19 - valueString: - type: STRING - valueOf: OBR.19 - expressionType: HL7Spec - - expressionType: nested - vars: - obr20: OBR.20 - condition: $obr20 NOT_NULL - expressionsMap: - url: - type: STRING - value: OBR.20 - valueString: - type: STRING - valueOf: OBR.20 - expressionType: HL7Spec - - expressionType: nested - vars: - obr21: OBR.21 - condition: $obr21 NOT_NULL - expressionsMap: - url: - type: STRING - value: OBR.21 - valueString: - type: STRING - valueOf: OBR.21 - expressionType: HL7Spec - - expressionType: nested - vars: - obr22: OBR.22 - condition: $obr22 NOT_NULL - expressionsMap: - url: - type: STRING - value: OBR.22 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: OBR.22 - - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/MOC/Extension - vars: - obr23: STRING_ALL, OBR.23 - condition: $obr23 NOT_NULL - specs: OBR.23 - constants: - mocExtensionName: OBR.23 - - expressionType: nested - vars: - obr24: OBR.24 - condition: $obr24 NOT_NULL - expressionsMap: - url: - type: STRING - value: OBR.24 - valueId: - type: STRING - expressionType: HL7Spec - valueOf: OBR.24 - - expressionType: nested - vars: - obr25: OBR.25 - condition: $obr25 NOT_NULL - expressionsMap: - url: - type: STRING - value: OBR.25 - valueId: - type: STRING - expressionType: HL7Spec - valueOf: OBR.25 - - expressionType: resource - vars: - obr26: STRING_ALL, OBR.26 - condition: $obr26 NOT_NULL - valueOf: datatypes/PRL_ELR/Extension - specs: OBR.26 - constants: - prlExtensionName: OBR.26 - - expressionType: nested - vars: - obr28: STRING_ALL, OBR.28 - condition: $obr28 NOT_NULL - specs: OBR.28 * - generateList: true - expressionsMap: - url: - type: STRING - value: OBR.28 - valueReference: - expressionType: reference - valueOf: ../../datatypes/v251/hl7/datatypes/XCN/Practitioner - - expressionType: nested - vars: - obr29: STRING_ALL, OBR.29 - condition: $obr29 NOT_NULL - expressionsMap: - url: - type: STRING - value: OBR.29 - valueIdentifier: - valueOf: ../../datatypes/v251/hl7/datatypes/EIP/Identifier-PlacerAssignedIdentifier - expressionType: resource - specs: OBR.29 - constants: - backupExtension: "filler-assigned-identifier" - - expressionType: nested - vars: - obr33: STRING_ALL, OBR.33 - condition: $obr33 NOT_NULL - specs: OBR.33 * - generateList: true - expressionsMap: - url: - type: STRING - value: OBR.33 - valueReference: - valueOf: ../../datatypes/v251/hl7/datatypes/NDL/PractitionerRole - expressionType: reference - - expressionType: nested - vars: - obr36: STRING, OBR.36 - condition: $obr36 NOT_NULL - expressionsMap: - url: - type: STRING - value: OBR.36 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: OBR.36 - - expressionType: nested - vars: - obr39: STRING_ALL, OBR.39 - condition: $obr39 NOT_NULL - specs: OBR.39 * - generateList: true - expressionsMap: - url: - type: STRING - value: OBR.39 - valueCodeableConcept: - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - expressionType: resource - - expressionType: nested - vars: - obr44: STRING_ALL, OBR.44 - condition: $obr44 NOT_NULL - expressionsMap: - url: - type: STRING - value: OBR.44 - valueCodeableConcept: - valueOf: ../../datatypes/v251/hl7/datatypes/CNE/CodeableConcept - expressionType: resource - specs: OBR.44 - - expressionType: nested - vars: - obr45: STRING_ALL, OBR.45 - condition: $obr45 NOT_NULL - specs: OBR.45 * - generateList: true - expressionsMap: - url: - type: STRING - value: obr-45-procedure-code-modifier - valueCodeableConcept: - valueOf: ../../datatypes/v251/hl7/datatypes/CNE/CodeableConcept - expressionType: resource - - expressionType: nested - vars: - obr48: STRING_ALL, OBR.48 - condition: $obr48 NOT_NULL - expressionsMap: - url: - type: STRING - value: OBR.48 - valueCodeableConcept: - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - expressionType: resource - specs: OBR.48 - - expressionType: nested - vars: - obr49: STRING_ALL, OBR.49 - condition: $obr49 NOT_NULL - expressionsMap: - url: - type: STRING - value: OBR.49 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: OBR.49 - - expressionType: nested - vars: - obr50: STRING_ALL, OBR.50 - condition: $obr50 NOT_NULL - expressionsMap: - url: - type: STRING - value: OBR.50 - valueCodeableConcept: - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - specs: OBR.50 \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/ORC/ORCExtension.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/ORC/ORCExtension.yml deleted file mode 100644 index 82183edddd6..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/ORC/ORCExtension.yml +++ /dev/null @@ -1,235 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - type: SYSTEM_URL - value: orc-common-order - -extension: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - vars: - orc5: STRING_ALL, ORC.5 - condition: $orc5 NOT_NULL - expressionsMap: - url: - type: STRING - value: ORC.5 - valueString: - type: STRING - valueOf: ORC.5 - expressionType: HL7Spec - - expressionType: nested - vars: - orc6: STRING_ALL, ORC.6 - condition: $orc6 NOT_NULL - expressionsMap: - url: - type: STRING - value: ORC.6 - valueString: - type: STRING - valueOf: ORC.6 - expressionType: HL7Spec - - expressionType: nested - vars: - orc8: STRING_ALL, ORC.8 - condition: $orc8 NOT_NULL - expressionsMap: - url: - type: STRING - value: ORC.8 - valueIdentifier: - valueOf: ../../datatypes/v251/hl7/datatypes/EIP/Identifier-PlacerAssignedIdentifier - expressionType: resource - specs: ORC.8 - constants: - backupExtension: "filler-assigned-identifier" - - expressionType: nested - vars: - orc10: STRING_ALL, ORC.10 - condition: $orc10 NOT_NULL - specs: ORC.10 * - generateList: true - expressionsMap: - url: - type: STRING - value: ORC.10 - valueReference: - expressionType: reference - valueOf: ../../datatypes/v251/hl7/datatypes/XCN/Practitioner - - expressionType: nested - vars: - orc11: STRING_ALL, ORC.11 - condition: $orc11 NOT_NULL - specs: ORC.11 * - generateList: true - expressionsMap: - url: - type: STRING - value: ORC.11 - valueReference: - expressionType: reference - valueOf: ../../datatypes/v251/hl7/datatypes/XCN/Practitioner - - expressionType: nested - vars: - orc12: STRING_ALL, ORC.12 - condition: $orc12 NOT_NULL - specs: ORC.12 * - generateList: true - expressionsMap: - url: - type: STRING - value: orc-12-ordering-provider - valueReference: - expressionType: reference - valueOf: ../../datatypes/v251/hl7/datatypes/XCN/Practitioner - - expressionType: nested - vars: - orc13: STRING_ALL, ORC.13 - condition: $orc13 NOT_NULL - expressionsMap: - url: - type: STRING - value: ORC.13 - valueReference: - expressionType: reference - valueOf: ../../datatypes/v251/hl7/datatypes/PL/Location - specs: ORC.13 - - expressionType: nested - condition: $orc15 NOT_NULL - vars: - orc15: STRING, ORC.15 - expressionsMap: - url: - type: STRING - value: ORC.15 - valueString: - type: STRING - valueOf: ORC.15 - expressionType: HL7Spec - - expressionType: nested - vars: - orc17: ORC.17 - condition: $orc17 NOT_NULL - expressionsMap: - url: - type: STRING - value: ORC.17 - valueCodeableConcept: - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - specs: ORC.17 - - expressionType: nested - vars: - orc17: ORC.18 - condition: $orc17 NOT_NULL - expressionsMap: - url: - type: STRING - value: ORC.18 - valueCodeableConcept: - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - specs: ORC.18 - - expressionType: nested - vars: - orc19: STRING_ALL, ORC.19 - condition: $orc19 NOT_NULL - specs: ORC.19 * - generateList: true - expressionsMap: - url: - type: STRING - value: ORC.19 - valueReference: - expressionType: reference - valueOf: ../../datatypes/v251/hl7/datatypes/XCN/Practitioner - - expressionType: nested - vars: - orc21: STRING_ALL, ORC.21 - condition: $orc21 NOT_NULL - specs: ORC.21 * - generateList: true - expressionsMap: - url: - type: STRING - value: orc-21-ordering-facility-name - valueReference: - expressionType: reference - valueOf: ../../datatypes/v251/hl7/datatypes/XON/Organization - - expressionType: nested - vars: - orc22: STRING_ALL, ORC.22 - condition: $orc22 NOT_NULL - specs: ORC.22 * - generateList: true - expressionsMap: - url: - type: STRING - value: orc-22-ordering-facility-address - valueAddress: - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/XAD/Address - - expressionType: nested - vars: - orc24: STRING_ALL, ORC.24 - condition: $orc24 NOT_NULL - specs: ORC.24 * - generateList: true - expressionsMap: - url: - type: STRING - value: orc-24-ordering-provider-address - valueAddress: - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/XAD/Address - - expressionType: nested - vars: - orc27: ORC.27 - condition: $orc27 NOT_NULL - expressionsMap: - url: - type: STRING - value: ORC.27 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: ORC.27 - - expressionType: nested - vars: - orc28: ORC.28 - condition: $orc28 NOT_NULL - expressionsMap: - url: - type: STRING - value: ORC.28 - valueCodeableConcept: - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - specs: ORC.28 - - expressionType: nested - vars: - orc30: STRING_ALL, ORC.30 - condition: $orc30 NOT_NULL - expressionsMap: - url: - type: STRING - value: ORC.30 - valueCodeableConcept: - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/CNE/CodeableConcept - specs: ORC.30 - - expressionType: nested - vars: - orc31: STRING_ALL, ORC.31 - condition: $orc31 NOT_NULL - expressionsMap: - url: - type: STRING - value: ORC.31 - valueCodeableConcept: - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - expressionType: resource - specs: ORC.31 \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/ORC/PractitionerRole.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/ORC/PractitionerRole.yml deleted file mode 100644 index efb00d80959..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/ORC/PractitionerRole.yml +++ /dev/null @@ -1,40 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: PractitionerRole - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - - -practitioner: - expressionType: nested - vars: - orc12: STRING_ALL, ORC.12 - obr16: STRING_ALL, OBR.16 - expressions: - - expressionType: reference - condition: $orc12 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/XCN/Practitioner - specs: ORC.12 - vars: - XADAddress: ORC.24 - constants: - XCNHL7Field: ORC.12 - - expressionType: reference - condition: $orc12 NULL && $obr16 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/XCN/Practitioner - specs: OBR.16 - vars: - XADAddress: ORC.24 - constants: - XCNHL7Field: OBR.16 - -organization: - vars: - XADAddress: ORC.22 - XTNTelecom: ORC.23 * - expressionType: reference - valueOf: ../../datatypes/v251/hl7/datatypes/XON/Organization - specs: ORC.21 diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/ORC/ServiceRequest.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/ORC/ServiceRequest.yml deleted file mode 100644 index 0e08b9fc9e3..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/ORC/ServiceRequest.yml +++ /dev/null @@ -1,322 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: ServiceRequest - -# Not Implementing -# ORC.7 not mapped, deprecated in the NIST spec -# ORC.26 not mapped, deprecated in the NIST spec -# ORC.32 not mapped, deprecated in NIST spec -# ORC.34 not mapped, deprecated in NIST spec -# OBR.5 not mapped, deprecated in NIST spec -# OBR.27 not mapped, deprecated in NIST spec -# OBR.30 not mapped, deprecated in NIST spec -# OBR.37 not mapped, deprecated in NIST spec -# OBR.38 not mapped, deprecated in NIST spec -# OBR.40 not mapped, deprecated in NIST spec -# OBR.41 not mapped, deprecated in NIST spec -# OBR.42 not mapped, deprecated in NIST spec -# OBR.43 not mapped, deprecated in NIST spec -# OBR.54 not mapped, not in NIST - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -status: - type: SERVICE_REQUEST_STATUS - default: "unknown" - valueOf: ORC.5 | ORC.1 - expressionType: HL7Spec - -intent: - expressionType: nested - vars: - obr11: STRING, OBR.11 - expressions: - - condition: $obr11 NOT_EQUALS G || $obr11 NOT_EQUALS A - type: STRING - value: "order" - - condition: $obr11 EQUALS A - type: STRING - value: "#add-on#" - - condition: $obr11 EQUALS G - type: STRING - value: "reflex-order" - -identifier: - expressionType: nested - generateList: true - vars: - obr2: STRING_ALL, OBR.2 - orc2: STRING_ALL, ORC.2 - obr3: STRING_ALL, OBR.3 - orc3: STRING_ALL, ORC.3 - orc4: STRING_ALL, ORC.4 - orc33: STRING_ALL, ORC.33 - expressions: - - condition: $orc2 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier - expressionType: resource - specs: ORC.2 - constants: - code: "PLAC" - system: "http://terminology.hl7.org/CodeSystem/v2-0203" - display: "Placer Identifier" - hl7v2Field: ORC.2 - - condition: $orc2 NULL && $obr2 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier - expressionType: resource - specs: OBR.2 - constants: - code: "PLAC" - system: "http://terminology.hl7.org/CodeSystem/v2-0203" - display: "Placer Identifier" - hl7v2Field: OBR.2 - - condition: $orc3 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier - expressionType: resource - specs: ORC.3 - constants: - system: "http://terminology.hl7.org/CodeSystem/v2-0203" - code: "FILL" - display: "Filler Identifier" - hl7v2Field: ORC.3 - - condition: $orc3 NULL && $obr3 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier - expressionType: resource - specs: OBR.3 - constants: - system: "http://terminology.hl7.org/CodeSystem/v2-0203" - code: "FILL" - display: "Filler Identifier" - hl7v2Field: OBR.3 - - condition: $orc4 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier - expressionType: resource - specs: ORC.4 - constants: - system: "http://terminology.hl7.org/CodeSystem/v2-0203" - code: "PGN" - hl7v2Field: ORC.4 - - condition: $orc4 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EI/Identifier - expressionType: resource - specs: ORC.4 - constants: - system: "http://terminology.hl7.org/CodeSystem/v2-0203" - code: "FGN" - hl7v2Field: ORC.4 - - condition: $orc33 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/CX/Identifier - expressionType: resource - specs: ORC.33 * - generateList: true - constants: - system: "http://terminology.hl7.org/CodeSystem/v2-0203" - code: "PLAC" - CXIdentifierField: ORC.33 - -code: - valueOf: datatypes/CWE_ELR/CodeableConcept - expressionType: resource - specs: OBR.4 - -authoredOn: - condition: $orderControl EQUALS NW - type: STRING - valueOf: "GeneralUtils.dateTimeWithZoneId(dateTimeIn,ZONEID)" - expressionType: JEXL - vars: - dateTimeIn: ORC.9 - orderControl: String, ORC.1 -_authoredOn: - expressionType: nested - condition: $orderControl EQUALS NW && $dateTimeIn NOT_NULL - vars: - dateTimeIn: ORC.9 - orderControl: String, ORC.1 - expressionsMap: - extension_1: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2-date-time - valueString: - type: STRING - valueOf: $dateTimeIn - expressionType: HL7Spec - -requester: - expressionType: nested - vars: - orc12: STRING_ALL, ORC.12 - obr16: STRING_ALL, OBR.16 - orc14: STRING_ALL, ORC.14 - obr17: STRING_ALL, OBR.17 - orc21: STRING_ALL, ORC.21 - orc22: STRING_ALL, ORC.22 - orc23: STRING_ALL, ORC.23 - orc24: STRING_ALL, ORC.24 - expressions: - - condition: $orc21 NOT_NULL || $orc22 NOT_NULL || $orc23 NOT_NULL - expressionType: reference - valueOf: segments/ORC/PractitionerRole - - condition: $orc21 NULL && $orc22 NULL && $orc23 NULL - expressionType: nested - expressions: - - expressionType: reference - condition: $orc12 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/XCN/Practitioner - specs: ORC.12 - vars: - XADAddress: ORC.24 - constants: - XCNHL7Field: ORC.12 - - expressionType: reference - condition: $orc12 NULL && $obr16 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/XCN/Practitioner - specs: OBR.16 - vars: - XADAddress: ORC.24 - constants: - XCNHL7Field: OBR.16 - -_requester: - vars: - orc14: STRING_ALL, ORC.14 - obr17: STRING_ALL, OBR.17 - expressionType: nested - expressions: - - condition: $orc14 NOT_NULL - expressionType: nested - expressionsMap: - extension: - generateList: true - specs: ORC.14 * - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: callback-number - valueContactPoint: - valueOf: ../../datatypes/v251/hl7/datatypes/XTN/ContactPoint - expressionType: resource - constants: - hl7v2Field: ORC.14 - - condition: $orc14 NULL && $obr17 NOT_NULL - expressionType: nested - expressionsMap: - extension: - generateList: true - specs: OBR.17 * - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: callback-number - valueContactPoint: - valueOf: ../../datatypes/v251/hl7/datatypes/XTN/ContactPoint - expressionType: resource - constants: - hl7v2Field: OBR.17 - -locationCode: - vars: - orc29: STRING_ALL, ORC.29 - condition: $orc29 NOT_NULL - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - specs: ORC.29 - -reasonCode: - vars: - obr31: STRING_ALL, OBR.31 - condition: $obr31 NOT_NULL - valueOf: datatypes/CWE_ELR/CodeableConcept - generateList: true - expressionType: resource - specs: OBR.31 - -orderDetail: - generateList: true - expressionType: nested - expressions: - - expressionType: resource - vars: - obr46: STRING_ALL, OBR.46 - condition: $obr46 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - specs: OBR.46 * - generateList: true - constants: - hl7v2Field: OBR.46 - - expressionType: resource - vars: - obr47: STRING_ALL, OBR.47 - condition: $obr47 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - specs: OBR.47 * - generateList: true - constants: - hl7v2Field: OBR.47 - -extension: - expressionType: nested - generateList: true - expressions: - - expressionType: nested - vars: - orc1: STRING, ORC.1 - condition: $orc1 NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: business-event - valueCode: - type: STRING - expressionType: HL7Spec - valueOf: ORC.1 - - expressionType: nested - vars: - orc9: STRING, ORC.9 - condition: $orc9 NOT_NULL && $orc9 NOT_EQUALS NW - expressionsMap: - url: - type: SYSTEM_URL - value: business-event - valueString: - type: STRING - expressionType: HL7Spec - valueOf: ORC.9 - - expressionType: nested - vars: - orc25: ORC.25 - condition: $orc25 NOT_NULL - expressionsMap: - url: - type: SYSTEM_URL - value: status-modifier - valueCodeableConcept: - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - specs: ORC.25 - # ORC data - - expressionType: resource - valueOf: segments/ORC/ORCExtension - # OBR Data - - expressionType: resource - valueOf: segments/ORC/OBRExtension - -subject: - valueOf: datatype/Reference - expressionType: resource - specs: $Patient - -note: - valueOf: segments/NTE/Annotation - expressionType: resource - generateList: true - specs: NTE diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/ORC/Specimen.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/ORC/Specimen.yml deleted file mode 100644 index 5a7d46505ba..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/ORC/Specimen.yml +++ /dev/null @@ -1,62 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Specimen -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -collection: - condition: $spm7 NOT_NULL - expressionType: nested - generateList: true - expressionsMap: - collectedPeriod: - condition: $end NOT_NULL - expressionType: nested - vars: - start: OBR.7 - end: OBR.8 - dateTimeIn: OBR.7 - dateTimeOut: OBR.8 - expressions: - - valueOf: ../../datatypes/v251/hl7/datatypes/DR/Period - expressionType: resource - collectedDateTime: - expressionType: nested - vars: - dateTimeIn: OBR.7 - end: OBR.8 - expressions: - - condition: $end NULL - type: STRING - valueOf: "GeneralUtils.dateTimeWithZoneId(dateTimeIn,ZONEID)" - expressionType: JEXL - collector: - condition: $obr10 NOT_NULL - vars: - obr10: OBR.10 - expressionType: reference - valueOf: ../../datatypes/v251/hl7/datatypes/XCN/Practitioner - specs: OBR.10 - -note_collectors-comment: - condition: $obr39 NOT_NULL - generateList: true - vars: - obr39: STRING_ALL, OBR.39 - specs: OBR.39 * - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/Annotation - expressionType: resource - -extension: - expressionType: nested - generateList: true - expressions: - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - valueOf: hl7v2Segment - valueString: - valueOf: 'OBR' \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/PID/PD1Extension.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/PID/PD1Extension.yml deleted file mode 100644 index 308be65fdd4..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/PID/PD1Extension.yml +++ /dev/null @@ -1,215 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - type: SYSTEM_URL - value: pd1-patient-additional-demographic - -extension: - expressionType: nested - generateList: true - expressions: - - expressionType: nested - specs: PD1.1 * - condition: $pd11 NOT_NULL - generateList: true - vars: - pd11: STRING_ALL, PD1.1 - expressionsMap: - url: - type: STRING - value: PD1.1 - valueString: - type: STRING - valueOf: PD1.1 - expressionType: HL7Spec - - expressionType: nested - condition: $pd12 NOT_NULL - specs: PD1.2 - vars: - pd12: STRING_ALL, PD1.2 - expressionsMap: - url: - type: STRING - value: PD1.2 - valueString: - type: STRING - valueOf: PD1.2 - expressionType: HL7Spec - - expressionType: nested - condition: $pd18 NOT_NULL - specs: PD1.8 - vars: - pd18: STRING_ALL, PD1.8 - expressionsMap: - url: - type: STRING - value: PD1.8 - valueString: - type: STRING - valueOf: PD1.8 - expressionType: HL7Spec - - expressionType: nested - condition: $pd19 NOT_NULL - vars: - pd19: STRING_ALL, PD1.9 - expressionsMap: - url: - type: STRING - value: PD1.9 - valueString: - type: STRING - valueOf: PD1.9 - expressionType: HL7Spec - - expressionType: nested - specs: PD1.10 * - condition: $pd110 NOT_NULL - generateList: true - vars: - pd110: STRING_ALL, PD1.10 - expressionsMap: - url: - type: STRING - value: PD1.10 - valueIdentifier: - valueOf: ../../datatypes/v251/hl7/datatypes/CX/Identifier - expressionType: resource - constants: - CXIdentifierField: PD1.10 - - expressionType: nested - condition: $pd111 NOT_NULL - specs: PD1.11 - vars: - pd111: STRING_ALL, PD1.11 - expressionsMap: - url: - type: STRING - value: PD1.11 - valueCodeableConcept: - valueOf: ../../datatypes/v251/hl7/datatypes/CE/CodeableConcept - expressionType: resource - - expressionType: nested - condition: $pd112 NOT_NULL - vars: - pd112: STRING_ALL, PD1.12 - expressionsMap: - url: - type: STRING - value: PD1.12 - valueString: - type: STRING - valueOf: PD1.12 - expressionType: HL7Spec - - expressionType: nested - condition: $pd113 NOT_NULL - vars: - pd113: STRING_ALL, PD1.13 - expressionsMap: - url: - type: STRING - value: PD1.13 - valueString: - type: STRING - valueOf: PD1.13 - expressionType: HL7Spec - - expressionType: nested - vars: - pd114: STRING_ALL, PD1.14 - condition: $pd114 NOT_NULL - specs: PD1.14 * - generateList: true - expressionsMap: - url: - type: STRING - value: PD1.14 - valueReference: - valueOf: ../../datatypes/v251/hl7/datatypes/XON/Organization - expressionType: reference - - expressionType: nested - specs: PD1.15 * - condition: $pd115 NOT_NULL - generateList: true - vars: - pd115: STRING_ALL, PD1.15 - expressionsMap: - url: - type: STRING - value: PD1.15 - valueCodeableConcept: - valueOf: ../../datatypes/v251/hl7/datatypes/CE/CodeableConcept - expressionType: resource - - expressionType: nested - condition: $pd116 NOT_NULL - specs: PD1.16 - vars: - pd116: STRING_ALL, PD1.16 - expressionsMap: - url: - type: STRING - value: PD1.16 - valueString: - type: STRING - valueOf: PD1.16 - expressionType: HL7Spec - - expressionType: nested - condition: $pd117 NOT_NULL - vars: - pd117: STRING_ALL, PD1.17 - expressionsMap: - url: - type: STRING - value: PD1.17 - valueString: - type: STRING - valueOf: PD1.17 - expressionType: HL7Spec - - expressionType: nested - condition: $pd118 NOT_NULL - vars: - pd118: STRING_ALL, PD1.18 - expressionsMap: - url: - type: STRING - value: PD1.18 - valueString: - type: STRING - valueOf: PD1.18 - expressionType: HL7Spec - - expressionType: nested - condition: $pd119 NOT_NULL - specs: PD1.19 - vars: - pd119: STRING_ALL, PD1.19 - expressionsMap: - url: - type: STRING - value: PD1.19 - valueString: - type: STRING - valueOf: PD1.19 - expressionType: HL7Spec - - expressionType: nested - condition: $pd120 NOT_NULL - specs: PD1.20 - vars: - pd120: STRING_ALL, PD1.20 - expressionsMap: - url: - type: STRING - value: PD1.20 - valueString: - type: STRING - valueOf: PD1.20 - expressionType: HL7Spec - - expressionType: nested - condition: $pd121 NOT_NULL - specs: PD1.21 - vars: - pd121: STRING_ALL, PD1.21 - expressionsMap: - url: - type: STRING - value: PD1.21 - valueString: - type: STRING - valueOf: PD1.21 - expressionType: HL7Spec \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/PID/PIDExtension.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/PID/PIDExtension.yml deleted file mode 100644 index 27e2a0a2f77..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/PID/PIDExtension.yml +++ /dev/null @@ -1,87 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - type: SYSTEM_URL - value: pid-patient - -extension: - expressionType: nested - generateList: true - expressions: - - expressionType: nested - condition: $pid8 NOT_NULL - vars: - pid8: STRING_ALL, PID.8 - expressionsMap: - url: - type: STRING - value: PID.8 - valueString: - type: STRING - valueOf: PID.8 - expressionType: HL7Spec - - expressionType: nested - specs: PID.18 - condition: $pid18 NOT_NULL - generateList: true - vars: - pid18: STRING_ALL, PID.18 - expressionsMap: - url: - type: STRING - value: PID.18 - valueIdentifier: - valueOf: ../../datatypes/v251/hl7/datatypes/CX/Identifier - expressionType: resource - constants: - CXIdentifierField: PID.18 - - expressionType: nested - condition: $pid24 NOT_NULL - vars: - pid24: STRING_ALL, PID.24 - expressionsMap: - url: - type: STRING - value: PID.24 - valueString: - type: STRING - valueOf: PID.24 - expressionType: HL7Spec - - expressionType: nested - condition: $pid30 NOT_NULL - vars: - pid30: STRING_ALL, PID.30 - expressionsMap: - url: - type: STRING - value: PID.30 - valueString: - type: STRING - valueOf: PID.30 - expressionType: HL7Spec - - expressionType: nested - specs: PID.32 * - generateList: true - condition: $pid32 NOT_NULL - vars: - pid32: STRING_ALL, PID.32 - expressionsMap: - url: - type: STRING - value: PID.32 - valueString: - type: STRING - valueOf: PID.32 - expressionType: HL7Spec - - expressionType: nested - specs: PID.38 * - condition: $pid38 NOT_NULL - vars: - pid38: STRING_ALL, PID.38 - expressionsMap: - url: - type: STRING - value: PID.38 - valueCodeableConcept: - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - expressionType: resource \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/PID/Patient.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/PID/Patient.yml deleted file mode 100644 index 7ff487fc5ff..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/PID/Patient.yml +++ /dev/null @@ -1,577 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Patient - -# - PID.2 is deprecated in the HL7v2.7 and NIST HL7v2.5.1 specs. Further, the HAPI v2.7 model has set both fields to -# NULLDT. Thus, this field is not being mapped. -# - PID.4 is deprecated in the HL7v2.7 and NIST HL7v2.5.1 specs. Further, the HAPI v2.7 model has set both fields to -# NULLDT. Thus, this field is not being mapped. -# - PID.6: The inventory maps the value to a `valueString` extention but `valueHumanName` is available and fully captures -# the values, so it is being used over `valueString` -# - PID.12 is deprecated in the HL7v2.7 and NIST HL7v2.5.1 specs. Further, the HAPI v2.7 model has set both -# fields to NULLDT. Thus, this field is not being mapped. -# - PID.15 allows repeats in the NIST HL7v2.5.1 specs, however the HAPI models for v2.5.1 and v2.7 do not support -# repetitions in those fields. Thus, any repetitions of the field will be ignored. -# - PID.19 and PID.20 are deprecated in the HL7v2.7 and NIST HL7v2.5.1 specs. Further, the HAPI v2.7 model has set both -# fields to NULLDT. Thus, this field is not being mapped. -# - PID.21: The inventory does not include a FHIR field on patient that this should be mapped to. We have decided to map -# to Patient.link which includes a reference to RelatedPerson - - -# - PD1.4 Deprecated in NIST, set to NullDT in HAPI. Field not mapped - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -contact: - vars: - nk1: NK1 - condition: $nk1 NOT_NULL - expressionType: nested - generateList: true - expressionsMap: - name: - expressionType: resource - generateList: true - specs: NK1.2 * - valueOf: datatypes/XPN_ELR/HumanName - extension: - generateList: true - expressionType: nested - specs: NK1.3 - expressionsMap: - url: - type: SYSTEM_URL - value: relationship - valueCodeableConcept: - valueOf: datatypes/CWE_ELR/CodeableConcept - expressionType: resource - address: - condition: $nk14 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/XAD/Address - generateList: true - expressionType: resource - specs: NK1.4 * - vars: - nk14: STRING_ALL, NK1.4 - telecom: - expressionType: nested - generateList: true - expressions: - - condition: $nk15 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/XTN/ContactPoint - generateList: true - expressionType: resource - specs: NK1.5 * - vars: - nk15: STRING_ALL, NK1.5 - organization: - condition: $XONOrganization NOT_NULL || $XPNContactName NOT_NULL || $XPNContactTelecom NOT_NULL || $XADContactAddress NOT_NULL - expressionType: reference - valueOf: ../../datatypes/v251/hl7/datatypes/XON/Organization - specs: NK1.13 - vars: - XONOrganization: NK1.13 - XPNContactName: NK1.30 - XPNContactTelecom: NK1.31 - XADContactAddress: NK1.32 - - -identifier: - expressionType: nested - generateList: true - expressions: - - condition: $pid3 NOT_NULL - expressionType: resource - specs: PID.3 * - valueOf: ../../datatypes/v251/hl7/datatypes/CX/Identifier - generateList: true - vars: - pid3: STRING_ALL, PID.3 - constants: - CXIdentifierField: PID.3 - -name: - expressionType: nested - generateList: true - expressions: - - condition: $pid5 NOT_NULL - expressionType: resource - generateList: true - specs: PID.5 * - valueOf: datatypes/XPN_ELR/HumanName - vars: - pid5: STRING_ALL, PID.5 - constants: - hl7Use: patient-name - -birthDate: - type: DATE - valueOf: PID.7 - expressionType: HL7Spec - -_birthDate: - condition: $pid7 NOT_NULL - vars: - pid7: PID.7 - dateTimeIn: PID.7, GeneralUtils.dateTimeWithZoneId(dateTimeIn,ZONEID) - isTime: PID.7, GeneralUtils.dateTimeWithZoneId(isTime,ZONEID).length() > 10 - expressionType: nested - expressionsMap: - # this extension is needed to comply with the official HL7v2-to-FHIR mapping - extension_1: - condition: $dateTimeIn NOT_NULL && $isTime EQUALS "true" - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: birthTime - valueDateTime: - valueOf: $dateTimeIn - expressionType: HL7Spec - # this extension is needed to reliably translate back to HL7 from FHIR - extension_2: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2-date-time - valueString: - type: STRING - valueOf: $pid7 - expressionType: HL7Spec - -gender: - type: ADMINISTRATIVE_GENDER - valueOf: PID.8 - expressionType: HL7Spec - -address: - condition: $pid11 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/XAD/Address - generateList: true - expressionType: resource - specs: PID.11 * - vars: - pid11: STRING_ALL, PID.11 - -telecom: - expressionType: nested - generateList: true - expressions: - - condition: $pid13 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/XTN/ContactPoint - generateList: true - expressionType: resource - specs: PID.13 * - vars: - pid13: STRING_ALL, PID.13 - constants: - useCode: home - - condition: $pid14 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/XTN/ContactPoint - generateList: true - expressionType: resource - specs: PID.14 * - vars: - pid14: STRING_ALL, PID.14 - constants: - useCode: work - -communication: - expressionType: nested - condition: $pid15 NOT_NULL - vars: - pid15: STRING_ALL, PID.15 - expressionsMap: - language: - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - expressionType: resource - specs: PID.15 - -maritalStatus: - condition: $pid16 NOT_NULL - vars: - pid16: STRING_ALL, PID.16 - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - expressionType: resource - specs: PID.16 - -link: - condition: $pid21 NOT_NULL - expressionType: nested - vars: - pid21: STRING_ALL, PID.21 - specs: PID.21 * - generateList: true - expressionsMap: - other: - valueOf: ../../datatypes/v251/hl7/datatypes/CX/RelatedPerson-mother - expressionType: reference - type: - type: STRING - valueOf: "seealso" - -multipleBirthBoolean: - condition: $multipleBirthIndicator NOT_NULL && $birthOrder NULL - type: BOOLEAN - valueOf: PID.24 - expressionType: HL7Spec - vars: - multipleBirthIndicator: PID.24 - birthOrder: PID.25 - -multipleBirthInteger: - condition: $birthOrder NOT_NULL - type: INTEGER - valueOf: PID.25 - expressionType: HL7Spec - vars: - birthOrder: PID.25 - -deceasedBoolean: - condition: $deceasedBool NOT_NULL && $deceasedDateTime NULL - type: BOOLEAN - valueOf: PID.30 - expressionType: HL7Spec - vars: - deceasedBool: PID.30 - deceasedDateTime: PID.29 - -deceasedDateTime: - condition: $dateTimeIn NOT_NULL - type: STRING - valueOf: "GeneralUtils.dateTimeWithZoneId(dateTimeIn,ZONEID)" - expressionType: JEXL - vars: - dateTimeIn: PID.29 - -_deceasedDateTime: - expressionType: nested - condition: $pid29 NOT_NULL - vars: - pid29: STRING, PID.29 - expressionsMap: - extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2-date-time - valueString: - type: STRING - valueOf: PID.29 - expressionType: HL7Spec - -meta: - expressionType: nested - generateList: true - expressionsMap: - lastUpdated: - type: STRING - valueOf: "GeneralUtils.dateTimeWithZoneId(dateTimeIn,ZONEID)" - expressionType: JEXL - vars: - dateTimeIn: PID.33 - _lastUpdated: - expressionType: nested - condition: $pid33 NOT_NULL - vars: - pid33: STRING, PID.33 - expressionsMap: - extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2-date-time - valueString: - type: STRING - valueOf: PID.33 - expressionType: HL7Spec - extension: - generateList: true - condition: $pid34 NOT_NULL - vars: - pid34: STRING_ALL, PID.34 - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: last-updated-facility-namespace-id - valueReference: - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Organization - expressionType: reference - specs: PID.34 - -generalPractitioner_Organization: - condition: $pd13 NOT_NULL - generateList: true - specs: PD1.3 * - vars: - pd13: STRING_ALL, PD1.3 - valueOf: ../../datatypes/v251/hl7/datatypes/XON/Organization - expressionType: reference - -extension: - expressionType: nested - generateList: true - useGroup: true - expressions: - - expressionType: nested - generateList: true - specs: NTE - expressionsMap: - url: - type: SYSTEM_URL - value: patient-notes - valueAnnotation: - valueOf: segments/NTE/Annotation - expressionType: resource - - expressionType: resource - valueOf: segments/PID/PIDExtension - - expressionType: resource - valueOf: segments/PID/PD1Extension - - expressionType: nested - generateList: true - condition: $pid6 NOT_NULL - vars: - pid6: STRING_ALL, PID.6 * - specs: PID.6 * - expressionsMap: - url: - type: SYSTEM_URL - value: mothersMaidenName - valueHumanName: - valueOf: datatypes/XPN_ELR/HumanName - expressionType: resource - - condition: $pid10 NOT_NULL - expressionType: nested - specs: PID.10 * - generateList: true - vars: - pid10: STRING_ALL, PID.10 - expressionsMap: - url: - type: SYSTEM_URL - value: race - valueCodeableConcept: - valueOf: datatypes/CWE_ELR/CodeableConcept - expressionType: resource - specs: CWE - - condition: $pid17 NOT_NULL - expressionType: nested - generateList: true - vars: - pid17: STRING_ALL, PID.17 - expressionsMap: - url: - type: SYSTEM_URL - value: religion - valueCodeableConcept: - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - expressionType: resource - specs: PID.17 - - condition: $pid22 NOT_NULL - expressionType: nested - generateList: true - vars: - pid22: STRING_ALL, PID.22 - specs: PID.22 * - expressionsMap: - url: - type: SYSTEM_URL - value: ethnic-group - valueCodeableConcept: - valueOf: datatypes/CWE_ELR/CodeableConcept - expressionType: resource - - condition: $pid23 NOT_NULL - expressionType: nested - generateList: true - vars: - pid23: STRING_ALL, PID.23 - expressionsMap: - url: - type: SYSTEM_URL - value: birthPlace - valueAddress: - expressionType: nested - generateList: true - expressionsMap: - text: - valueOf: PID.23 - type: STRING - expressionType: HL7Spec - - expressionType: nested - condition: $pid26 NOT_NULL - generateList: true - vars: - pid26: STRING_ALL, PID.26 - constants: - hl7v2Field: PID.26 - expressionsMap: - url: - type: SYSTEM_URL - value: patient-citizenship - extension: - generateList: true - expressionType: nested - specs: PID.26 * - expressionsMap: - url: - type: SYSTEM_URL - value: code - valueCodeableConcept: - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - expressionType: resource - - expressionType: nested - condition: $pid39 NOT_NULL - generateList: true - vars: - pid39: STRING_ALL, PID.39 - constants: - hl7v2Field: PID.39 - expressionsMap: - url: - type: SYSTEM_URL - value: patient-citizenship - extension: - generateList: true - expressionType: nested - specs: PID.39 * - expressionsMap: - url: - type: SYSTEM_URL - value: code - valueCodeableConcept: - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - expressionType: resource - - condition: $pid27 NOT_NULL - vars: - pid27: STRING_ALL, PID.27 - expressionType: nested - generateList: true - expressionsMap: - url: - type: SYSTEM_URL - value: veteran-military-status - valueCodeableConcept: - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - expressionType: resource - specs: PID.27 - - condition: $pid31 NOT_NULL - vars: - pid31: STRING_ALL, PID.31 - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: identity-unknown - valueString: - type: STRING - valueOf: PID.31 - expressionType: HL7Spec - - condition: $pid35 NOT_NULL || $pid36 NOT_NULL || $pid37 NOT_NULL - vars: - pid35: STRING_ALL, PID.35 - pid36: STRING_ALL, PID.36 - pid37: STRING, PID.37 - expressionType: nested - generateList: true - constants: - hl7v2Field: PID.35 - expressionsMap: - url: - type: SYSTEM_URL - value: patient-animal - extension: - generateList: true - expressionType: nested - expressions: - - condition: $pid35 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: species - valueCodeableConcept: - valueOf: datatypes/CWE_ELR/CodeableConcept - expressionType: resource - specs: PID.35 - - condition: $pid36 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: breed - valueCodeableConcept: - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - expressionType: resource - specs: PID.36 - - condition: $pid37 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: strain - valueString: - type: STRING - valueOf: PID.37 - expressionType: HL7Spec - - condition: $pd15 NOT_NULL - vars: - pd15: STRING_ALL, PD1.5 - expressionType: nested - generateList: true - expressionsMap: - url: - type: SYSTEM_URL - value: studentStatus - valueString: - type: STRING - valueOf: PD1.5 - expressionType: HL7Spec - - condition: $pd16 NOT_NULL - vars: - pd16: STRING_ALL, PD1.6 - expressionType: nested - generateList: true - expressionsMap: - url: - type: SYSTEM_URL - value: patient-disability - valueString: - type: STRING - valueOf: PD1.6 - expressionType: HL7Spec - - condition: $pd17 NOT_NULL - vars: - pd17: STRING_ALL, PD1.7 - expressionType: nested - generateList: true - expressionsMap: - url: - type: SYSTEM_URL - value: livingWill - valueString: - type: STRING - valueOf: PD1.7 - expressionType: HL7Spec - #Mapping inventory for XON[string] - - expressionType: nested - generateList: true - specs: PD1.14 * - expressionsMap: - url: - type: SYSTEM_URL - value: patient-congregation - valueString: - type: STRING - valueOf: XON.1 |XON.10 - expressionType: HL7Spec \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/PID/Provenance-Patient.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/PID/Provenance-Patient.yml deleted file mode 100644 index 0d87d0aa307..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/PID/Provenance-Patient.yml +++ /dev/null @@ -1,63 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Provenance -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -target: - valueOf: datatype/Reference - generateList: true - expressionType: resource - specs: $Patient - useGroup: true - -recorded: - type: STRING - valueOf: "GeneralUtils.getCurrentDateTimeUsingZoneId(ZONEID)" - expressionType: JEXL - -activity: - expressionType: nested - expressionsMap: - coding: - expressionType: nested - expressionsMap: - code: - type: STRING - valueOf: "UPDATE" - system: - type: STRING - valueOf: "https://terminology.hl7.org/CodeSystem/v3-DataOperation" - -occurredDateTime: - type: STRING - valueOf: "GeneralUtils.dateTimeWithZoneId(dateTimeIn,ZONEID)" - expressionType: JEXL - vars: - dateTimeIn: PID.33 - -agent: - expressionType: nested - generateList: true - vars: - msh34: STRING_ALL, PID.34 - condition: $msh34 NOT_NULL - expressionsMap: - type: - expressionType: nested - expressionsMap: - coding: - expressionType: nested - expressionsMap: - code: - type: STRING - valueOf: "performer" - system: - type: SYSTEM_URL - valueOf: "http://terminology.hl7.org/CodeSystem/provenance-participant-type" - who: - valueOf: ../../datatypes/v251/hl7/datatypes/HD/Organization - expressionType: reference - specs: PID.34 diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/PV1/Encounter.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/PV1/Encounter.yml deleted file mode 100644 index 3dd7c170849..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/PV1/Encounter.yml +++ /dev/null @@ -1,509 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Encounter - -# Not mapped because fields are deprecated in NIST and not in the mapping inventory -# PV1.15 -# PV1.21-29 -# PV1.40 -# PV2.2 -# PV2.4-6 -# PV2.14 -# PV2.16-20 -# PV2.24 -# PV2.27 -# PV2.28 -# PV2.30 - 37 -# PV2.39 -# PV2.41-49 -# PV1.20 is not mapped because there is no mapping for the FC datatype - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - - -class: - type: ACT_ENCOUNTER - specs: PV1.2 - expressionType: HL7Spec - -status: - vars: - pv145: STRING, PV1.45 - expressionType: nested - expressions: - - condition: $pv145 NOT_NULL - type: STRING - value: "finished" - - condition: $pv145 NULL - type: ENCOUNTER_STATUS_CODE_FHIR - expressionType: HL7Spec - specs: PV1.2 - -_class: - vars: - pv12: STRING_ALL, PV1.2 - condition: $pv12 NOT_NULL - expressionType: nested - expressionsMap: - extension: - expressionType: nested - generateList: true - expressionsMap: - url: - type: SYSTEM_URL - value: pv1-2-patient-class - valueString: - type: STRING - expressionType: HL7Spec - valueOf: PV1.2 - -location: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - vars: - pv13: String_ALL, PV1.3 - condition: $pv13 NOT_NULL - expressionsMap: - location: - valueOf: ../../datatypes/v251/hl7/datatypes/PL/Location - expressionType: reference - specs: PV1.3 - status: - expressionType: nested - vars: - pv121: STRING, PV1.2.1 - expressions: - - condition: $pv121 EQUALS P - type: STRING - value: planned - - condition: $pv121 NOT_EQUALS P || $pv121 NULL - type: STRING - value: active - extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - type: STRING - value: PV1.3 - - expressionType: nested - vars: - pv16: STRING_ALL, PV1.6 - condition: $pv16 NOT_NULL - expressionsMap: - location: - expressionType: reference - valueOf: ../../datatypes/v251/hl7/datatypes/PL/Location - specs: PV1.6 - status: - type: STRING - value: completed - extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - type: STRING - value: PV1.6 - - expressionType: nested - vars: - pv111: STRING_ALL, PV1.11 - condition: $pv111 NOT_NULL - expressionsMap: - location: - expressionType: reference - valueOf: ../../datatypes/v251/hl7/datatypes/PL/Location - specs: PV1.11 - status: - type: STRING - value: "active" - extension: - expressionType: nested - generateList: true - expressions: - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - type: STRING - value: PV1.11 - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: temporary-location - valueBoolean: - type: STRING - value: "true" - - expressionType: nested - vars: - pv142: STRING_ALL, PV1.42 - condition: $pv142 NOT_NULL - expressionsMap: - location: - expressionType: reference - valueOf: ../../datatypes/v251/hl7/datatypes/PL/Location - specs: PV1.42 - status: - type: STRING - value: "planned" - extension: - expressionType: nested - generateList: true - expressions: - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - type: STRING - value: PV1.42 - - expressionType: nested - vars: - pv143: STRING_ALL, PV1.43 - condition: $pv143 NOT_NULL - expressionsMap: - location: - expressionType: reference - valueOf: ../../datatypes/v251/hl7/datatypes/PL/Location - specs: PV1.43 - status: - type: STRING - value: "completed" - extension: - expressionType: nested - generateList: true - expressions: - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - type: STRING - value: PV1.43 - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: temporary-location - valueBoolean: - type: STRING - value: "true" - -participant: - generateList: true - expressionType: nested - expressions: - - vars: - pv17: STRING_ALL, PV1.7 - condition: $pv17 NOT_NULL - expressionType: nested - constants: - XCNHL7Field: PV1.7 - specs: PV1.7 * - generateList: true - expressionsMap: - individual: - expressionType: reference - valueOf: ../../datatypes/v251/hl7/datatypes/XCN/Practitioner - type: - expressionType: nested - generateList: true - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - type: STRING - value: "ATND" - system: - type: STRING - value: "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" - display: - type: STRING - value: "attender" - - vars: - pv18: STRING_ALL, PV1.8 - condition: $pv18 NOT_NULL - expressionType: nested - constants: - XCNHL7Field: PV1.8 - specs: PV1.8 * - generateList: true - expressionsMap: - individual: - expressionType: reference - valueOf: ../../datatypes/v251/hl7/datatypes/XCN/Practitioner - type: - expressionType: nested - generateList: true - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - type: STRING - value: "REF" - system: - type: STRING - value: "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" - text: - type: STRING - value: "referrer" - - vars: - pv19: STRING_ALL, PV1.9 - condition: $pv19 NOT_NULL - expressionType: nested - constants: - XCNHL7Field: PV1.9 - specs: PV1.9 * - generateList: true - expressionsMap: - individual: - expressionType: reference - valueOf: ../../datatypes/v251/hl7/datatypes/XCN/Practitioner - type: - expressionType: nested - generateList: true - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - type: STRING - value: "CON" - system: - type: STRING - value: "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" - text: - type: STRING - value: "consultant" - - vars: - pv117: STRING_ALL, PV1.17 - condition: $pv117 NOT_NULL - expressionType: nested - constants: - XCNHL7Field: PV1.17 - specs: PV1.17 * - generateList: true - expressionsMap: - individual: - expressionType: reference - valueOf: ../../datatypes/v251/hl7/datatypes/XCN/Practitioner - type: - expressionType: nested - generateList: true - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - type: STRING - value: "ADM" - system: - type: STRING - value: "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" - text: - type: STRING - value: "admitter" - - vars: - pv152: STRING_ALL, PV1.52 - condition: $pv152 NOT_NULL - expressionType: nested - constants: - XCNHL7Field: PV1.52 - specs: PV1.52 * - generateList: true - expressionsMap: - individual: - expressionType: reference - valueOf: ../../datatypes/v251/hl7/datatypes/XCN/Practitioner - type: - expressionType: nested - generateList: true - expressionsMap: - coding: - generateList: true - expressionType: nested - expressionsMap: - code: - type: STRING - value: "PART" - system: - type: STRING - value: "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" - text: - type: STRING - value: "Participation" - -type: - vars: - pv14: PV1.4 - condition: $pv14 NOT_NULL - type: STRING - valueOf: PV1.4 - expressionType: HL7Spec - -hospitalization: - vars: - pv15: STRING_ALL, PV1.5 - pv114: STRING_ALL, PV1.14 - pv136: STRING_ALL, PV1.36 - pv137: STRING_ALL, PV1.37 - pv138: STRING_ALL, PV1.38 - condition: $pv15 NOT_NULL || $pv113 NOT_NULL || $pv114 NOT_NULL || $pv116 NOT_NULL || $pv136 NOT_NULL || $pv137 NOT_NULL || $pv138 NOT_NULL - expressionType: nested - expressionsMap: - preAdmissionIdentifier: - condition: $pv15 NOT_NULL - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/CX/Identifier - specs: PV1.5 - admitSource: - condition: $pv114 NOT_NULL - type: STRING - valueOf: PV1.14 - expressionType: HL7Spec - dischargeDisposition: - condition: $pv136 NOT_NULL - type: STRING - valueOf: PV1.36 - expressionType: HL7Spec - destination: - condition: $pv137 NOT_NULL - expressionType: reference - valueOf: ../../datatypes/v251/hl7/datatypes/DLD/Location - specs: PV1.37 - dietPreference: - condition: $pv138 NOT_NULL - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - specs: PV1.38 - -serviceType: - condition: $pv110 NOT_NULL - vars: - pv110: PV1.10 - type: STRING - valueOf: PV1.10 - expressionType: HL7Spec - -identifier: - expressionType: nested - generateList: true - expressions: - - vars: - pv119: STRING_ALL, PV1.19 - condition: $pv119 NOT_NULL - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/CX/Identifier - specs: PV1.19 * - generateList: true - constants: - code: "VN" - system: "http://terminology.hl7.org/CodeSystem/v2-0203" - CXIdentifierText: "visit number" - CXIdentifierField: PV1.19 - - vars: - pv150: STRING_ALL, PV1.50 - condition: $pv150 NOT_NULL - expressionType: resource - specs: PV1.50 * - generateList: true - valueOf: ../../datatypes/v251/hl7/datatypes/CX/Identifier - constants: - CXIdentifierField: PV1.50 - system: "http://terminology.hl7.org/CodeSystem/v2-0203" - -period: - expressionType: nested - vars: - pv144: STRING, PV1.44 - pv145: STRING, PV1.45 - expressionsMap: - start: - valueOf: "GeneralUtils.dateTimeWithZoneId(pv144,ZONEID)" - expressionType: JEXL - _start: - expressionType: nested - condition: $pv144 NOT_NULL - expressionsMap: - extension_1: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2-date-time - valueString: - type: STRING - valueOf: PV1.44 - expressionType: HL7Spec - end: - valueOf: "GeneralUtils.dateTimeWithZoneId(pv145,ZONEID)" - expressionType: JEXL - _end: - expressionType: nested - condition: $pv145 NOT_NULL - expressionsMap: - extension_1: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2-date-time - valueString: - type: STRING - valueOf: PV1.45 - expressionType: HL7Spec - -extension: - generateList: true - expressionType: nested - expressions: - - vars: - pv240: STRING_ALL, PV2.40 - condition: $pv240 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: admission-level-of-care - valueCodeableConcept: - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - specs: PV2.40 - # # PV1 Data - - expressionType: resource - valueOf: segments/PV1/PV1Extension - # # PV2 Data - - expressionType: resource - valueOf: segments/PV1/PV2Extension - - -subject: - valueOf: datatype/Reference - expressionType: resource - specs: $Patient - - diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/PV1/PV1Extension.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/PV1/PV1Extension.yml deleted file mode 100644 index 8eb572d4e8f..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/PV1/PV1Extension.yml +++ /dev/null @@ -1,190 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - type: SYSTEM_URL - value: pv1-patient-visit - -extension: - expressionType: nested - generateList: true - expressions: - - vars: - pv112: STRING_ALL, PV1.12 - condition: $pv112 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: PV1.12 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: PV1.12 - - vars: - pv118: STRING_ALL, PV1.18 - condition: $pv118 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: PV1.18 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: PV1.18 - - vars: - pv130: STRING_ALL, PV1.30 - condition: $pv130 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: PV1.30 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: PV1.30 - - vars: - pv131: STRING_ALL, PV1.31 - condition: $pv131 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: PV1.31 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: PV1.31 - - vars: - pv132: STRING_ALL, PV1.32 - condition: $pv132 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: PV1.32 - valueDecimal: - type: STRING - expressionType: HL7Spec - valueOf: PV1.32 - - vars: - pv133: STRING_ALL, PV1.33 - condition: $pv133 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: PV1.33 - valueDecimal: - type: STRING - expressionType: HL7Spec - valueOf: PV1.33 - - vars: - pv134: STRING_ALL, PV1.34 - condition: $pv134 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: PV1.34 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: PV1.34 - - vars: - pv135: STRING, PV1.35 - condition: $pv135 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: PV1.35 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: PV1.35 - - vars: - pv139: STRING_ALL, PV1.39 - condition: $pv139 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: PV1.39 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: PV1.39 - - vars: - pv141: STRING_ALL, PV1.41 - condition: $pv141 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: PV1.41 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: PV1.41 - - vars: - pv146: STRING_ALL, PV1.46 - condition: $pv146 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: PV1.46 - valueDecimal: - type: STRING - expressionType: HL7Spec - valueOf: PV1.46 - - vars: - pv147: STRING_ALL, PV1.47 - condition: $pv147 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: PV1.47 - valueDecimal: - type: STRING - expressionType: HL7Spec - valueOf: PV1.47 - - vars: - pv148: STRING_ALL, PV1.48 - condition: $pv148 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: PV1.48 - valueDecimal: - type: STRING - expressionType: HL7Spec - valueOf: PV1.48 - - vars: - pv149: STRING_ALL, PV1.49 - condition: $pv149 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: PV1.49 - valueDecimal: - type: STRING - expressionType: HL7Spec - valueOf: PV1.49 - - vars: - pv151: STRING_ALL, PV1.51 - condition: $pv151 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: PV1.51 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: PV1.51 \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/PV1/PV2Extension.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/PV1/PV2Extension.yml deleted file mode 100644 index 27eeb7705fe..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/PV1/PV2Extension.yml +++ /dev/null @@ -1,59 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - type: SYSTEM_URL - value: pv2-patient-visit-additional-information - -extension: - expressionType: nested - generateList: true - expressions: - - vars: - pv215: STRING_ALL, PV2.15 - condition: $pv215 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: PV2.15 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: PV2.15 - - vars: - pv223: STRING_ALL, PV2.23 - condition: $pv223 NOT_NULL - expressionType: nested - specs: PV2.23 * - generateList: true - expressionsMap: - url: - type: STRING - value: PV2.23 - valueReference: - expressionType: reference - valueOf: ../../datatypes/v251/hl7/datatypes/XON/Organization - - vars: - pv226: STRING_ALL, PV2.26 - condition: $pv226 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: PV2.26 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: PV2.26 - - vars: - pv229: STRING_ALL, PV2.29 - condition: $pv229 NOT_NULL - expressionType: nested - expressionsMap: - url: - type: STRING - value: PV2.29 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: PV2.29 \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/SFT/Device.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/SFT/Device.yml deleted file mode 100644 index d85fdf51b87..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/SFT/Device.yml +++ /dev/null @@ -1,110 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Device - -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -manufacturer: - expressionType: nested - vars: - xon1: SFT.1.1 - xon10: SFT.1.10 - expressions: - - condition: $xon1 NOT_NULL - type: String - expressionType: HL7Spec - valueOf: $xon1 - - condition: $xon1 NULL && $xon10 NOT_NULL - type: String - expressionType: HL7Spec - valueOf: $xon10 - -version: - expressionType: nested - expressionsMap: - value: - condition: $sft2 NOT_NULL - vars: - sft2: SFT.2 - type: String - expressionType: HL7Spec - valueOf: $sft2 - extension: - generateList: true - expressionType: nested - condition: $dateTimeIn NOT_NULL - vars: - dateTimeIn: SFT.6, GeneralUtils.dateTimeWithZoneId(dateTimeIn,ZONEID) - hl7Date: SFT.6 - expressionsMap: - url: - type: SYSTEM_URL - value: software-install-date - valueDateTime: - valueOf: $dateTimeIn - expressionType: HL7Spec - _valueDateTime: - expressionType: nested - expressionsMap: - extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2-date-time - valueString: - type: STRING - valueOf: $hl7Date - expressionType: HL7Spec - -deviceName: - expressionType: nested - condition: $sft3 NOT_NULL - vars: - sft3: SFT.3 - expressionsMap: - name: - type: String - expressionType: HL7Spec - valueOf: $sft3 - type: - type: String - value: "manufacturer-name" - -modelNumber: - condition: $sft4 NOT_NULL - vars: - sft4: SFT.4 - type: String - expressionType: HL7Spec - valueOf: $sft4 - -note: - expressionType: nested - condition: $sft5 NOT_NULL - vars: - sft5: SFT.5 - expressionsMap: - text: - type: String - expressionType: HL7Spec - valueOf: $sft5 - -extension: - expressionType: nested - vars: - sft1: STRING_ALL, SFT.1 - condition: $sft1 NOT_NULL - generateList: true - expressionsMap: - url: - type: SYSTEM_URL - value: software-vendor-org - valueReference: - valueOf: ../../datatypes/v251/hl7/datatypes/XON/Organization - expressionType: reference - specs: SFT.1 \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/SPM/EIP/Specimen.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/SPM/EIP/Specimen.yml deleted file mode 100644 index a92c289dfcd..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/SPM/EIP/Specimen.yml +++ /dev/null @@ -1,28 +0,0 @@ -# $schema: ./../../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Specimen -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -identifier: - vars: - eip1: EIP.1 - eip2: EIP.2 - generateList: true - expressionType: nested - specs: EIP * - expressions: - - condition: $eip1 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EIP/Identifier-PlacerAssignedIdentifier - expressionType: resource - constants: - hl7Use: "specimen-id-placer" - backupExtension: "filler-assigned-identifier" - - condition: $eip2 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EIP/Identifier-FillerAssignedIdentifier - expressionType: resource - constants: - hl7Use: "specimen-id-filler" - backupExtension: "placer-assigned-identifier" \ No newline at end of file diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/SPM/SPMExtension.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/SPM/SPMExtension.yml deleted file mode 100644 index 70159907711..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/SPM/SPMExtension.yml +++ /dev/null @@ -1,237 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -url: - type: SYSTEM_URL - value: spm-specimen - -extension: - generateList: true - expressionType: nested - expressions: - - expressionType: nested - vars: - spm31: SPM.3.1 - condition: $spm31 NOT_NULL - specs: SPM.3 * - generateList: true - expressionsMap: - url: - type: STRING - value: SPM.3.1 - valueIdentifier: - valueOf: ../../datatypes/v251/hl7/datatypes/EIP/Identifier-PlacerAssignedIdentifier - expressionType: resource - constants: - hl7v2Field: SPM.3 - backupExtension: "filler-assigned-identifier" - - expressionType: nested - vars: - spm32: SPM.3.2 - condition: $spm32 NOT_NULL - specs: SPM.3 * - generateList: true - expressionsMap: - url: - type: STRING - value: SPM.3.2 - valueIdentifier: - valueOf: ../../datatypes/v251/hl7/datatypes/EIP/Identifier-FillerAssignedIdentifier - expressionType: resource - constants: - hl7v2Field: SPM.3 - backupExtension: "placer-assigned-identifier" - - expressionType: nested - vars: - spm5: SPM.5 - condition: $spm5 NOT_NULL - specs: SPM.5 * - generateList: true - expressionsMap: - url: - type: STRING - value: SPM.5 - valueCodeableConcept: - expressionType: resource - valueOf: datatypes/CWE_ELR/CodeableConcept - - expressionType: nested - vars: - spm6: SPM.6 - condition: $spm6 NOT_NULL - specs: SPM.6 * - generateList: true - expressionsMap: - url: - type: STRING - value: SPM.6 - valueCodeableConcept: - expressionType: resource - valueOf: datatypes/CWE_ELR/CodeableConcept - - expressionType: nested - vars: - spm10: SPM.10 - condition: $spm10 NOT_NULL - specs: SPM.10 - generateList: true - expressionsMap: - url: - type: STRING - value: SPM.10 - valueCodeableConcept: - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - - expressionType: nested - vars: - spm11: SPM.11 - condition: $spm11 NOT_NULL - specs: SPM.11 * - generateList: true - expressionsMap: - url: - type: STRING - value: SPM.11 - valueCodeableConcept: - expressionType: resource - valueOf: datatypes/CWE_ELR/CodeableConcept - - expressionType: nested - vars: - spm13: SPM.13 - condition: $spm13 NOT_NULL - generateList: true - expressionsMap: - url: - type: STRING - value: SPM.13 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: SPM.13 - - expressionType: nested - vars: - spm15: SPM.15 - condition: $spm15 NOT_NULL - specs: SPM.15 * - generateList: true - expressionsMap: - url: - type: STRING - value: SPM.15 - valueCodeableConcept: - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - - expressionType: nested - vars: - spm16: SPM.16 - condition: $spm16 NOT_NULL - specs: SPM.16 * - generateList: true - expressionsMap: - url: - type: STRING - value: SPM.16 - valueCodeableConcept: - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - - expressionType: nested - vars: - spm19: SPM.19 - condition: $spm19 NOT_NULL - generateList: true - expressionsMap: - url: - type: STRING - value: SPM.19 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: SPM.19 - - expressionType: nested - vars: - spm20: SPM.20 - condition: $spm20 NOT_NULL - generateList: true - expressionsMap: - url: - type: STRING - value: SPM.20 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: SPM.20 - - expressionType: nested - vars: - spm22: SPM.22 - condition: $spm22 NOT_NULL - specs: SPM.22 - generateList: true - expressionsMap: - url: - type: STRING - value: SPM.22 - valueCodeableConcept: - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - - expressionType: nested - vars: - spm23: SPM.23 - condition: $spm23 NOT_NULL - specs: SPM.23 - generateList: true - expressionsMap: - url: - type: STRING - value: SPM.23 - valueCodeableConcept: - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - - expressionType: nested - vars: - spm25: SPM.25 - condition: $spm25 NOT_NULL - specs: SPM.25 - generateList: true - expressionsMap: - url: - type: STRING - value: SPM.25 - valueQuantity: - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/CQ/Quantity - - expressionType: nested - vars: - spm26: SPM.26 - condition: $spm26 NOT_NULL - generateList: true - expressionsMap: - url: - type: STRING - value: SPM.26 - valueString: - type: STRING - expressionType: HL7Spec - valueOf: SPM.26 - - expressionType: nested - vars: - spm28: SPM.28 - condition: $spm28 NOT_NULL - specs: SPM.28 - generateList: true - expressionsMap: - url: - type: STRING - value: SPM.28 - valueCodeableConcept: - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - - expressionType: nested - vars: - spm29: SPM.29 - condition: $spm29 NOT_NULL - specs: SPM.29 - generateList: true - expressionsMap: - url: - type: STRING - value: SPM.29 - valueCodeableConcept: - expressionType: resource - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept diff --git a/prime-router/metadata/HL7/v251-elr/hl7/segments/SPM/Specimen.yml b/prime-router/metadata/HL7/v251-elr/hl7/segments/SPM/Specimen.yml deleted file mode 100644 index b01680278a4..00000000000 --- a/prime-router/metadata/HL7/v251-elr/hl7/segments/SPM/Specimen.yml +++ /dev/null @@ -1,232 +0,0 @@ -# $schema: ./../../../../../json_schema/fhir/hl7-to-fhir-mapping-resource-template.json - -resourceType: Specimen -id: - type: STRING - valueOf: "GeneralUtils.generateResourceId()" - expressionType: JEXL - -identifier: - vars: - spm2: SPM.2 - generateList: true - expressionType: nested - expressions: - - condition: $spm21 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EIP/Identifier-PlacerAssignedIdentifier - expressionType: resource - specs: SPM.2 - vars: - spm21: SPM.2.1 - constants: - hl7v2Component: SPM.2.1 - backupExtension: "filler-assigned-identifier" - - condition: $spm22 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/EIP/Identifier-FillerAssignedIdentifier - expressionType: resource - specs: SPM.2 - vars: - spm22: SPM.2.2 - constants: - hl7v2Component: SPM.2.2 - backupExtension: "placer-assigned-identifier" - -parent: - condition: $spm3 NOT_NULL - valueOf: segments/SPM/EIP/Specimen - expressionType: reference - vars: - spm3: SPM.3 - specs: SPM.3 * - -type: - valueOf: datatypes/CWE_ELR/CodeableConcept - expressionType: resource - specs: SPM.4 - -container: - condition: $spm6 NOT_NULL || $spm27 NOT_NULL - expressionType: nested - generateList: true - vars: - spm6: SPM.6 - spm27: SPM.27 - expressionsMap: - additiveCodeableConcept: - expressionType: nested - expressions: - - condition: $spm6 NOT_NULL - valueOf: datatypes/CWE_ELR/CodeableConcept - expressionType: resource - specs: SPM.6 * - type: - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - expressionType: resource - specs: SPM.27 - -collection: - condition: $spm7 NOT_NULL || $spm8 NOT_NULL || $spm9 NOT_NULL || $spm12 NOT_NULL || $spm17 NOT_NULL - expressionType: nested - generateList: true - vars: - spm7: SPM.7 - spm8: SPM.8 - spm9: SPM.9 - spm12: SPM.12 - spm17: SPM.17 - expressionsMap: - method: - valueOf: datatypes/CWE_ELR/CodeableConcept - expressionType: resource - specs: SPM.7 - bodySite: - valueOf: datatypes/CWE_ELR/CodeableConcept - expressionType: resource - specs: SPM.8 - extension: - condition: $spm9 NOT_NULL - expressionType: nested - generateList: true - specs: SPM.9 * - expressionsMap: - url: - type: SYSTEM_URL - value: bodySiteModifier - valueCodeableConcept: - valueOf: datatypes/CWE_ELR/CodeableConcept - expressionType: resource - quantity: - valueOf: datatypes/CQ_ELR/Quantity - expressionType: resource - specs: SPM.12 - collectedPeriod: - expressionType: nested - vars: - spm17: SPM.17 - expressions: - - condition: $end NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/DR/Period - expressionType: resource - specs: SPM.17 - vars: - start: SPM.17.1 - end: SPM.17.2 - dateTimeIn: SPM.17.1 - dateTimeOut: SPM.17.2 - collectedDateTime: - expressionType: nested - expressions: - - condition: $end NULL - type: STRING - valueOf: "GeneralUtils.dateTimeWithZoneId(dateTimeIn,ZONEID)" - expressionType: JEXL - vars: - dateTimeIn: SPM.17.1 - end: SPM.17.2 - _collectedDateTime: - condition: $dateTimeIn NOT_NULL && $end NULL - expressionType: nested - vars: - dateTimeIn: SPM.17.1 - end: SPM.17.2 - expressionsMap: - extension_1: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2-date-time - valueString: - type: STRING - valueOf: $dateTimeIn - expressionType: HL7Spec - -note: - condition: $spm14 NOT_NULL - expressionType: nested - generateList: true - vars: - spm14: STRING_ALL, SPM.14 - specs: SPM.14 * - expressionsMap: - text: - type: STRING - valueOf: ST - expressionType: HL7Spec - extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2Field - valueString: - type: STRING - valueOf: SPM.14 - -receivedTime: - condition: $dateTimeIn NOT_NULL - type: STRING - valueOf: "GeneralUtils.dateTimeWithZoneId(dateTimeIn,ZONEID)" - expressionType: JEXL - vars: - dateTimeIn: SPM.18.1 -_receivedTime: - condition: $dateTimeIn NOT_NULL - expressionType: nested - vars: - dateTimeIn: SPM.18.1 - expressionsMap: - extension: - generateList: true - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - value: hl7v2-date-time - valueString: - type: STRING - valueOf: $dateTimeIn - expressionType: HL7Spec - -status: - type: SPECIMEN_STATUS - valueOf: SPM.20 - expressionType: HL7Spec - -extension: - expressionType: nested - generateList: true - expressions: - - expressionType: nested - expressionsMap: - url: - type: SYSTEM_URL - valueOf: hl7v2Segment - valueString: - valueOf: 'SPM' - - expressionType: resource - valueOf: segments/SPM/SPMExtension - - expressionType: nested - condition: $spm21 NOT_NULL - generateList: true - vars: - spm21: SPM.21 - specs: SPM.21 * - expressionsMap: - url: - type: SYSTEM_URL - value: reject-reason - valueCodeableConcept: - valueOf: datatypes/CWE_ELR/CodeableConcept - expressionType: resource - -condition: - vars: - spm24: SPM.24 - condition: $spm24 NOT_NULL - valueOf: ../../datatypes/v251/hl7/datatypes/CWE/CodeableConcept - expressionType: resource - generateList: true - specs: SPM.24 * diff --git a/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251/CNNtoPractitionerTests.kt b/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251/CNNtoPractitionerTests.kt deleted file mode 100644 index 3e1bc05ce60..00000000000 --- a/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251/CNNtoPractitionerTests.kt +++ /dev/null @@ -1,17 +0,0 @@ -package gov.cdc.prime.router.datatests.mappinginventory.v251 - -import gov.cdc.prime.router.datatests.mappinginventory.verifyHL7ToFHIRToHL7Mapping -import org.junit.jupiter.api.Test - -class CNNtoPractitionerTests { - @Test - fun `test correctly handles ISO universal id type`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251/cnn/cnn-to-Practitioner", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251/CWEtoCodeableConceptTests.kt b/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251/CWEtoCodeableConceptTests.kt deleted file mode 100644 index 6453e38099f..00000000000 --- a/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251/CWEtoCodeableConceptTests.kt +++ /dev/null @@ -1,105 +0,0 @@ -package gov.cdc.prime.router.datatests.mappinginventory.v251 - -import gov.cdc.prime.router.datatests.mappinginventory.verifyHL7ToFHIRToHL7Mapping -import org.junit.jupiter.api.Test - -class CWEtoCodeableConceptTests { - @Test - fun `test value in CWE-1`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251/cwe/codeable-concept/cwe-3-test-value-cwe1", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } - - @Test - fun `test value in CWE-2`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251/cwe/codeable-concept/cwe-4-test-value-cwe2", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } - - @Test - fun `test value in CWE-3`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251/cwe/codeable-concept/cwe-5-test-value-cwe3", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } - - @Test - fun `test value in CWE-4`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251/cwe/codeable-concept/cwe-6-test-value-cwe4", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } - - @Test - fun `test value in CWE-5`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251/cwe/codeable-concept/cwe-7-test-value-cwe5", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } - - @Test - fun `test value in CWE-6`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251/cwe/codeable-concept/cwe-8-test-value-cwe6", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } - - @Test - fun `test value in CWE-7`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251/cwe/codeable-concept/cwe-9-test-value-cwe7", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } - - @Test - fun `test value in CWE-8`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251/cwe/codeable-concept/cwe-10-test-value-cwe8", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } - - @Test - fun `test value in CWE-9`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251/cwe/codeable-concept/cwe-11-test-value-cwe9", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251/NDLtoPractitionerRoleTests.kt b/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251/NDLtoPractitionerRoleTests.kt deleted file mode 100644 index 2d2328918f0..00000000000 --- a/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251/NDLtoPractitionerRoleTests.kt +++ /dev/null @@ -1,17 +0,0 @@ -package gov.cdc.prime.router.datatests.mappinginventory.v251 - -import gov.cdc.prime.router.datatests.mappinginventory.verifyHL7ToFHIRToHL7Mapping -import org.junit.jupiter.api.Test - -class NDLtoPractitionerRoleTests { - @Test - fun `test translate to NDL to PractitionerRole to NDL`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251/ndl/NDL-to-PractitionerRole", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251/XADtoAddressTests.kt b/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251/XADtoAddressTests.kt deleted file mode 100644 index ebfa8d4dd9d..00000000000 --- a/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251/XADtoAddressTests.kt +++ /dev/null @@ -1,17 +0,0 @@ -package gov.cdc.prime.router.datatests.mappinginventory.v251 - -import gov.cdc.prime.router.datatests.mappinginventory.verifyHL7ToFHIRToHL7Mapping -import org.junit.jupiter.api.Test - -class XADtoAddressTests { - @Test - fun `xad to address`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251/xad/xad-to-address", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251/XTNToContactPointTests.kt b/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251/XTNToContactPointTests.kt deleted file mode 100644 index 538c578a618..00000000000 --- a/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251/XTNToContactPointTests.kt +++ /dev/null @@ -1,17 +0,0 @@ -package gov.cdc.prime.router.datatests.mappinginventory.v251 - -import gov.cdc.prime.router.datatests.mappinginventory.verifyHL7ToFHIRToHL7Mapping -import org.junit.jupiter.api.Test - -class XTNToContactPointTests { - @Test - fun `xtn to contact point`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251/xtn/xtn-to-contact-point", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251elr/CQELRtoQuantityTest.kt b/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251elr/CQELRtoQuantityTest.kt deleted file mode 100644 index 328e1892fa2..00000000000 --- a/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251elr/CQELRtoQuantityTest.kt +++ /dev/null @@ -1,17 +0,0 @@ -package gov.cdc.prime.router.datatests.mappinginventory.v251elr - -import gov.cdc.prime.router.datatests.mappinginventory.verifyHL7ToFHIRToHL7Mapping -import org.junit.jupiter.api.Test - -class CQELRtoQuantityTest { - @Test - fun `test value for CQ_ELR`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251-elr/cq/cq-to-quantity", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251elr/CWEELRtoCodeableConceptTests.kt b/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251elr/CWEELRtoCodeableConceptTests.kt deleted file mode 100644 index 264592d3853..00000000000 --- a/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251elr/CWEELRtoCodeableConceptTests.kt +++ /dev/null @@ -1,160 +0,0 @@ -package gov.cdc.prime.router.datatests.mappinginventory.v251elr - -import gov.cdc.prime.router.datatests.mappinginventory.verifyHL7ToFHIRToHL7Mapping -import org.junit.jupiter.api.Test - -class CWEELRtoCodeableConceptTests { - @Test - fun `test value in CWE-1`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251-elr/cwe/codeable-concept/cwe-3-test-value-cwe1", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } - - @Test - fun `test value in CWE-2`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251-elr/cwe/codeable-concept/cwe-4-test-value-cwe2", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } - - @Test - fun `test value in CWE-3`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251-elr/cwe/codeable-concept/cwe-5-test-value-cwe3", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } - - @Test - fun `test value in CWE-4`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251-elr/cwe/codeable-concept/cwe-6-test-value-cwe4", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } - - @Test - fun `test value in CWE-5`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251-elr/cwe/codeable-concept/cwe-7-test-value-cwe5", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } - - @Test - fun `test value in CWE-6`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251-elr/cwe/codeable-concept/cwe-8-test-value-cwe6", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } - - @Test - fun `test value in CWE-7`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251-elr/cwe/codeable-concept/cwe-9-test-value-cwe7", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } - - @Test - fun `test value in CWE-8`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251-elr/cwe/codeable-concept/cwe-10-test-value-cwe8", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } - - @Test - fun `test value in CWE-9`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251-elr/cwe/codeable-concept/cwe-11-test-value-cwe9", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } - - @Test - fun `test value in CWE-10`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251-elr/cwe/codeable-concept/cwe-12-test-value-cwe10", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } - - @Test - fun `test value in CWE-11`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251-elr/cwe/codeable-concept/cwe-13-test-value-cwe11", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } - - @Test - fun `test value in CWE-12`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251-elr/cwe/codeable-concept/cwe-14-test-value-cwe12", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } - - @Test - fun `test value in CWE-13`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251-elr/cwe/codeable-concept/cwe-15-test-value-cwe13", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } - - @Test - fun `test value in CWE-14`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251-elr/cwe/codeable-concept/cwe-16-test-value-cwe14", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251elr/ORUR01ELRFullTest.kt b/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251elr/ORUR01ELRFullTest.kt deleted file mode 100644 index 69a67c1d832..00000000000 --- a/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251elr/ORUR01ELRFullTest.kt +++ /dev/null @@ -1,17 +0,0 @@ -package gov.cdc.prime.router.datatests.mappinginventory.v251elr - -import gov.cdc.prime.router.datatests.mappinginventory.verifyHL7ToFHIRToHL7Mapping -import org.junit.jupiter.api.Test - -class ORUR01ELRFullTest { - @Test - fun `test ORU_R01 all segments`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251-elr/orur01/oru_r01-full", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251elr/PRLELRtoServiceRequestTest.kt b/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251elr/PRLELRtoServiceRequestTest.kt deleted file mode 100644 index 9d42644564d..00000000000 --- a/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251elr/PRLELRtoServiceRequestTest.kt +++ /dev/null @@ -1,17 +0,0 @@ -package gov.cdc.prime.router.datatests.mappinginventory.v251elr - -import gov.cdc.prime.router.datatests.mappinginventory.verifyHL7ToFHIRToHL7Mapping -import org.junit.jupiter.api.Test - -class PRLELRtoServiceRequestTest { - @Test - fun `test value for PRL_ELR`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251-elr/prl/prl-to-servicerequest", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251elr/XPNELRtoHumanNameTests.kt b/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251elr/XPNELRtoHumanNameTests.kt deleted file mode 100644 index 9d9c6d6a165..00000000000 --- a/prime-router/src/testIntegration/kotlin/datatests/mappinginventory/v251elr/XPNELRtoHumanNameTests.kt +++ /dev/null @@ -1,17 +0,0 @@ -package gov.cdc.prime.router.datatests.mappinginventory.v251elr - -import gov.cdc.prime.router.datatests.mappinginventory.verifyHL7ToFHIRToHL7Mapping -import org.junit.jupiter.api.Test - -class XPNELRtoHumanNameTests { - @Test - fun `test translate to HL7 to FHIR to HL7`() { - assert( - verifyHL7ToFHIRToHL7Mapping( - "v251-elr/xpn/xpn-to-humanname-xpn12-13-populated-xpn10-empty", - profile = "./metadata/HL7/v251-elr", - outputSchema = "classpath:/metadata/hl7_mapping/v251-elr/ORU_R01.yml", - ).passed - ) - } -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cq/cq-to-quantity.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cq/cq-to-quantity.fhir deleted file mode 100644 index eb3f5decdbd..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cq/cq-to-quantity.fhir +++ /dev/null @@ -1,259 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713403029141816000.d1ff92b0-51ab-4c76-84d1-de6aee6b66c4", - "meta" : { - "lastUpdated" : "2024-04-17T19:17:09.151-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "12345" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "12345" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713403029242616000.10c1427f-969a-4ef8-88f0-cdacb885f392" - } - } - }, { - "fullUrl" : "Organization/1713403029242616000.10c1427f-969a-4ef8-88f0-cdacb885f392", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403029242616000.10c1427f-969a-4ef8-88f0-cdacb885f392", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713403029775863000.7cb12d62-b747-49d8-a949-bdeac15f7a00", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403029775863000.7cb12d62-b747-49d8-a949-bdeac15f7a00", - "target" : [ { - "reference" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b" - }, { - "reference" : "DiagnosticReport/1713403030132492000.260ba99f-27ad-4e5a-a581-a84fb9a75e5c" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713403029790190000.3d26679e-e908-4f04-b7b0-81bb315e714e", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403029790190000.3d26679e-e908-4f04-b7b0-81bb315e714e", - "recorded" : "2024-04-17T19:17:09Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713403029788752000.9f7db772-7ff5-499d-b45b-d51faafe5bbc" - } - } ] - } - }, { - "fullUrl" : "Organization/1713403029788752000.9f7db772-7ff5-499d-b45b-d51faafe5bbc", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403029788752000.9f7db772-7ff5-499d-b45b-d51faafe5bbc", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713403029815669000.fbda1219-5e0b-4c16-b9a7-45b40e30b4ac", - "resource" : { - "resourceType" : "Patient", - "id" : "1713403029815669000.fbda1219-5e0b-4c16-b9a7-45b40e30b4ac" - } - }, { - "fullUrl" : "Provenance/1713403029816912000.d951d3ea-7ec1-48e3-b360-841b21872c90", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403029816912000.d951d3ea-7ec1-48e3-b360-841b21872c90", - "target" : [ { - "reference" : "Patient/1713403029815669000.fbda1219-5e0b-4c16-b9a7-45b40e30b4ac" - } ], - "recorded" : "2024-04-17T19:17:09Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - }, { - "fullUrl" : "Specimen/1713403029819193000.539e1518-2f7a-4bfc-8ac1-a2435b39a705", - "resource" : { - "resourceType" : "Specimen", - "id" : "1713403029819193000.539e1518-2f7a-4bfc-8ac1-a2435b39a705", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Segment", - "valueString" : "OBR" - } ] - } - }, { - "fullUrl" : "Specimen/1713403030109000000.b832f4a5-5538-4472-a97d-15354b755333", - "resource" : { - "resourceType" : "Specimen", - "id" : "1713403030109000000.b832f4a5-5538-4472-a97d-15354b755333", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Segment", - "valueString" : "SPM" - } ], - "collection" : { - "quantity" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cq-units", - "valueCodeableConcept" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/coding-system-oid", - "valueOid" : "urn:oid:TEST1234" - } ], - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "LN" - } ], - "system" : "http://loinc.org", - "version" : "PrimaryVersion", - "code" : "PrimaryCode", - "display" : "Primary Code Display" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "secondary-alt-coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "L" - } ], - "system" : "https://terminology.hl7.org/CodeSystem-v2-0396.html#v2-0396-99zzzorL", - "version" : "SecondaryAltVersion", - "code" : "SecondaryAltCode", - "display" : "SecondaryAltText" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "alt-coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "L" - } ], - "system" : "https://terminology.hl7.org/CodeSystem-v2-0396.html#v2-0396-99zzzorL", - "version" : "AltVersion", - "code" : "AltCode", - "display" : "AltText" - } ], - "text" : "OriginalText" - } - } ], - "value" : 1, - "unit" : "OriginalText" - } - } - } - }, { - "fullUrl" : "ServiceRequest/1713403030125371000.27df5449-e8c3-4686-8f21-4cec242d3fb6", - "resource" : { - "resourceType" : "ServiceRequest", - "id" : "1713403030125371000.27df5449-e8c3-4686-8f21-4cec242d3fb6", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/obr-observation-request", - "extension" : [ { - "url" : "OBR.25", - "valueId" : "F" - } ] - } ], - "status" : "unknown", - "code" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - } ], - "code" : "TEST" - } ] - }, - "subject" : { - "reference" : "Patient/1713403029815669000.fbda1219-5e0b-4c16-b9a7-45b40e30b4ac" - } - } - }, { - "fullUrl" : "DiagnosticReport/1713403030132492000.260ba99f-27ad-4e5a-a581-a84fb9a75e5c", - "resource" : { - "resourceType" : "DiagnosticReport", - "id" : "1713403030132492000.260ba99f-27ad-4e5a-a581-a84fb9a75e5c", - "basedOn" : [ { - "reference" : "ServiceRequest/1713403030125371000.27df5449-e8c3-4686-8f21-4cec242d3fb6" - } ], - "status" : "final", - "code" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - } ], - "code" : "TEST" - } ] - }, - "subject" : { - "reference" : "Patient/1713403029815669000.fbda1219-5e0b-4c16-b9a7-45b40e30b4ac" - }, - "specimen" : [ { - "reference" : "Specimen/1713403030109000000.b832f4a5-5538-4472-a97d-15354b755333" - }, { - "reference" : "Specimen/1713403029819193000.539e1518-2f7a-4bfc-8ac1-a2435b39a705" - } ] - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cq/cq-to-quantity.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cq/cq-to-quantity.hl7 deleted file mode 100644 index 77ebe056c3b..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cq/cq-to-quantity.hl7 +++ /dev/null @@ -1,4 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|12345||2.5.1|||||USA|UNICODE UTF-8 -PID|1 -OBR|1|||TEST|||||||||||||||||||||F -SPM|1|||||||||||1^PrimaryCode&Primary Code Display&LN&AltCode&AltText&L&PrimaryVersion&AltVersion&OriginalText&SecondaryAltCode&SecondaryAltText&L&SecondaryAltVersion&TEST1234 \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/CWE-to-CodeableConcept.csv b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/CWE-to-CodeableConcept.csv deleted file mode 100644 index 851665d6c57..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/CWE-to-CodeableConcept.csv +++ /dev/null @@ -1,25 +0,0 @@ -HL7 v2,,,,,,Condition (IF True),,,HL7 FHIR,,,,,,,,,Comments -Sort Order,Identifier,Name,Data Type,Cardinality - Min,Cardinality - Max,Computable ANTLR,Computable FHIRPath,Narrative,FHIR Attribute/ Data Type,,Data Type,Cardinality - Min,Cardinality - Max,Data Type Mapping,"Vocabulary Mapping -(IS, ID, CE, CNE, CWE)",Assignment,, -1,CWE.1,Identifier,ST,0,1,,,"If mapped to FHIR, use Code System and Display",coding[1].code,,code,0,1,,,,, -2,CWE.2,Text,ST,0,1,,,,coding[1].display,,string,0,1,,,,, -3,CWE.3,Name of Coding System,ID,0,1,,,,coding[1].system,,uri,0,1,,,,,This is only an indirect mapping in that the vocabulary table will give the actual uri. -4,CWE.4,Alternate Identifier,ST,0,1,,,,coding[2].code,,code,0,1,,,,, -5,CWE.5,Alternate Text,ST,0,1,,,,coding[2].display,,string,0,1,,,,, -6,CWE.6,Name of Alternate Coding System,ID,0,1,,,,coding[2].system,,uri,0,1,,,,,This is only an indirect mapping in that the vocabulary table will give the actual uri -7,CWE.7,Coding System Version ID,ST,0,1,,,,coding[1].version,,string,0,1,,,,, -8,CWE.8,Alternate Coding System Version ID,ST,0,1,,,,coding[2].version,,string,0,1,,,,, -9,CWE.9,Original Text,ST,0,1,,,,text,,string,0,1,,,,, -10,CWE.10,Second Alternate Identifier,ST,0,1,,,,coding[3].code,,code,0,1,,,,, -11,CWE.11,Second Alternate Text,ST,0,1,,,,coding[3].display,,string,0,1,,,,, -12,CWE.12,Name of Second Alternate Coding System,ID,0,1,,,,coding[3].system,,uri,0,1,,,,, -13,CWE.13,Second Alternate Coding System Version ID,ST,0,1,,,,coding[3].version,,string,0,1,,,,,This is only an indirect mapping in that the vocabulary table will give the actual uri. -14,CWE.14,Coding System OID,ST,0,1,,,,,,,,,,,,, -15,CWE.15,Value Set OID,ST,0,1,,,,,,,,,,,,, -16,CWE.16,Value Set Version ID,DTM,0,1,,,,,,,,,,,,, -17,CWE.17,Alternate Coding System OID,ST,0,1,,,,,,,,,,,,, -18,CWE.18,Alternate Value Set OID,ST,0,1,,,,,,,,,,,,, -19,CWE.19,Alternate Value Set Version ID,DTM,0,1,,,,,,,,,,,,, -20,CWE.20,Second Alternate Coding System OID,ST,0,1,,,,,,,,,,,,, -21,CWE.21,Second Alternate Value Set OID,ST,0,1,,,,,,,,,,,,, -22,CWE.22,Second Alternate Value Set Version ID,DTM,0,1,,,,,,,,,,,,, \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-10-test-value-cwe8.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-10-test-value-cwe8.fhir deleted file mode 100644 index 15292f52dd4..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-10-test-value-cwe8.fhir +++ /dev/null @@ -1,143 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713403200456908000.a3e6fb64-ecd0-45cd-bbaa-0542fe3e3d4f", - "meta" : { - "lastUpdated" : "2024-04-17T19:20:00.466-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "12345" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "12345" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713403200559851000.8d9c7bf0-5a61-40fb-8c02-e9b5377157fb" - } - } - }, { - "fullUrl" : "Organization/1713403200559851000.8d9c7bf0-5a61-40fb-8c02-e9b5377157fb", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403200559851000.8d9c7bf0-5a61-40fb-8c02-e9b5377157fb", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713403201074832000.5df2c9b6-efc7-4e25-93aa-05b827b639b8", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403201074832000.5df2c9b6-efc7-4e25-93aa-05b827b639b8", - "target" : [ { - "reference" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713403201087347000.d5d5300a-5a81-413a-9dfe-2a3357800a45", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403201087347000.d5d5300a-5a81-413a-9dfe-2a3357800a45", - "recorded" : "2024-04-17T19:20:01Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713403201086319000.b914c2fb-1d32-4a73-8f31-02159bfb22cb" - } - } ] - } - }, { - "fullUrl" : "Organization/1713403201086319000.b914c2fb-1d32-4a73-8f31-02159bfb22cb", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403201086319000.b914c2fb-1d32-4a73-8f31-02159bfb22cb", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713403201112944000.aa776c63-0d50-4202-9ccf-961a873229e6", - "resource" : { - "resourceType" : "Patient", - "id" : "1713403201112944000.aa776c63-0d50-4202-9ccf-961a873229e6", - "extension" : [ { - "url" : "http://ibm.com/fhir/cdm/StructureDefinition/local-race-cd", - "valueCodeableConcept" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "alt-coding" - } ], - "version" : "AltVersion" - } ] - } - } ] - } - }, { - "fullUrl" : "Provenance/1713403201114667000.02154068-dc9b-48ac-af0a-105a107febd5", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403201114667000.02154068-dc9b-48ac-af0a-105a107febd5", - "target" : [ { - "reference" : "Patient/1713403201112944000.aa776c63-0d50-4202-9ccf-961a873229e6" - } ], - "recorded" : "2024-04-17T19:20:01Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-10-test-value-cwe8.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-10-test-value-cwe8.hl7 deleted file mode 100644 index ed304d5183d..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-10-test-value-cwe8.hl7 +++ /dev/null @@ -1,2 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|12345||2.5.1|||||USA|UNICODE UTF-8 -PID|1|||||||||^^^^^^^AltVersion \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-11-test-value-cwe9.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-11-test-value-cwe9.fhir deleted file mode 100644 index 4589805e1c8..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-11-test-value-cwe9.fhir +++ /dev/null @@ -1,137 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713403220122904000.f8bd4094-3752-4a19-aeee-f19b3472c4ba", - "meta" : { - "lastUpdated" : "2024-04-17T19:20:20.133-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "12345" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "12345" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713403220231429000.933b17a3-378f-4d34-89c9-47865edd1c37" - } - } - }, { - "fullUrl" : "Organization/1713403220231429000.933b17a3-378f-4d34-89c9-47865edd1c37", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403220231429000.933b17a3-378f-4d34-89c9-47865edd1c37", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713403220766953000.e8cadaec-d3df-45b4-8ccd-3aafd77cb739", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403220766953000.e8cadaec-d3df-45b4-8ccd-3aafd77cb739", - "target" : [ { - "reference" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713403220779417000.66b6b06d-0f77-47f7-baef-8fa57da1dc06", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403220779417000.66b6b06d-0f77-47f7-baef-8fa57da1dc06", - "recorded" : "2024-04-17T19:20:20Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713403220778417000.6f9261db-c196-4d12-b7d5-8936aec5932f" - } - } ] - } - }, { - "fullUrl" : "Organization/1713403220778417000.6f9261db-c196-4d12-b7d5-8936aec5932f", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403220778417000.6f9261db-c196-4d12-b7d5-8936aec5932f", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713403220801742000.0a696b9d-41c0-4ab6-821a-d6524f9c697a", - "resource" : { - "resourceType" : "Patient", - "id" : "1713403220801742000.0a696b9d-41c0-4ab6-821a-d6524f9c697a", - "extension" : [ { - "url" : "http://ibm.com/fhir/cdm/StructureDefinition/local-race-cd", - "valueCodeableConcept" : { - "text" : "OriginalText" - } - } ] - } - }, { - "fullUrl" : "Provenance/1713403220802992000.d4f67c35-19cb-452a-9c40-9d43ec969499", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403220802992000.d4f67c35-19cb-452a-9c40-9d43ec969499", - "target" : [ { - "reference" : "Patient/1713403220801742000.0a696b9d-41c0-4ab6-821a-d6524f9c697a" - } ], - "recorded" : "2024-04-17T19:20:20Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-11-test-value-cwe9.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-11-test-value-cwe9.hl7 deleted file mode 100644 index 38c215f4fa3..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-11-test-value-cwe9.hl7 +++ /dev/null @@ -1,2 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|12345||2.5.1|||||USA|UNICODE UTF-8 -PID|1|||||||||^^^^^^^^OriginalText \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-12-test-value-cwe10.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-12-test-value-cwe10.fhir deleted file mode 100644 index 3feeb9d12a7..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-12-test-value-cwe10.fhir +++ /dev/null @@ -1,143 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713403238639454000.785747c6-2555-421d-a676-e0f8cce8ba95", - "meta" : { - "lastUpdated" : "2024-04-17T19:20:38.649-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "12345" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "12345" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713403238744562000.a7a8c8d6-2fd5-484d-9a85-b290817235f7" - } - } - }, { - "fullUrl" : "Organization/1713403238744562000.a7a8c8d6-2fd5-484d-9a85-b290817235f7", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403238744562000.a7a8c8d6-2fd5-484d-9a85-b290817235f7", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713403239274942000.35993555-b3f1-4f19-867a-2d7e4670e81e", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403239274942000.35993555-b3f1-4f19-867a-2d7e4670e81e", - "target" : [ { - "reference" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713403239286222000.50ec95aa-c3b8-47de-9ad5-f6f1a60ac070", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403239286222000.50ec95aa-c3b8-47de-9ad5-f6f1a60ac070", - "recorded" : "2024-04-17T19:20:39Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713403239285198000.ee23f116-7270-4103-aa59-299b6504c314" - } - } ] - } - }, { - "fullUrl" : "Organization/1713403239285198000.ee23f116-7270-4103-aa59-299b6504c314", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403239285198000.ee23f116-7270-4103-aa59-299b6504c314", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713403239308132000.85a8f511-f905-4ace-ac0b-95d9641b5b34", - "resource" : { - "resourceType" : "Patient", - "id" : "1713403239308132000.85a8f511-f905-4ace-ac0b-95d9641b5b34", - "extension" : [ { - "url" : "http://ibm.com/fhir/cdm/StructureDefinition/local-race-cd", - "valueCodeableConcept" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "secondary-alt-coding" - } ], - "code" : "SecondaryAltCode" - } ] - } - } ] - } - }, { - "fullUrl" : "Provenance/1713403239309723000.0861eb88-cbc4-49a7-a737-ae7331354d86", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403239309723000.0861eb88-cbc4-49a7-a737-ae7331354d86", - "target" : [ { - "reference" : "Patient/1713403239308132000.85a8f511-f905-4ace-ac0b-95d9641b5b34" - } ], - "recorded" : "2024-04-17T19:20:39Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-12-test-value-cwe10.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-12-test-value-cwe10.hl7 deleted file mode 100644 index 4341d2830be..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-12-test-value-cwe10.hl7 +++ /dev/null @@ -1,2 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|12345||2.5.1|||||USA|UNICODE UTF-8 -PID|1|||||||||^^^^^^^^^SecondaryAltCode \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-13-test-value-cwe11.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-13-test-value-cwe11.fhir deleted file mode 100644 index 95f11db186a..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-13-test-value-cwe11.fhir +++ /dev/null @@ -1,143 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713403256912019000.b65b8407-cf06-483a-97eb-219c7bf218f5", - "meta" : { - "lastUpdated" : "2024-04-17T19:20:56.921-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "12345" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "12345" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713403257012157000.4e32c868-ee2f-457d-aeb9-688e8ff28487" - } - } - }, { - "fullUrl" : "Organization/1713403257012157000.4e32c868-ee2f-457d-aeb9-688e8ff28487", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403257012157000.4e32c868-ee2f-457d-aeb9-688e8ff28487", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713403257532857000.face4ba9-0511-494a-b97a-fd317b4c569e", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403257532857000.face4ba9-0511-494a-b97a-fd317b4c569e", - "target" : [ { - "reference" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713403257545395000.7fcceea3-cab0-4f49-a614-fb9920b67eab", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403257545395000.7fcceea3-cab0-4f49-a614-fb9920b67eab", - "recorded" : "2024-04-17T19:20:57Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713403257544001000.682a351e-afba-46c2-8fe3-2c5a062e89c3" - } - } ] - } - }, { - "fullUrl" : "Organization/1713403257544001000.682a351e-afba-46c2-8fe3-2c5a062e89c3", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403257544001000.682a351e-afba-46c2-8fe3-2c5a062e89c3", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713403257571576000.965a6601-af4e-457c-b059-599cc5d55ca8", - "resource" : { - "resourceType" : "Patient", - "id" : "1713403257571576000.965a6601-af4e-457c-b059-599cc5d55ca8", - "extension" : [ { - "url" : "http://ibm.com/fhir/cdm/StructureDefinition/local-race-cd", - "valueCodeableConcept" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "secondary-alt-coding" - } ], - "display" : "SecondaryAltText" - } ] - } - } ] - } - }, { - "fullUrl" : "Provenance/1713403257574021000.ac0f531d-82b5-497f-bda9-2ca03b85aa27", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403257574021000.ac0f531d-82b5-497f-bda9-2ca03b85aa27", - "target" : [ { - "reference" : "Patient/1713403257571576000.965a6601-af4e-457c-b059-599cc5d55ca8" - } ], - "recorded" : "2024-04-17T19:20:57Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-13-test-value-cwe11.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-13-test-value-cwe11.hl7 deleted file mode 100644 index 56a3ba9a867..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-13-test-value-cwe11.hl7 +++ /dev/null @@ -1,2 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|12345||2.5.1|||||USA|UNICODE UTF-8 -PID|1|||||||||^^^^^^^^^^SecondaryAltText \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-14-test-value-cwe12.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-14-test-value-cwe12.fhir deleted file mode 100644 index 86e2249bf64..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-14-test-value-cwe12.fhir +++ /dev/null @@ -1,146 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713403276221244000.d8d624f5-14a9-48cf-bd9a-d1448ec86845", - "meta" : { - "lastUpdated" : "2024-04-17T19:21:16.233-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "12345" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "12345" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713403276330045000.5d9a2693-893f-4d38-a021-475a40e390e6" - } - } - }, { - "fullUrl" : "Organization/1713403276330045000.5d9a2693-893f-4d38-a021-475a40e390e6", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403276330045000.5d9a2693-893f-4d38-a021-475a40e390e6", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713403276909467000.399a11a2-3e1d-41c3-aadf-5e1d966b1586", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403276909467000.399a11a2-3e1d-41c3-aadf-5e1d966b1586", - "target" : [ { - "reference" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713403276925023000.704d041c-fcc1-4a19-b121-5d3beb4f5cd2", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403276925023000.704d041c-fcc1-4a19-b121-5d3beb4f5cd2", - "recorded" : "2024-04-17T19:21:16Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713403276923527000.63739625-b689-4b22-9dc7-7628e23260ed" - } - } ] - } - }, { - "fullUrl" : "Organization/1713403276923527000.63739625-b689-4b22-9dc7-7628e23260ed", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403276923527000.63739625-b689-4b22-9dc7-7628e23260ed", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713403276952611000.f5505959-d8c4-4055-8a39-520d735054b0", - "resource" : { - "resourceType" : "Patient", - "id" : "1713403276952611000.f5505959-d8c4-4055-8a39-520d735054b0", - "extension" : [ { - "url" : "http://ibm.com/fhir/cdm/StructureDefinition/local-race-cd", - "valueCodeableConcept" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "secondary-alt-coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "L" - } ], - "system" : "https://terminology.hl7.org/CodeSystem-v2-0396.html#v2-0396-99zzzorL" - } ] - } - } ] - } - }, { - "fullUrl" : "Provenance/1713403276954675000.9ae80c04-b945-464d-9616-1fe82deac0f7", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403276954675000.9ae80c04-b945-464d-9616-1fe82deac0f7", - "target" : [ { - "reference" : "Patient/1713403276952611000.f5505959-d8c4-4055-8a39-520d735054b0" - } ], - "recorded" : "2024-04-17T19:21:16Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-14-test-value-cwe12.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-14-test-value-cwe12.hl7 deleted file mode 100644 index 4ae37cef8d7..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-14-test-value-cwe12.hl7 +++ /dev/null @@ -1,2 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|12345||2.5.1|||||USA|UNICODE UTF-8 -PID|1|||||||||^^^^^^^^^^^L \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-15-test-value-cwe13.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-15-test-value-cwe13.fhir deleted file mode 100644 index e30b37765bb..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-15-test-value-cwe13.fhir +++ /dev/null @@ -1,143 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713403297713864000.d073d008-db83-44bd-83df-cbb14a938aa0", - "meta" : { - "lastUpdated" : "2024-04-17T19:21:37.724-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "12345" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "12345" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713403297826697000.cbf7948b-cb60-40d4-a78b-ddcc18399042" - } - } - }, { - "fullUrl" : "Organization/1713403297826697000.cbf7948b-cb60-40d4-a78b-ddcc18399042", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403297826697000.cbf7948b-cb60-40d4-a78b-ddcc18399042", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713403298421036000.afee0d57-0e74-4ecb-bae8-e2f2943e0d08", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403298421036000.afee0d57-0e74-4ecb-bae8-e2f2943e0d08", - "target" : [ { - "reference" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713403298444735000.9ed2d77d-a8ea-43d9-9692-1a990713b745", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403298444735000.9ed2d77d-a8ea-43d9-9692-1a990713b745", - "recorded" : "2024-04-17T19:21:38Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713403298443182000.2fd8fbd5-f7b2-4dde-940f-c8e5de070758" - } - } ] - } - }, { - "fullUrl" : "Organization/1713403298443182000.2fd8fbd5-f7b2-4dde-940f-c8e5de070758", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403298443182000.2fd8fbd5-f7b2-4dde-940f-c8e5de070758", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713403298471313000.5f5b87d6-2822-4967-8209-d6ea09137215", - "resource" : { - "resourceType" : "Patient", - "id" : "1713403298471313000.5f5b87d6-2822-4967-8209-d6ea09137215", - "extension" : [ { - "url" : "http://ibm.com/fhir/cdm/StructureDefinition/local-race-cd", - "valueCodeableConcept" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "secondary-alt-coding" - } ], - "version" : "SecondaryAltVersion" - } ] - } - } ] - } - }, { - "fullUrl" : "Provenance/1713403298472875000.27c55c78-0385-4eeb-9f70-367c39446b4f", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403298472875000.27c55c78-0385-4eeb-9f70-367c39446b4f", - "target" : [ { - "reference" : "Patient/1713403298471313000.5f5b87d6-2822-4967-8209-d6ea09137215" - } ], - "recorded" : "2024-04-17T19:21:38Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-15-test-value-cwe13.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-15-test-value-cwe13.hl7 deleted file mode 100644 index 39772a4adcb..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-15-test-value-cwe13.hl7 +++ /dev/null @@ -1,2 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|12345||2.5.1|||||USA|UNICODE UTF-8 -PID|1|||||||||^^^^^^^^^^^^SecondaryAltVersion \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-16-test-value-cwe14.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-16-test-value-cwe14.fhir deleted file mode 100644 index fb877731490..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-16-test-value-cwe14.fhir +++ /dev/null @@ -1,140 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713403318694290000.f2538ca4-7cf1-41d0-a0e0-3421116cc109", - "meta" : { - "lastUpdated" : "2024-04-17T19:21:58.705-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "12345" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "12345" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713403318801955000.4678319a-d306-4ce7-9376-a2608366c01a" - } - } - }, { - "fullUrl" : "Organization/1713403318801955000.4678319a-d306-4ce7-9376-a2608366c01a", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403318801955000.4678319a-d306-4ce7-9376-a2608366c01a", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713403319378244000.599dd6ae-9552-465a-8ffe-ebcf38cbd6cf", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403319378244000.599dd6ae-9552-465a-8ffe-ebcf38cbd6cf", - "target" : [ { - "reference" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713403319391303000.2068fab6-cb87-43db-8a54-235b378d0bfe", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403319391303000.2068fab6-cb87-43db-8a54-235b378d0bfe", - "recorded" : "2024-04-17T19:21:59Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713403319390076000.bf51d399-c244-4dca-984c-81bf10311c0d" - } - } ] - } - }, { - "fullUrl" : "Organization/1713403319390076000.bf51d399-c244-4dca-984c-81bf10311c0d", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403319390076000.bf51d399-c244-4dca-984c-81bf10311c0d", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713403319416958000.7b82fc9c-a8b4-42ef-8b1e-d027eb067853", - "resource" : { - "resourceType" : "Patient", - "id" : "1713403319416958000.7b82fc9c-a8b4-42ef-8b1e-d027eb067853", - "extension" : [ { - "url" : "http://ibm.com/fhir/cdm/StructureDefinition/local-race-cd", - "valueCodeableConcept" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/coding-system-oid", - "valueOid" : "urn:oid:TEST1234" - } ] - } - } ] - } - }, { - "fullUrl" : "Provenance/1713403319418460000.85dbbede-9f30-48ef-b228-9fe89ebfb4b0", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403319418460000.85dbbede-9f30-48ef-b228-9fe89ebfb4b0", - "target" : [ { - "reference" : "Patient/1713403319416958000.7b82fc9c-a8b4-42ef-8b1e-d027eb067853" - } ], - "recorded" : "2024-04-17T19:21:59Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-16-test-value-cwe14.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-16-test-value-cwe14.hl7 deleted file mode 100644 index 655d4dcbffb..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-16-test-value-cwe14.hl7 +++ /dev/null @@ -1,2 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|12345||2.5.1|||||USA|UNICODE UTF-8 -PID|1|||||||||^^^^^^^^^^^^^TEST1234 \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-3-test-value-cwe1.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-3-test-value-cwe1.fhir deleted file mode 100644 index 58907013516..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-3-test-value-cwe1.fhir +++ /dev/null @@ -1,143 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713403339112570000.edd6d69d-919c-4670-a758-58676f3edbaf", - "meta" : { - "lastUpdated" : "2024-04-17T19:22:19.123-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "12345" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "12345" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713403339222547000.ce8c98d1-5732-4ddf-9fdd-f6849384e1a1" - } - } - }, { - "fullUrl" : "Organization/1713403339222547000.ce8c98d1-5732-4ddf-9fdd-f6849384e1a1", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403339222547000.ce8c98d1-5732-4ddf-9fdd-f6849384e1a1", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713403339804199000.85d17102-1b50-4689-bad9-adcbbf545578", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403339804199000.85d17102-1b50-4689-bad9-adcbbf545578", - "target" : [ { - "reference" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713403339818818000.aa3d6196-9d12-4adf-8ee9-71134e43be14", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403339818818000.aa3d6196-9d12-4adf-8ee9-71134e43be14", - "recorded" : "2024-04-17T19:22:19Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713403339817619000.32932d4b-4caa-44ec-9b7e-6e38f5e5b551" - } - } ] - } - }, { - "fullUrl" : "Organization/1713403339817619000.32932d4b-4caa-44ec-9b7e-6e38f5e5b551", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403339817619000.32932d4b-4caa-44ec-9b7e-6e38f5e5b551", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713403339844399000.2f9222d0-48e6-4674-b7c6-9106b2f65f5e", - "resource" : { - "resourceType" : "Patient", - "id" : "1713403339844399000.2f9222d0-48e6-4674-b7c6-9106b2f65f5e", - "extension" : [ { - "url" : "http://ibm.com/fhir/cdm/StructureDefinition/local-race-cd", - "valueCodeableConcept" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - } ], - "code" : "PrimaryCode" - } ] - } - } ] - } - }, { - "fullUrl" : "Provenance/1713403339846196000.abfc2480-a0fb-46ed-a7c4-e6dd98ff4aa2", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403339846196000.abfc2480-a0fb-46ed-a7c4-e6dd98ff4aa2", - "target" : [ { - "reference" : "Patient/1713403339844399000.2f9222d0-48e6-4674-b7c6-9106b2f65f5e" - } ], - "recorded" : "2024-04-17T19:22:19Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-3-test-value-cwe1.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-3-test-value-cwe1.hl7 deleted file mode 100644 index ad77148beb8..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-3-test-value-cwe1.hl7 +++ /dev/null @@ -1,2 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|12345||2.5.1|||||USA|UNICODE UTF-8 -PID|1|||||||||PrimaryCode \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-4-test-value-cwe2.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-4-test-value-cwe2.fhir deleted file mode 100644 index 148f7a07a3b..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-4-test-value-cwe2.fhir +++ /dev/null @@ -1,143 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713403359728506000.43ea1e28-d96b-424a-ba86-06aee397ab29", - "meta" : { - "lastUpdated" : "2024-04-17T19:22:39.739-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "12345" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "12345" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713403359840864000.749d4472-f21c-4867-a087-d84b14622371" - } - } - }, { - "fullUrl" : "Organization/1713403359840864000.749d4472-f21c-4867-a087-d84b14622371", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403359840864000.749d4472-f21c-4867-a087-d84b14622371", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713403360427575000.3087116f-b901-4c70-89cd-f113371358ce", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403360427575000.3087116f-b901-4c70-89cd-f113371358ce", - "target" : [ { - "reference" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713403360441247000.3d29620d-2ac7-4458-a070-07e5089dd6ad", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403360441247000.3d29620d-2ac7-4458-a070-07e5089dd6ad", - "recorded" : "2024-04-17T19:22:40Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713403360439904000.f39f56d7-a811-4e95-884d-d3a279ab3934" - } - } ] - } - }, { - "fullUrl" : "Organization/1713403360439904000.f39f56d7-a811-4e95-884d-d3a279ab3934", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403360439904000.f39f56d7-a811-4e95-884d-d3a279ab3934", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713403360467504000.54c5745d-9561-439f-b3ba-5a75a0c81d36", - "resource" : { - "resourceType" : "Patient", - "id" : "1713403360467504000.54c5745d-9561-439f-b3ba-5a75a0c81d36", - "extension" : [ { - "url" : "http://ibm.com/fhir/cdm/StructureDefinition/local-race-cd", - "valueCodeableConcept" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - } ], - "display" : "PrimaryText" - } ] - } - } ] - } - }, { - "fullUrl" : "Provenance/1713403360469191000.bdb981b5-43d8-45af-8bd1-b34be2715aad", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403360469191000.bdb981b5-43d8-45af-8bd1-b34be2715aad", - "target" : [ { - "reference" : "Patient/1713403360467504000.54c5745d-9561-439f-b3ba-5a75a0c81d36" - } ], - "recorded" : "2024-04-17T19:22:40Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-4-test-value-cwe2.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-4-test-value-cwe2.hl7 deleted file mode 100644 index 85a78b797f3..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-4-test-value-cwe2.hl7 +++ /dev/null @@ -1,2 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|12345||2.5.1|||||USA|UNICODE UTF-8 -PID|1|||||||||^PrimaryText \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-5-test-value-cwe3.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-5-test-value-cwe3.fhir deleted file mode 100644 index 60b7be17a15..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-5-test-value-cwe3.fhir +++ /dev/null @@ -1,146 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713403380679523000.db2e06dd-216a-48a2-a1ca-ae8f0fdf8736", - "meta" : { - "lastUpdated" : "2024-04-17T19:23:00.689-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "12345" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "12345" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713403380785870000.e0894b9d-480e-4a75-b354-de3521dcca69" - } - } - }, { - "fullUrl" : "Organization/1713403380785870000.e0894b9d-480e-4a75-b354-de3521dcca69", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403380785870000.e0894b9d-480e-4a75-b354-de3521dcca69", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713403381370445000.f9db9ebf-1549-4433-a230-6e08655bcc6b", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403381370445000.f9db9ebf-1549-4433-a230-6e08655bcc6b", - "target" : [ { - "reference" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713403381383417000.9e3e72a5-37f1-4784-89e7-aae93bc44af0", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403381383417000.9e3e72a5-37f1-4784-89e7-aae93bc44af0", - "recorded" : "2024-04-17T19:23:01Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713403381382077000.50ca072c-7c3b-441a-b303-2cef61acf076" - } - } ] - } - }, { - "fullUrl" : "Organization/1713403381382077000.50ca072c-7c3b-441a-b303-2cef61acf076", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403381382077000.50ca072c-7c3b-441a-b303-2cef61acf076", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713403381407837000.bec3d625-32fd-4a2f-b45d-05df13df8981", - "resource" : { - "resourceType" : "Patient", - "id" : "1713403381407837000.bec3d625-32fd-4a2f-b45d-05df13df8981", - "extension" : [ { - "url" : "http://ibm.com/fhir/cdm/StructureDefinition/local-race-cd", - "valueCodeableConcept" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "LN" - } ], - "system" : "http://loinc.org" - } ] - } - } ] - } - }, { - "fullUrl" : "Provenance/1713403381409401000.edb3ccb6-a09b-4549-9b65-cfba32757a84", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403381409401000.edb3ccb6-a09b-4549-9b65-cfba32757a84", - "target" : [ { - "reference" : "Patient/1713403381407837000.bec3d625-32fd-4a2f-b45d-05df13df8981" - } ], - "recorded" : "2024-04-17T19:23:01Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-5-test-value-cwe3.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-5-test-value-cwe3.hl7 deleted file mode 100644 index 80e3d774df2..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-5-test-value-cwe3.hl7 +++ /dev/null @@ -1,2 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|12345||2.5.1|||||USA|UNICODE UTF-8 -PID|1|||||||||^^LN \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-6-test-value-cwe4.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-6-test-value-cwe4.fhir deleted file mode 100644 index 62335ea84bd..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-6-test-value-cwe4.fhir +++ /dev/null @@ -1,143 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713403401349528000.cde165bf-abb6-4d40-a95c-bd1ab331b14e", - "meta" : { - "lastUpdated" : "2024-04-17T19:23:21.360-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "12345" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "12345" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713403401461244000.e80cffc2-8b81-4fd4-9da5-c35da7499842" - } - } - }, { - "fullUrl" : "Organization/1713403401461244000.e80cffc2-8b81-4fd4-9da5-c35da7499842", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403401461244000.e80cffc2-8b81-4fd4-9da5-c35da7499842", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713403402041048000.ee072e3a-3a20-4ae6-8503-05412bebf042", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403402041048000.ee072e3a-3a20-4ae6-8503-05412bebf042", - "target" : [ { - "reference" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713403402055070000.d0fca609-cb01-48e4-96bc-9d39a769409e", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403402055070000.d0fca609-cb01-48e4-96bc-9d39a769409e", - "recorded" : "2024-04-17T19:23:22Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713403402054017000.30aab337-4bc3-4daa-acc2-99c0504c7fd3" - } - } ] - } - }, { - "fullUrl" : "Organization/1713403402054017000.30aab337-4bc3-4daa-acc2-99c0504c7fd3", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403402054017000.30aab337-4bc3-4daa-acc2-99c0504c7fd3", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713403402080948000.b71f5da1-09a6-46e0-891a-15d944285408", - "resource" : { - "resourceType" : "Patient", - "id" : "1713403402080948000.b71f5da1-09a6-46e0-891a-15d944285408", - "extension" : [ { - "url" : "http://ibm.com/fhir/cdm/StructureDefinition/local-race-cd", - "valueCodeableConcept" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "alt-coding" - } ], - "code" : "AltCode" - } ] - } - } ] - } - }, { - "fullUrl" : "Provenance/1713403402082318000.e34bd1b0-8605-4da0-911c-8c625cf6bce0", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403402082318000.e34bd1b0-8605-4da0-911c-8c625cf6bce0", - "target" : [ { - "reference" : "Patient/1713403402080948000.b71f5da1-09a6-46e0-891a-15d944285408" - } ], - "recorded" : "2024-04-17T19:23:22Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-6-test-value-cwe4.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-6-test-value-cwe4.hl7 deleted file mode 100644 index 202d873be63..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-6-test-value-cwe4.hl7 +++ /dev/null @@ -1,2 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|12345||2.5.1|||||USA|UNICODE UTF-8 -PID|1|||||||||^^^AltCode \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-7-test-value-cwe5.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-7-test-value-cwe5.fhir deleted file mode 100644 index 08c61954c97..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-7-test-value-cwe5.fhir +++ /dev/null @@ -1,143 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713403423039330000.0f5107c6-7a2b-4fb7-b3d3-0bedc6fb61b6", - "meta" : { - "lastUpdated" : "2024-04-17T19:23:43.050-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "12345" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "12345" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713403423150405000.00b478a8-fd47-4eb6-9e3f-92ab183d3613" - } - } - }, { - "fullUrl" : "Organization/1713403423150405000.00b478a8-fd47-4eb6-9e3f-92ab183d3613", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403423150405000.00b478a8-fd47-4eb6-9e3f-92ab183d3613", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713403423760358000.d5a126a6-4e7f-4288-b2d0-d92db61052f3", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403423760358000.d5a126a6-4e7f-4288-b2d0-d92db61052f3", - "target" : [ { - "reference" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713403423777580000.4edc191a-af55-4042-a106-57d89345b4d1", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403423777580000.4edc191a-af55-4042-a106-57d89345b4d1", - "recorded" : "2024-04-17T19:23:43Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713403423775819000.e3720102-2332-47c1-8ade-f454b501650a" - } - } ] - } - }, { - "fullUrl" : "Organization/1713403423775819000.e3720102-2332-47c1-8ade-f454b501650a", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403423775819000.e3720102-2332-47c1-8ade-f454b501650a", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713403423808443000.cc74a919-c42b-45fa-9a12-bedbf03b3f10", - "resource" : { - "resourceType" : "Patient", - "id" : "1713403423808443000.cc74a919-c42b-45fa-9a12-bedbf03b3f10", - "extension" : [ { - "url" : "http://ibm.com/fhir/cdm/StructureDefinition/local-race-cd", - "valueCodeableConcept" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "alt-coding" - } ], - "display" : "AltText" - } ] - } - } ] - } - }, { - "fullUrl" : "Provenance/1713403423810606000.299e921a-6e86-422a-a679-0792f0f297ea", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403423810606000.299e921a-6e86-422a-a679-0792f0f297ea", - "target" : [ { - "reference" : "Patient/1713403423808443000.cc74a919-c42b-45fa-9a12-bedbf03b3f10" - } ], - "recorded" : "2024-04-17T19:23:43Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-7-test-value-cwe5.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-7-test-value-cwe5.hl7 deleted file mode 100644 index dcde04d370a..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-7-test-value-cwe5.hl7 +++ /dev/null @@ -1,2 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|12345||2.5.1|||||USA|UNICODE UTF-8 -PID|1|||||||||^^^^AltText \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-8-test-value-cwe6.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-8-test-value-cwe6.fhir deleted file mode 100644 index 55b6592255d..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-8-test-value-cwe6.fhir +++ /dev/null @@ -1,146 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713403444709377000.15845bf8-a5db-427b-a53e-3b45a830d7cb", - "meta" : { - "lastUpdated" : "2024-04-17T19:24:04.719-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "12345" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "12345" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713403444819081000.d7f4d552-1ac2-48ad-a953-e3352fc318d0" - } - } - }, { - "fullUrl" : "Organization/1713403444819081000.d7f4d552-1ac2-48ad-a953-e3352fc318d0", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403444819081000.d7f4d552-1ac2-48ad-a953-e3352fc318d0", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713403445427495000.2514114f-8e8f-4d0f-aeee-a13449a2c209", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403445427495000.2514114f-8e8f-4d0f-aeee-a13449a2c209", - "target" : [ { - "reference" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713403445442019000.2f759e9e-f1d8-46e8-b3a3-599e85819a6a", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403445442019000.2f759e9e-f1d8-46e8-b3a3-599e85819a6a", - "recorded" : "2024-04-17T19:24:05Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713403445440385000.0cc2d648-0fda-41eb-a530-fdcc9a36d3e7" - } - } ] - } - }, { - "fullUrl" : "Organization/1713403445440385000.0cc2d648-0fda-41eb-a530-fdcc9a36d3e7", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403445440385000.0cc2d648-0fda-41eb-a530-fdcc9a36d3e7", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713403445468998000.dd2c021a-a861-4253-b5ad-801ed89134fe", - "resource" : { - "resourceType" : "Patient", - "id" : "1713403445468998000.dd2c021a-a861-4253-b5ad-801ed89134fe", - "extension" : [ { - "url" : "http://ibm.com/fhir/cdm/StructureDefinition/local-race-cd", - "valueCodeableConcept" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "alt-coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "L" - } ], - "system" : "https://terminology.hl7.org/CodeSystem-v2-0396.html#v2-0396-99zzzorL" - } ] - } - } ] - } - }, { - "fullUrl" : "Provenance/1713403445471153000.e959285d-ec02-4343-9ebe-1090a68193c6", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403445471153000.e959285d-ec02-4343-9ebe-1090a68193c6", - "target" : [ { - "reference" : "Patient/1713403445468998000.dd2c021a-a861-4253-b5ad-801ed89134fe" - } ], - "recorded" : "2024-04-17T19:24:05Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-8-test-value-cwe6.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-8-test-value-cwe6.hl7 deleted file mode 100644 index 334cc0adab3..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-8-test-value-cwe6.hl7 +++ /dev/null @@ -1,2 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|12345||2.5.1|||||USA|UNICODE UTF-8 -PID|1|||||||||^^^^^L \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-9-test-value-cwe7.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-9-test-value-cwe7.fhir deleted file mode 100644 index b950f4145fb..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-9-test-value-cwe7.fhir +++ /dev/null @@ -1,143 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713403466089727000.c986b703-e397-4e6f-baf8-278376575309", - "meta" : { - "lastUpdated" : "2024-04-17T19:24:26.101-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "12345" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "12345" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713403466204066000.535f073a-a5f9-4b12-8ce9-87780b847d19" - } - } - }, { - "fullUrl" : "Organization/1713403466204066000.535f073a-a5f9-4b12-8ce9-87780b847d19", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403466204066000.535f073a-a5f9-4b12-8ce9-87780b847d19", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713403466809125000.83225b49-3606-4f9a-be2a-aefd9bd971ab", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403466809125000.83225b49-3606-4f9a-be2a-aefd9bd971ab", - "target" : [ { - "reference" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713403466823618000.ad1b7c2f-547d-4a4b-88d0-10da8f006664", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403466823618000.ad1b7c2f-547d-4a4b-88d0-10da8f006664", - "recorded" : "2024-04-17T19:24:26Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713403466822104000.021a069a-18dc-4777-a4ff-2027e6ca443f" - } - } ] - } - }, { - "fullUrl" : "Organization/1713403466822104000.021a069a-18dc-4777-a4ff-2027e6ca443f", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403466822104000.021a069a-18dc-4777-a4ff-2027e6ca443f", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713403466850207000.9ba45630-fed9-412c-b5c3-cf216449f827", - "resource" : { - "resourceType" : "Patient", - "id" : "1713403466850207000.9ba45630-fed9-412c-b5c3-cf216449f827", - "extension" : [ { - "url" : "http://ibm.com/fhir/cdm/StructureDefinition/local-race-cd", - "valueCodeableConcept" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - } ], - "version" : "PrimaryVersion" - } ] - } - } ] - } - }, { - "fullUrl" : "Provenance/1713403466851693000.522a71a5-ffa7-444b-a13a-aebff8b146e6", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403466851693000.522a71a5-ffa7-444b-a13a-aebff8b146e6", - "target" : [ { - "reference" : "Patient/1713403466850207000.9ba45630-fed9-412c-b5c3-cf216449f827" - } ], - "recorded" : "2024-04-17T19:24:26Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-9-test-value-cwe7.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-9-test-value-cwe7.hl7 deleted file mode 100644 index 5f3ffea2208..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/cwe/codeable-concept/cwe-9-test-value-cwe7.hl7 +++ /dev/null @@ -1,2 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|12345||2.5.1|||||USA|UNICODE UTF-8 -PID|1|||||||||^^^^^^PrimaryVersion \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/orur01/oru_r01-full.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/orur01/oru_r01-full.fhir deleted file mode 100644 index 2b6f801d879..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/orur01/oru_r01-full.fhir +++ /dev/null @@ -1,3206 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713403050231945000.37598ff5-3c2e-4da0-8f9e-b72147aa17b9", - "meta" : { - "lastUpdated" : "2024-04-17T19:17:30.243-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "3015894743_04608717_11184" - }, - "type" : "message", - "timestamp" : "2023-08-02T16:08:02.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/8565cf64-832b-3438-bb11-99d9ac964bc1", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "8565cf64-832b-3438-bb11-99d9ac964bc1", - "meta" : { - "tag" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0103", - "code" : "T" - } ] - }, - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230802180802-0400" - }, { - "url" : "MSH.10", - "valueString" : "3015894743_04608717_11184" - }, { - "url" : "MSH.15", - "valueString" : "NE" - }, { - "url" : "MSH.16", - "valueString" : "NE" - }, { - "url" : "MSH.21", - "valueIdentifier" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "PHIN" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.113883.9.11" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - } ], - "value" : "PHLabReport-NoAck" - } - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "destination" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.3.3.10.1.1" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueString" : "ISO" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "MSH.5" - } ], - "name" : "CDPH CA CALREDIE", - "endpoint" : "urn:oid:2.16.840.1.114222.4.3.3.10.1.1", - "receiver" : { - "reference" : "Organization/1713403050343101000.3dbdf426-2aae-472e-ad3a-f0f2641895f9" - } - } ], - "sender" : { - "reference" : "Organization/1713403050331033000.32003012-401a-42a0-a78b-2baea0650751" - }, - "source" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "STARLIMS.CDC.Stag" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.3.3.2.1.2" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueString" : "ISO" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "MSH.3" - } ], - "software" : "STARLIMS", - "version" : "ELIMS V11", - "endpoint" : "urn:oid:2.16.840.1.114222.4.3.3.2.1.2" - } - } - }, { - "fullUrl" : "Organization/1713403050331033000.32003012-401a-42a0-a78b-2baea0650751", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403050331033000.32003012-401a-42a0-a78b-2baea0650751", - "identifier" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "HD.1" - } ], - "value" : "CDC Atlanta" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "HD.2,HD.3" - } ], - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301", - "code" : "CLIA" - } ] - }, - "value" : "11D0668319" - } ], - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Organization/1713403050343101000.3dbdf426-2aae-472e-ad3a-f0f2641895f9", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403050343101000.3dbdf426-2aae-472e-ad3a-f0f2641895f9", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "MSH.6" - } ], - "identifier" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "HD.1" - } ], - "value" : "CDPH_CID" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "HD.2,HD.3" - } ], - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301", - "code" : "ISO" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.2.14104" - } ] - } - }, { - "fullUrl" : "Provenance/1713403050863906000.1ffcec14-c987-4f63-b117-0a799879de4f", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403050863906000.1ffcec14-c987-4f63-b117-0a799879de4f", - "target" : [ { - "reference" : "MessageHeader/8565cf64-832b-3438-bb11-99d9ac964bc1" - }, { - "reference" : "DiagnosticReport/1713403051336018000.fd7f6056-c0f8-40c2-b300-271da14337dc" - }, { - "reference" : "DiagnosticReport/1713403051340875000.6f3e2afa-c3c0-4a44-9fec-ccd43571021d" - } ], - "recorded" : "2023-08-02T18:08:02-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "author" - } ] - }, - "who" : { - "reference" : "Organization/1713403050862373000.078a14c9-f572-42b5-a717-8bb5bb271c39" - } - } ], - "entity" : [ { - "role" : "source", - "what" : { - "reference" : "Device/1713403050870543000.d0f12caf-fc2c-4820-9d6d-35b7f5036190" - } - } ] - } - }, { - "fullUrl" : "Organization/1713403050862373000.078a14c9-f572-42b5-a717-8bb5bb271c39", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403050862373000.078a14c9-f572-42b5-a717-8bb5bb271c39", - "identifier" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "HD.1" - } ], - "value" : "CDC Atlanta" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "HD.2,HD.3" - } ], - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301", - "code" : "CLIA" - } ] - }, - "value" : "11D0668319" - } ] - } - }, { - "fullUrl" : "Organization/1713403050869960000.0fcb853f-2d22-4349-89c8-398049128d87", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403050869960000.0fcb853f-2d22-4349-89c8-398049128d87", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xon-organization", - "extension" : [ { - "url" : "XON.10", - "valueString" : "CDC CLIA" - } ] - } ], - "identifier" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "CDC" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - } ], - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", - "code" : "XX" - } ] - }, - "value" : "CDC CLIA" - } ], - "name" : "CDC" - } - }, { - "fullUrl" : "Device/1713403050870543000.d0f12caf-fc2c-4820-9d6d-35b7f5036190", - "resource" : { - "resourceType" : "Device", - "id" : "1713403050870543000.d0f12caf-fc2c-4820-9d6d-35b7f5036190", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/software-vendor-org", - "valueReference" : { - "reference" : "Organization/1713403050869960000.0fcb853f-2d22-4349-89c8-398049128d87" - } - } ], - "manufacturer" : "CDC", - "deviceName" : [ { - "name" : "STARLIMS", - "type" : "manufacturer-name" - } ], - "modelNumber" : "Binary ID unknown", - "version" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/software-install-date", - "valueDateTime" : "2023-08-02T18:08:02-04:00", - "_valueDateTime" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", - "valueString" : "20230802180802-0400" - } ] - } - } ], - "value" : "ELIMS V11" - } ], - "note" : [ { - "text" : "test" - } ] - } - }, { - "fullUrl" : "Provenance/1713403050882896000.41cd7cce-74c7-4c60-a5a4-e75f0fa0f7fe", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403050882896000.41cd7cce-74c7-4c60-a5a4-e75f0fa0f7fe", - "recorded" : "2024-04-17T19:17:30Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713403050882208000.5d10a164-3502-4cbf-83fb-9ec0dd5c9a4b" - } - } ] - } - }, { - "fullUrl" : "Organization/1713403050882208000.5d10a164-3502-4cbf-83fb-9ec0dd5c9a4b", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403050882208000.5d10a164-3502-4cbf-83fb-9ec0dd5c9a4b", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713403050914425000.2377f845-bff3-4cc8-993f-4c9af35a7a0f", - "resource" : { - "resourceType" : "Patient", - "id" : "1713403050914425000.2377f845-bff3-4cc8-993f-4c9af35a7a0f", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/patient-notes", - "valueAnnotation" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/note-type", - "valueCodeableConcept" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/coding-system-oid", - "valueOid" : "urn:oid:2.16.840.1.113883.12.364" - } ], - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "HL70364" - } ], - "version" : "2.5.1", - "code" : "RE", - "display" : "Remark" - } ] - } - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/note-comment", - "valueId" : "Accession level coment." - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/note-source", - "valueId" : "L" - } ], - "text" : "Accession level coment." - } - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/patient-notes", - "valueAnnotation" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/note-type", - "valueCodeableConcept" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/coding-system-oid", - "valueOid" : "urn:oid:2.16.840.1.113883.12.364" - } ], - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "HL70364" - } ], - "version" : "2.5.1", - "code" : "RE", - "display" : "Remark" - } ] - } - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/note-comment", - "valueId" : "SPHL Submitter: CDPH, Viral and Rickettsial Disease Laboratory, Submitter ID: SPHL-000048, Address: 850 Marina Bay Parkway Rm. E-361 Richmond, California 94804 United States, Email: VRDL.Mail@cdph.ca.gov, Submitter Patient ID: PID123, Submitter Alt Patient ID: AltPID1234, Submitter Specimen ID: Specimen123, Submitter Alt Specimen ID: AltSP1234" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/note-source", - "valueId" : "L" - } ], - "text" : "SPHL Submitter: CDPH, Viral and Rickettsial Disease Laboratory, Submitter ID: SPHL-000048, Address: 850 Marina Bay Parkway Rm. E-361 Richmond, California 94804 United States, Email: VRDL.Mail@cdph.ca.gov, Submitter Patient ID: PID123, Submitter Alt Patient ID: AltPID1234, Submitter Specimen ID: Specimen123, Submitter Alt Specimen ID: AltSP1234" - } - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/pid-patient", - "extension" : [ { - "url" : "PID.8", - "valueString" : "F" - } ] - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/studentStatus", - "valueString" : "F" - }, { - "url" : "http://hl7.org/fhir/StructureDefinition/patient-disability", - "valueString" : "T" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/livingWill", - "valueString" : "F" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/pd1-patient-additional-demographic", - "extension" : [ { - "url" : "PD1.1", - "valueString" : "C" - }, { - "url" : "PD1.2", - "valueString" : "A" - }, { - "url" : "PD1.8", - "valueString" : "F" - }, { - "url" : "PD1.9", - "valueString" : "N" - } ] - } ], - "identifier" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cx-identifier", - "extension" : [ { - "url" : "CX.5", - "valueString" : "PI" - } ] - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "PID.3" - } ], - "type" : { - "coding" : [ { - "code" : "PI" - } ] - }, - "system" : "STARLIMS.CDC.Stag", - "_system" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "STARLIMS.CDC.Stag" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.3.3.2.1.2" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueString" : "ISO" - } ] - }, - "value" : "test" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cx-identifier", - "extension" : [ { - "url" : "CX.5", - "valueString" : "PI" - } ] - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "PID.3" - } ], - "type" : { - "coding" : [ { - "code" : "PI" - } ] - }, - "system" : "SPHL-000048", - "_system" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "SPHL-000048" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.1.10765" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueString" : "ISO" - } ] - }, - "value" : "PID123" - } ], - "name" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xpn-human-name", - "extension" : [ { - "url" : "XPN.2", - "valueString" : "HL7" - }, { - "url" : "XPN.3", - "valueString" : "MI" - }, { - "url" : "XPN.7", - "valueString" : "L" - } ] - } ], - "use" : "official", - "family" : "Mega", - "given" : [ "HL7", "MI" ] - } ], - "gender" : "female", - "_birthDate" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", - "valueString" : "0000" - } ] - }, - "address" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xad-address", - "extension" : [ { - "url" : "XAD.6", - "valueString" : "USA" - }, { - "url" : "XAD.7", - "valueCode" : "H" - } ] - } ], - "use" : "home", - "country" : "USA" - } ], - "contact" : [ { - "extension" : [ { - "url" : "https://hl7.org/fhir/StructureDefinition/relationship", - "valueCodeableConcept" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "HL70131" - } ], - "code" : "N", - "display" : "Next-of-Kin" - } ] - } - }, { - "url" : "https://hl7.org/fhir/StructureDefinition/relationship", - "valueCodeableConcept" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "HL70131" - } ], - "code" : "N", - "display" : "Next-of-Kin" - } ] - } - } ], - "name" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xpn-human-name", - "extension" : [ { - "url" : "XPN.2", - "valueString" : "Leia" - } ] - } ], - "family" : "Organa", - "given" : [ "Leia" ] - } - } ], - "generalPractitioner" : [ { - "reference" : "Organization/1713403050895828000.a4ed17ae-0bda-46b0-8c64-2fff7bc74ff1" - }, { - "reference" : "Organization/1713403050898442000.21adeac7-d800-4cd9-b344-af1a98cf6bcc" - } ] - } - }, { - "fullUrl" : "Location/1713403050894716000.d2a03df1-45d8-40cf-8e84-00497cd987c8", - "resource" : { - "resourceType" : "Location", - "id" : "1713403050894716000.d2a03df1-45d8-40cf-8e84-00497cd987c8", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ], - "identifier" : [ { - "value" : "2.16.840.1.113883.9.11" - } ], - "name" : "Hospital A", - "physicalType" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/location-physical-type", - "code" : "si" - } ] - } - } - }, { - "fullUrl" : "Organization/1713403050895828000.a4ed17ae-0bda-46b0-8c64-2fff7bc74ff1", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403050895828000.a4ed17ae-0bda-46b0-8c64-2fff7bc74ff1", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/organization-name-type", - "valueString" : "X" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/name-representation-code", - "valueString" : "NameRepCode" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xon-organization", - "extension" : [ { - "url" : "XON.3", - "valueString" : "123" - }, { - "url" : "XON.10", - "valueString" : "OrgIdentifier" - } ] - } ], - "identifier" : [ { - "extension" : [ { - "url" : "http://hl7.org/fhir/StructureDefinition/identifier-checkDigit", - "valueString" : "Check Digit" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "Assigning Authority" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.1.4.1" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - }, { - "url" : "http://hl7.org/fhir/StructureDefinition/namingsystem-checkDigit", - "valueCode" : "C1" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/identifier-location", - "valueReference" : { - "reference" : "Location/1713403050894716000.d2a03df1-45d8-40cf-8e84-00497cd987c8" - } - } ], - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", - "code" : "MD" - } ] - }, - "value" : "OrgIdentifier" - } ], - "name" : "Ordering Facility" - } - }, { - "fullUrl" : "Location/1713403050897351000.fbb0e514-9816-4355-8f9d-6a3e59f9b9e5", - "resource" : { - "resourceType" : "Location", - "id" : "1713403050897351000.fbb0e514-9816-4355-8f9d-6a3e59f9b9e5", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ], - "identifier" : [ { - "value" : "2.16.840.1.113883.9.11" - } ], - "name" : "Hospital A", - "physicalType" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/location-physical-type", - "code" : "si" - } ] - } - } - }, { - "fullUrl" : "Organization/1713403050898442000.21adeac7-d800-4cd9-b344-af1a98cf6bcc", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403050898442000.21adeac7-d800-4cd9-b344-af1a98cf6bcc", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/organization-name-type", - "valueString" : "X" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/name-representation-code", - "valueString" : "NameRepCode" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xon-organization", - "extension" : [ { - "url" : "XON.3", - "valueString" : "123" - }, { - "url" : "XON.10", - "valueString" : "OrgIdentifier" - } ] - } ], - "identifier" : [ { - "extension" : [ { - "url" : "http://hl7.org/fhir/StructureDefinition/identifier-checkDigit", - "valueString" : "Check Digit" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "Assigning Authority" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.1.4.1" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - }, { - "url" : "http://hl7.org/fhir/StructureDefinition/namingsystem-checkDigit", - "valueCode" : "C1" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/identifier-location", - "valueReference" : { - "reference" : "Location/1713403050897351000.fbb0e514-9816-4355-8f9d-6a3e59f9b9e5" - } - } ], - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", - "code" : "MD" - } ] - }, - "value" : "OrgIdentifier" - } ], - "name" : "Ordering Facility" - } - }, { - "fullUrl" : "Provenance/1713403050924731000.deeb0618-78d4-4c66-b374-ec32bb2509b1", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403050924731000.deeb0618-78d4-4c66-b374-ec32bb2509b1", - "target" : [ { - "reference" : "Patient/1713403050914425000.2377f845-bff3-4cc8-993f-4c9af35a7a0f" - } ], - "recorded" : "2024-04-17T19:17:30Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - }, { - "fullUrl" : "RelatedPerson/1713403050927052000.386f7345-bc28-44bf-9f8f-acccfd9f9060", - "resource" : { - "resourceType" : "RelatedPerson", - "id" : "1713403050927052000.386f7345-bc28-44bf-9f8f-acccfd9f9060", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Segment", - "valueString" : "NK1" - } ], - "patient" : { - "reference" : "Patient/1713403050914425000.2377f845-bff3-4cc8-993f-4c9af35a7a0f" - }, - "relationship" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "NK1.3" - } ], - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "HL70131" - } ], - "code" : "N", - "display" : "Next-of-Kin" - } ] - } ], - "name" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "NK1.2" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xpn-human-name", - "extension" : [ { - "url" : "XPN.2", - "valueString" : "Leia" - } ] - } ], - "family" : "Organa", - "given" : [ "Leia" ] - } ] - } - }, { - "fullUrl" : "RelatedPerson/1713403050929112000.442ffb28-e33e-46bd-ae07-a9ed338659b2", - "resource" : { - "resourceType" : "RelatedPerson", - "id" : "1713403050929112000.442ffb28-e33e-46bd-ae07-a9ed338659b2", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Segment", - "valueString" : "NK1" - } ], - "patient" : { - "reference" : "Patient/1713403050914425000.2377f845-bff3-4cc8-993f-4c9af35a7a0f" - }, - "relationship" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "NK1.3" - } ], - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "HL70131" - } ], - "code" : "N", - "display" : "Next-of-Kin" - } ] - } ], - "name" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "NK1.2" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xpn-human-name", - "extension" : [ { - "url" : "XPN.2", - "valueString" : "Liz" - } ] - } ], - "family" : "Navarro", - "given" : [ "Liz" ] - } ] - } - }, { - "fullUrl" : "Encounter/1713403050935347000.29dad495-b015-407e-b9d2-6932551884bc", - "resource" : { - "resourceType" : "Encounter", - "id" : "1713403050935347000.29dad495-b015-407e-b9d2-6932551884bc", - "subject" : { - "reference" : "Patient/1713403050914425000.2377f845-bff3-4cc8-993f-4c9af35a7a0f" - }, - "location" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "PV1.6" - } ], - "location" : { - "reference" : "Location/1713403050935076000.9d241b09-eb74-4b9c-b9c1-b3edf87edd08" - }, - "status" : "completed" - } ] - } - }, { - "fullUrl" : "Organization/1713403050934505000.6c008ec6-42f1-4ca4-bd70-d29ea8db8023", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403050934505000.6c008ec6-42f1-4ca4-bd70-d29ea8db8023", - "identifier" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "EI.2" - } ], - "value" : "NAME" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "EI.3,EI.4" - } ], - "type" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/codeable-concept-id", - "valueBoolean" : true - } ], - "code" : "ISO" - } ] - }, - "value" : "UNI" - } ] - } - }, { - "fullUrl" : "Location/1713403050935076000.9d241b09-eb74-4b9c-b9c1-b3edf87edd08", - "resource" : { - "resourceType" : "Location", - "id" : "1713403050935076000.9d241b09-eb74-4b9c-b9c1-b3edf87edd08", - "identifier" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "HD.1" - } ], - "value" : "Hospital A" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "HD.2,HD.3" - } ], - "type" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/codeable-concept-id", - "valueBoolean" : true - } ], - "code" : "ISO" - } ] - }, - "value" : "2.4.4.4" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/ei-assigner-organization-type", - "valueString" : "default" - } ], - "value" : "Entity ID", - "assigner" : { - "reference" : "Organization/1713403050934505000.6c008ec6-42f1-4ca4-bd70-d29ea8db8023" - } - } ], - "mode" : "instance", - "physicalType" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/location-physical-type", - "code" : "si" - } ] - } - } - }, { - "fullUrl" : "Observation/1713403051220745000.63ea27ea-0464-4655-af30-fb9bec820cd7", - "resource" : { - "resourceType" : "Observation", - "id" : "1713403051220745000.63ea27ea-0464-4655-af30-fb9bec820cd7", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/obx-observation", - "extension" : [ { - "url" : "OBX.2", - "valueId" : "CWE" - }, { - "url" : "OBX.11", - "valueString" : "F" - } ] - } ], - "status" : "final", - "code" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "LN" - } ], - "system" : "http://loinc.org", - "code" : "80383-3", - "display" : "Flu B" - } ] - }, - "subject" : { - "reference" : "Patient/1713403050914425000.2377f845-bff3-4cc8-993f-4c9af35a7a0f" - }, - "encounter" : { - "reference" : "Encounter/1713403050935347000.29dad495-b015-407e-b9d2-6932551884bc" - }, - "performer" : [ { - "reference" : "Organization/1713403051221822000.58493b41-e902-412c-a597-ae70d2ad2958" - }, { - "reference" : "Organization/1713403051224115000.9bd8da63-880c-4132-a775-7fddca3d01e1" - } ], - "valueCodeableConcept" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "SCT" - } ], - "system" : "http://snomed.info/sct", - "code" : "260415000", - "display" : "Not detected" - } ] - }, - "interpretation" : [ { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "HL70078" - } ], - "version" : "2.7", - "code" : "N", - "display" : "Normal" - } ] - } ] - } - }, { - "fullUrl" : "Organization/1713403051221822000.58493b41-e902-412c-a597-ae70d2ad2958", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403051221822000.58493b41-e902-412c-a597-ae70d2ad2958", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-organization", - "valueCodeableConcept" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "CLIA" - } ], - "code" : "11D1111111", - "display" : "CSV uploads" - } ] - } - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "OBX.15" - } ], - "identifier" : [ { - "system" : "CLIA", - "value" : "11D1111111" - } ], - "name" : "CSV uploads" - } - }, { - "fullUrl" : "Organization/1713403051224115000.9bd8da63-880c-4132-a775-7fddca3d01e1", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403051224115000.9bd8da63-880c-4132-a775-7fddca3d01e1", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/organization-name-type", - "valueString" : "L" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xon-organization", - "extension" : [ { - "url" : "XON.10", - "valueString" : "11D1111111" - } ] - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "OBX.25" - } ], - "identifier" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "CLIA" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.113883.4.7" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - } ], - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", - "code" : "XX" - } ] - }, - "value" : "11D1111111" - } ], - "name" : "CSV uploads-11D1111111", - "address" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xad-address", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/sad-address-line", - "extension" : [ { - "url" : "SAD.1", - "valueString" : "123 Main St" - } ] - }, { - "url" : "XAD.6", - "valueString" : "USA" - } ] - } ], - "line" : [ "123 Main St" ], - "state" : "CA", - "postalCode" : "94553", - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Observation/1713403051229443000.1250993d-331f-4cd5-9245-785817d2b937", - "resource" : { - "resourceType" : "Observation", - "id" : "1713403051229443000.1250993d-331f-4cd5-9245-785817d2b937", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/obx-observation", - "extension" : [ { - "url" : "OBX.2", - "valueId" : "CWE" - }, { - "url" : "OBX.11", - "valueString" : "F" - }, { - "url" : "OBX.17", - "valueCodeableConcept" : { - "text" : "BD Veritor System for Rapid Detection of SARS-CoV-2 & Flu A+B*" - } - } ] - } ], - "status" : "final", - "code" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "LN" - } ], - "system" : "http://loinc.org", - "code" : "80382-5", - "display" : "Flu A" - } ] - }, - "subject" : { - "reference" : "Patient/1713403050914425000.2377f845-bff3-4cc8-993f-4c9af35a7a0f" - }, - "encounter" : { - "reference" : "Encounter/1713403050935347000.29dad495-b015-407e-b9d2-6932551884bc" - }, - "performer" : [ { - "reference" : "Organization/1713403051230793000.6f20095e-6f2a-43a7-9979-d9c59d5cef26" - }, { - "reference" : "Organization/1713403051232819000.52237f95-65b3-4ed2-80e5-c391e40c0145" - } ], - "valueCodeableConcept" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "SCT" - } ], - "system" : "http://snomed.info/sct", - "code" : "260373001", - "display" : "Detected" - } ] - }, - "interpretation" : [ { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "HL70078" - } ], - "version" : "2.7", - "code" : "A", - "display" : "Abnormal" - } ] - } ], - "method" : { - "text" : "BD Veritor System for Rapid Detection of SARS-CoV-2 & Flu A+B*" - } - } - }, { - "fullUrl" : "Organization/1713403051230793000.6f20095e-6f2a-43a7-9979-d9c59d5cef26", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403051230793000.6f20095e-6f2a-43a7-9979-d9c59d5cef26", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-organization", - "valueCodeableConcept" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "CLIA" - } ], - "code" : "11D1111111", - "display" : "CSV uploads" - } ] - } - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "OBX.15" - } ], - "identifier" : [ { - "system" : "CLIA", - "value" : "11D1111111" - } ], - "name" : "CSV uploads" - } - }, { - "fullUrl" : "Organization/1713403051232819000.52237f95-65b3-4ed2-80e5-c391e40c0145", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403051232819000.52237f95-65b3-4ed2-80e5-c391e40c0145", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/organization-name-type", - "valueString" : "L" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xon-organization", - "extension" : [ { - "url" : "XON.10", - "valueString" : "11D1111111" - } ] - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "OBX.25" - } ], - "identifier" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "CLIA" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.113883.4.7" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - } ], - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", - "code" : "XX" - } ] - }, - "value" : "11D1111111" - } ], - "name" : "CSV uploads-11D1111111", - "address" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xad-address", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/sad-address-line", - "extension" : [ { - "url" : "SAD.1", - "valueString" : "123 Main St" - } ] - }, { - "url" : "XAD.6", - "valueString" : "USA" - } ] - } ], - "line" : [ "123 Main St" ], - "state" : "CA", - "postalCode" : "94553", - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Observation/1713403051238711000.862015cc-9666-45f1-abcb-072c55b08a5e", - "resource" : { - "resourceType" : "Observation", - "id" : "1713403051238711000.862015cc-9666-45f1-abcb-072c55b08a5e", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/sub-id", - "valueString" : "ZZYGNAUM-1" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/analysis-date-time", - "valueDateTime" : "2023-07-27T18:30:17-04:00", - "_valueDateTime" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", - "valueString" : "20230727183017-0400" - } ] - } - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/obx-observation", - "extension" : [ { - "url" : "OBX.2", - "valueId" : "CWE" - }, { - "url" : "OBX.11", - "valueString" : "F" - } ] - } ], - "status" : "final", - "code" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "LN" - } ], - "system" : "http://loinc.org", - "version" : "2.74", - "code" : "100383-9", - "display" : "MVPX DNA Spec Ql NAA+probe" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "alt-coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "L" - } ], - "system" : "https://terminology.hl7.org/CodeSystem-v2-0396.html#v2-0396-99zzzorL", - "version" : "v_unknown", - "code" : "3900", - "display" : "Monkeypox generic" - } ], - "text" : "Monkeypox generic" - }, - "subject" : { - "reference" : "Patient/1713403050914425000.2377f845-bff3-4cc8-993f-4c9af35a7a0f" - }, - "encounter" : { - "reference" : "Encounter/1713403050935347000.29dad495-b015-407e-b9d2-6932551884bc" - }, - "effectiveDateTime" : "2023-07-24T15:24:00Z", - "_effectiveDateTime" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", - "valueString" : "202307241524" - } ] - }, - "performer" : [ { - "reference" : "Organization/1713403051239999000.eef9dde6-46ec-41c1-903c-ec65f3ae7995" - }, { - "reference" : "PractitionerRole/1713403051240496000.525c59cd-acee-4a4a-a87c-2a9913e46736" - }, { - "reference" : "Organization/1713403051243854000.07213aa7-9756-42de-9e29-b0017559ce92" - } ], - "valueCodeableConcept" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "SCT" - } ], - "system" : "http://snomed.info/sct", - "version" : "09012018", - "code" : "10828004", - "display" : "Positive" - } ], - "text" : "Positive" - }, - "note" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/note-type", - "valueCodeableConcept" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/coding-system-oid", - "valueOid" : "urn:oid:2.16.840.1.113883.12.364" - } ], - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "HL70364" - } ], - "version" : "2.5.1", - "code" : "RE", - "display" : "Remark" - } ] - } - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/note-comment", - "valueId" : "Run level Comment" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/note-source", - "valueId" : "L" - } ], - "text" : "Run level Comment" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/note-type", - "valueCodeableConcept" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/coding-system-oid", - "valueOid" : "urn:oid:2.16.840.1.113883.12.364" - } ], - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "HL70364" - } ], - "version" : "2.5.1", - "code" : "RE", - "display" : "Remark" - } ] - } - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/note-comment", - "valueId" : "Result level Comment." - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/note-source", - "valueId" : "L" - } ], - "text" : "Result level Comment." - } ] - } - }, { - "fullUrl" : "Organization/1713403051239999000.eef9dde6-46ec-41c1-903c-ec65f3ae7995", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403051239999000.eef9dde6-46ec-41c1-903c-ec65f3ae7995", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-organization", - "valueCodeableConcept" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "CLIA" - } ], - "code" : "11D0668319", - "display" : "Centers for Disease Control and Prevention" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "alt-coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "L" - } ], - "system" : "https://terminology.hl7.org/CodeSystem-v2-0396.html#v2-0396-99zzzorL", - "code" : "47", - "display" : "Poxvirus Laboratory/Poxvirus and Rabies Branch" - } ] - } - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "OBX.15" - } ], - "identifier" : [ { - "system" : "CLIA", - "value" : "11D0668319" - } ], - "name" : "Centers for Disease Control and Prevention" - } - }, { - "fullUrl" : "Practitioner/1713403051241480000.0ed7f46b-85b6-41c7-b385-d19389df5f92", - "resource" : { - "resourceType" : "Practitioner", - "id" : "1713403051241480000.0ed7f46b-85b6-41c7-b385-d19389df5f92", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xcn-practitioner", - "extension" : [ { - "url" : "XCN.3", - "valueString" : "Christopher" - } ] - } ], - "identifier" : [ { - "value" : "NXQ0@cdc.gov" - } ], - "name" : [ { - "family" : "Anderson", - "given" : [ "Christopher" ] - } ] - } - }, { - "fullUrl" : "PractitionerRole/1713403051240496000.525c59cd-acee-4a4a-a87c-2a9913e46736", - "resource" : { - "resourceType" : "PractitionerRole", - "id" : "1713403051240496000.525c59cd-acee-4a4a-a87c-2a9913e46736", - "practitioner" : { - "reference" : "Practitioner/1713403051241480000.0ed7f46b-85b6-41c7-b385-d19389df5f92" - }, - "code" : [ { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/practitioner-role", - "code" : "responsibleObserver" - } ] - } ] - } - }, { - "fullUrl" : "Organization/1713403051243854000.07213aa7-9756-42de-9e29-b0017559ce92", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403051243854000.07213aa7-9756-42de-9e29-b0017559ce92", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/organization-name-type", - "valueString" : "L" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xon-organization", - "extension" : [ { - "url" : "XON.10", - "valueString" : "11D0668319" - } ] - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "OBX.25" - } ], - "identifier" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "CLIA" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.113883.4.7" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - } ], - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", - "code" : "XX" - } ] - }, - "value" : "11D0668319" - } ], - "name" : "Centers for Disease Control and Prevention", - "address" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xad-address", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/sad-address-line", - "extension" : [ { - "url" : "SAD.1", - "valueString" : "1600 Clifton Rd" - } ] - }, { - "url" : "XAD.6", - "valueString" : "USA" - }, { - "url" : "XAD.7", - "valueCode" : "B" - } ] - } ], - "use" : "work", - "line" : [ "1600 Clifton Rd" ], - "city" : "Atlanta", - "state" : "GA", - "postalCode" : "30329", - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Specimen/1713403051254672000.92ee87d5-8ebf-4178-8a57-345571255c97", - "resource" : { - "resourceType" : "Specimen", - "id" : "1713403051254672000.92ee87d5-8ebf-4178-8a57-345571255c97", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Segment", - "valueString" : "OBR" - } ] - } - }, { - "fullUrl" : "Specimen/1713403051254890000.304173c5-92a5-4aa7-bd9c-b2246c6c9e75", - "resource" : { - "resourceType" : "Specimen", - "id" : "1713403051254890000.304173c5-92a5-4aa7-bd9c-b2246c6c9e75", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Segment", - "valueString" : "OBR" - } ] - } - }, { - "fullUrl" : "Specimen/1713403051257732000.6da0d711-68e7-48bd-b43e-5d77757fe708", - "resource" : { - "resourceType" : "Specimen", - "id" : "1713403051257732000.6da0d711-68e7-48bd-b43e-5d77757fe708", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Segment", - "valueString" : "SPM" - } ], - "identifier" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "SPHL-000048" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.1.10765" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueString" : "ISO" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/filler-assigned-identifier", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/entity-identifier", - "valueString" : "3015894743" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "STARLIMS.CDC.Stag" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.3.3.2.1.2" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueString" : "ISO" - } ] - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Component", - "valueString" : "SPM.2.1" - } ], - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", - "code" : "PGN" - } ] - }, - "value" : "Specimen123" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "STARLIMS.CDC.Stag" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.3.3.2.1.2" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueString" : "ISO" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/placer-assigned-identifier", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/entity-identifier", - "valueString" : "Specimen123" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "SPHL-000048" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.1.10765" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueString" : "ISO" - } ] - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Component", - "valueString" : "SPM.2.2" - } ], - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", - "code" : "FGN" - } ] - }, - "value" : "3015894743" - } ], - "type" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "SCT" - } ], - "system" : "http://snomed.info/sct", - "version" : "0912017", - "code" : "119297000", - "display" : "Blood specimen" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "alt-coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "L" - } ], - "system" : "https://terminology.hl7.org/CodeSystem-v2-0396.html#v2-0396-99zzzorL", - "version" : "Adobe_Code", - "code" : "BLD", - "display" : "Blood" - } ], - "text" : "Blood" - } - } - }, { - "fullUrl" : "Specimen/1713403051260879000.9cc26fd8-4137-4d80-849e-7b530ee8c24b", - "resource" : { - "resourceType" : "Specimen", - "id" : "1713403051260879000.9cc26fd8-4137-4d80-849e-7b530ee8c24b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Segment", - "valueString" : "SPM" - } ], - "identifier" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "SPHL-000048" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.1.10765" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueString" : "ISO" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/filler-assigned-identifier", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/entity-identifier", - "valueString" : "3015894743" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "STARLIMS.CDC.Stag" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.3.3.2.1.2" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueString" : "ISO" - } ] - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Component", - "valueString" : "SPM.2.1" - } ], - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", - "code" : "PGN" - } ] - }, - "value" : "Specimen123" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "STARLIMS.CDC.Stag" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.3.3.2.1.2" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueString" : "ISO" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/placer-assigned-identifier", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/entity-identifier", - "valueString" : "Specimen123" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "SPHL-000048" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.1.10765" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueString" : "ISO" - } ] - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Component", - "valueString" : "SPM.2.2" - } ], - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", - "code" : "FGN" - } ] - }, - "value" : "3015894743" - } ], - "type" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "SCT" - } ], - "system" : "http://snomed.info/sct", - "version" : "0912017", - "code" : "119297000", - "display" : "Blood specimen" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "alt-coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "L" - } ], - "system" : "https://terminology.hl7.org/CodeSystem-v2-0396.html#v2-0396-99zzzorL", - "version" : "Adobe_Code", - "code" : "BLD", - "display" : "Blood" - } ], - "text" : "Blood" - } - } - }, { - "fullUrl" : "Observation/1713403051282055000.772aa683-9875-4d56-80ff-2d2b7b654051", - "resource" : { - "resourceType" : "Observation", - "id" : "1713403051282055000.772aa683-9875-4d56-80ff-2d2b7b654051", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/analysis-date-time", - "valueDateTime" : "2023-07-27T18:30:17Z", - "_valueDateTime" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", - "valueString" : "20230727183017" - } ] - } - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/obx-5-value-sn", - "extension" : [ { - "url" : "SN.2", - "valueString" : "28" - } ] - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/obx-observation", - "extension" : [ { - "url" : "OBX.2", - "valueId" : "SN" - }, { - "url" : "OBX.6", - "valueCodeableConcept" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "UCUM" - } ], - "system" : "http://unitsofmeasure.org", - "version" : "2.1", - "code" : "a", - "display" : "Year" - } ] - } - }, { - "url" : "OBX.11", - "valueString" : "F" - } ] - } ], - "status" : "final", - "code" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "LN" - } ], - "system" : "http://loinc.org", - "version" : "2.61", - "code" : "21612-7", - "display" : "Reported Patient Age!!!" - } ] - }, - "subject" : { - "reference" : "Patient/1713403050914425000.2377f845-bff3-4cc8-993f-4c9af35a7a0f" - }, - "focus" : [ { - "reference" : "Specimen/1713403051257732000.6da0d711-68e7-48bd-b43e-5d77757fe708" - } ], - "encounter" : { - "reference" : "Encounter/1713403050935347000.29dad495-b015-407e-b9d2-6932551884bc" - }, - "effectiveDateTime" : "2023-07-24T15:24:00Z", - "_effectiveDateTime" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", - "valueString" : "202307241524" - } ] - }, - "performer" : [ { - "reference" : "Organization/1713403051282826000.884371b3-052e-48b8-9bbe-a96cf87b2452" - }, { - "reference" : "Organization/1713403051284384000.6bbcbf89-8e13-48ea-a003-f77ebcffdd89" - } ] - } - }, { - "fullUrl" : "Organization/1713403051282826000.884371b3-052e-48b8-9bbe-a96cf87b2452", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403051282826000.884371b3-052e-48b8-9bbe-a96cf87b2452", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-organization", - "valueCodeableConcept" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "CLIA" - } ], - "code" : "11D0668319", - "display" : "Centers for Disease Control and Prevention" - } ] - } - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "OBX.15" - } ], - "identifier" : [ { - "system" : "CLIA", - "value" : "11D0668319" - } ], - "name" : "Centers for Disease Control and Prevention" - } - }, { - "fullUrl" : "Organization/1713403051284384000.6bbcbf89-8e13-48ea-a003-f77ebcffdd89", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403051284384000.6bbcbf89-8e13-48ea-a003-f77ebcffdd89", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/organization-name-type", - "valueString" : "L" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xon-organization", - "extension" : [ { - "url" : "XON.10", - "valueString" : "11D0668319" - } ] - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "OBX.25" - } ], - "identifier" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "CLIA" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.113883.4.7" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - } ], - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", - "code" : "XX" - } ] - }, - "value" : "11D0668319" - } ], - "name" : "Centers for Disease Control and Prevention", - "address" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xad-address", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/sad-address-line", - "extension" : [ { - "url" : "SAD.1", - "valueString" : "1600 Clifton Road" - } ] - }, { - "url" : "XAD.6", - "valueString" : "USA" - }, { - "url" : "XAD.7", - "valueCode" : "B" - } ] - } ], - "use" : "work", - "line" : [ "1600 Clifton Road" ], - "city" : "Atlanta", - "state" : "GA", - "postalCode" : "30329", - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Observation/1713403051288757000.7c43b4b9-e42b-432c-9431-1f3e316a977d", - "resource" : { - "resourceType" : "Observation", - "id" : "1713403051288757000.7c43b4b9-e42b-432c-9431-1f3e316a977d", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/analysis-date-time", - "valueDateTime" : "2023-07-27T18:30:17Z", - "_valueDateTime" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", - "valueString" : "20230727183017" - } ] - } - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/obx-5-value-sn", - "extension" : [ { - "url" : "SN.2", - "valueString" : "28" - } ] - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/obx-observation", - "extension" : [ { - "url" : "OBX.2", - "valueId" : "SN" - }, { - "url" : "OBX.6", - "valueCodeableConcept" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "UCUM" - } ], - "system" : "http://unitsofmeasure.org", - "version" : "2.1", - "code" : "a", - "display" : "Year" - } ] - } - }, { - "url" : "OBX.11", - "valueString" : "F" - } ] - } ], - "status" : "final", - "code" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "LN" - } ], - "system" : "http://loinc.org", - "version" : "2.61", - "code" : "21612-7", - "display" : "Reported Patient Age???" - } ] - }, - "subject" : { - "reference" : "Patient/1713403050914425000.2377f845-bff3-4cc8-993f-4c9af35a7a0f" - }, - "focus" : [ { - "reference" : "Specimen/1713403051260879000.9cc26fd8-4137-4d80-849e-7b530ee8c24b" - } ], - "encounter" : { - "reference" : "Encounter/1713403050935347000.29dad495-b015-407e-b9d2-6932551884bc" - }, - "effectiveDateTime" : "2023-07-24T15:24:00Z", - "_effectiveDateTime" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", - "valueString" : "202307241524" - } ] - }, - "performer" : [ { - "reference" : "Organization/1713403051289434000.87081c61-ca98-4f52-a551-ddbeb0b9950f" - }, { - "reference" : "Organization/1713403051290977000.694fec14-37dd-495e-a438-49217de44e6a" - } ] - } - }, { - "fullUrl" : "Organization/1713403051289434000.87081c61-ca98-4f52-a551-ddbeb0b9950f", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403051289434000.87081c61-ca98-4f52-a551-ddbeb0b9950f", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-organization", - "valueCodeableConcept" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "CLIA" - } ], - "code" : "11D0668319", - "display" : "Centers for Disease Control and Prevention" - } ] - } - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "OBX.15" - } ], - "identifier" : [ { - "system" : "CLIA", - "value" : "11D0668319" - } ], - "name" : "Centers for Disease Control and Prevention" - } - }, { - "fullUrl" : "Organization/1713403051290977000.694fec14-37dd-495e-a438-49217de44e6a", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403051290977000.694fec14-37dd-495e-a438-49217de44e6a", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/organization-name-type", - "valueString" : "L" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xon-organization", - "extension" : [ { - "url" : "XON.10", - "valueString" : "11D0668319" - } ] - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "OBX.25" - } ], - "identifier" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "CLIA" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.113883.4.7" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - } ], - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", - "code" : "XX" - } ] - }, - "value" : "11D0668319" - } ], - "name" : "Centers for Disease Control and Prevention", - "address" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xad-address", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/sad-address-line", - "extension" : [ { - "url" : "SAD.1", - "valueString" : "1600 Clifton Road" - } ] - }, { - "url" : "XAD.6", - "valueString" : "USA" - }, { - "url" : "XAD.7", - "valueCode" : "B" - } ] - } ], - "use" : "work", - "line" : [ "1600 Clifton Road" ], - "city" : "Atlanta", - "state" : "GA", - "postalCode" : "30329", - "country" : "USA" - } ] - } - }, { - "fullUrl" : "ServiceRequest/1713403051315096000.4d4ce9d4-f17b-4580-a279-ad9d07a3b157", - "resource" : { - "resourceType" : "ServiceRequest", - "id" : "1713403051315096000.4d4ce9d4-f17b-4580-a279-ad9d07a3b157", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/business-event", - "valueCode" : "RE" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/business-event", - "valueString" : "20230725" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/orc-common-order", - "extension" : [ { - "url" : "orc-21-ordering-facility-name", - "valueReference" : { - "reference" : "Organization/1713403051307596000.fe9adc52-30d6-4893-b844-8770aa74ffce" - } - }, { - "url" : "orc-22-ordering-facility-address", - "valueAddress" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xad-address", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/sad-address-line", - "extension" : [ { - "url" : "SAD.1", - "valueString" : "850 Marina Bay Parkway" - } ] - }, { - "url" : "XAD.2", - "valueString" : "Rm. E-361" - }, { - "url" : "XAD.6", - "valueString" : "USA" - }, { - "url" : "XAD.7", - "valueCode" : "M" - } ] - } ], - "type" : "postal", - "line" : [ "850 Marina Bay Parkway", "Rm. E-361" ], - "city" : "Richmond", - "state" : "CA", - "postalCode" : "94804", - "country" : "USA" - } - }, { - "url" : "orc-24-ordering-provider-address", - "valueAddress" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xad-address", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/sad-address-line", - "extension" : [ { - "url" : "SAD.1", - "valueString" : "11475 C Avenue" - } ] - }, { - "url" : "XAD.6", - "valueString" : "USA" - }, { - "url" : "XAD.7", - "valueCode" : "M" - } ] - } ], - "type" : "postal", - "line" : [ "11475 C Avenue" ], - "city" : "Auburn", - "state" : "CA", - "postalCode" : "95603", - "country" : "USA" - } - }, { - "url" : "orc-12-ordering-provider", - "valueReference" : { - "reference" : "Practitioner/1713403051310754000.092f4ce9-ce97-43ab-85c7-2462a78d5b63" - } - } ] - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/obr-observation-request", - "extension" : [ { - "url" : "OBR.2", - "valueIdentifier" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "SPHL-000048" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.1.10765" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - } ], - "value" : "Specimen123" - } - }, { - "url" : "OBR.3", - "valueIdentifier" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "STARLIMS.CDC.Stag" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.3.3.2.1.2" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - } ], - "value" : "3015894743_04608717" - } - }, { - "url" : "OBR.22", - "valueString" : "202308021808-0400" - }, { - "url" : "OBR.25", - "valueId" : "F" - }, { - "url" : "OBR.16", - "valueReference" : { - "reference" : "Practitioner/1713403051313210000.38644508-d849-4ad0-813e-d29a136f3430" - } - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/callback-number", - "valueContactPoint" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xtn-contact-point", - "extension" : [ { - "url" : "XTN.2", - "valueString" : "NET" - }, { - "url" : "XTN.3", - "valueString" : "Internet" - }, { - "url" : "XTN.4", - "valueString" : "MWaKabon@placer.ca.gov" - } ] - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "OBR.17" - } ], - "system" : "email", - "value" : "MWaKabon@placer.ca.gov" - } - } ] - } ], - "identifier" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "ORC.2" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "SPHL-000048" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.1.10765" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - } ], - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", - "code" : "PLAC" - } ] - }, - "value" : "Specimen123" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "ORC.3" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "STARLIMS.CDC.Stag" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.3.3.2.1.2" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - } ], - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", - "code" : "FILL" - } ] - }, - "value" : "3015894743_04608717" - } ], - "status" : "unknown", - "code" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/coding-system-oid", - "valueOid" : "urn:oid:2.16.840.1.113883.6.1" - } ], - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "LN" - } ], - "system" : "http://loinc.org", - "version" : "2.74", - "code" : "68991-9", - "display" : "Epidemiologically Important Information" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "secondary-alt-coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "L" - } ], - "system" : "https://terminology.hl7.org/CodeSystem-v2-0396.html#v2-0396-99zzzorL", - "code" : "CDC-10515", - "display" : "Poxvirus Molecular Detection" - } ] - }, - "subject" : { - "reference" : "Patient/1713403050914425000.2377f845-bff3-4cc8-993f-4c9af35a7a0f" - }, - "requester" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/callback-number", - "valueContactPoint" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xtn-contact-point", - "extension" : [ { - "url" : "XTN.2", - "valueString" : "NET" - }, { - "url" : "XTN.3", - "valueString" : "Internet" - }, { - "url" : "XTN.4", - "valueString" : "MWaKabon@placer.ca.gov" - } ] - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "ORC.14" - } ], - "system" : "email", - "value" : "MWaKabon@placer.ca.gov" - } - } ], - "reference" : "PractitionerRole/1713403051297888000.7e7fdefa-22cf-4bc0-a1d5-4f9e3adf048f" - } - } - }, { - "fullUrl" : "Practitioner/1713403051300732000.ca1fde96-a996-49ab-a06b-58899ec84bc0", - "resource" : { - "resourceType" : "Practitioner", - "id" : "1713403051300732000.ca1fde96-a996-49ab-a06b-58899ec84bc0", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "STARLIMS.CDC.Stag" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.3.3.2.1.2" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "ORC.12" - } ], - "identifier" : [ { - "type" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/codeable-concept-id", - "valueBoolean" : true - } ], - "code" : "XX" - } ] - }, - "system" : "STARLIMS.CDC.Stag", - "value" : "SPHL-000098" - } ], - "name" : [ { - "family" : "CA-Placer County Public Health Laboratory" - } ], - "address" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xad-address", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/sad-address-line", - "extension" : [ { - "url" : "SAD.1", - "valueString" : "11475 C Avenue" - } ] - }, { - "url" : "XAD.6", - "valueString" : "USA" - }, { - "url" : "XAD.7", - "valueCode" : "M" - } ] - } ], - "type" : "postal", - "line" : [ "11475 C Avenue" ], - "city" : "Auburn", - "state" : "CA", - "postalCode" : "95603", - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Organization/1713403051303441000.ac745efa-b697-43c8-88d3-54b02b0f742c", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403051303441000.ac745efa-b697-43c8-88d3-54b02b0f742c", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/organization-name-type", - "valueString" : "D" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xon-organization", - "extension" : [ { - "url" : "XON.10", - "valueString" : "SPHL-000048" - } ] - } ], - "identifier" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "STARLIMS.CDC.Stag" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.3.3.2.1.2" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - } ], - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", - "code" : "XX" - } ] - }, - "value" : "SPHL-000048" - } ], - "name" : "CDPH, Viral and Rickettsial Disease Laboratory", - "telecom" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xtn-contact-point", - "extension" : [ { - "url" : "XTN.2", - "valueString" : "WPN" - }, { - "url" : "XTN.3", - "valueString" : "Internet" - }, { - "url" : "XTN.4", - "valueString" : "VRDL.Mail@cdph.ca.gov" - } ] - } ], - "system" : "email", - "value" : "VRDL.Mail@cdph.ca.gov", - "use" : "work" - } ], - "address" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xad-address", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/sad-address-line", - "extension" : [ { - "url" : "SAD.1", - "valueString" : "850 Marina Bay Parkway" - } ] - }, { - "url" : "XAD.2", - "valueString" : "Rm. E-361" - }, { - "url" : "XAD.6", - "valueString" : "USA" - }, { - "url" : "XAD.7", - "valueCode" : "M" - } ] - } ], - "type" : "postal", - "line" : [ "850 Marina Bay Parkway", "Rm. E-361" ], - "city" : "Richmond", - "state" : "CA", - "postalCode" : "94804", - "country" : "USA" - } ] - } - }, { - "fullUrl" : "PractitionerRole/1713403051297888000.7e7fdefa-22cf-4bc0-a1d5-4f9e3adf048f", - "resource" : { - "resourceType" : "PractitionerRole", - "id" : "1713403051297888000.7e7fdefa-22cf-4bc0-a1d5-4f9e3adf048f", - "practitioner" : { - "reference" : "Practitioner/1713403051300732000.ca1fde96-a996-49ab-a06b-58899ec84bc0" - }, - "organization" : { - "reference" : "Organization/1713403051303441000.ac745efa-b697-43c8-88d3-54b02b0f742c" - } - } - }, { - "fullUrl" : "Organization/1713403051307596000.fe9adc52-30d6-4893-b844-8770aa74ffce", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403051307596000.fe9adc52-30d6-4893-b844-8770aa74ffce", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/organization-name-type", - "valueString" : "D" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xon-organization", - "extension" : [ { - "url" : "XON.10", - "valueString" : "SPHL-000048" - } ] - } ], - "identifier" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "STARLIMS.CDC.Stag" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.3.3.2.1.2" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - } ], - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", - "code" : "XX" - } ] - }, - "value" : "SPHL-000048" - } ], - "name" : "CDPH, Viral and Rickettsial Disease Laboratory" - } - }, { - "fullUrl" : "Practitioner/1713403051310754000.092f4ce9-ce97-43ab-85c7-2462a78d5b63", - "resource" : { - "resourceType" : "Practitioner", - "id" : "1713403051310754000.092f4ce9-ce97-43ab-85c7-2462a78d5b63", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "STARLIMS.CDC.Stag" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.3.3.2.1.2" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - } ], - "identifier" : [ { - "type" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/codeable-concept-id", - "valueBoolean" : true - } ], - "code" : "XX" - } ] - }, - "system" : "STARLIMS.CDC.Stag", - "value" : "SPHL-000098" - } ], - "name" : [ { - "family" : "CA-Placer County Public Health Laboratory" - } ] - } - }, { - "fullUrl" : "Practitioner/1713403051313210000.38644508-d849-4ad0-813e-d29a136f3430", - "resource" : { - "resourceType" : "Practitioner", - "id" : "1713403051313210000.38644508-d849-4ad0-813e-d29a136f3430", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "STARLIMS.CDC.Stag" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.3.3.2.1.2" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - } ], - "identifier" : [ { - "type" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/codeable-concept-id", - "valueBoolean" : true - } ], - "code" : "XX" - } ] - }, - "system" : "STARLIMS.CDC.Stag", - "value" : "SPHL-000098" - } ], - "name" : [ { - "family" : "CA-Placer County Public Health Laboratory" - } ] - } - }, { - "fullUrl" : "ServiceRequest/1713403051325184000.acd11243-7f94-4a11-ad81-17196251a85b", - "resource" : { - "resourceType" : "ServiceRequest", - "id" : "1713403051325184000.acd11243-7f94-4a11-ad81-17196251a85b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/obr-observation-request", - "extension" : [ { - "url" : "OBR.22", - "valueString" : "202308021726-0400" - }, { - "url" : "OBR.25", - "valueId" : "F" - }, { - "url" : "OBR.16", - "valueReference" : { - "reference" : "Practitioner/1713403051323578000.9e4eca2d-6a64-478a-88a1-b46674023702" - } - } ] - } ], - "identifier" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "OBR.2" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "SPHL-000048" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.1.10765" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - } ], - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", - "code" : "PLAC" - } ] - }, - "value" : "Specimen123" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "OBR.3" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "STARLIMS.CDC.Stag" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.3.3.2.1.2" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - } ], - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", - "code" : "FILL" - } ] - }, - "value" : "47_3015894743_04608717_1233" - } ], - "status" : "unknown", - "code" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/coding-system-oid", - "valueOid" : "urn:oid:2.16.840.1.113883.6.1" - } ], - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "LN" - } ], - "system" : "http://loinc.org", - "version" : "2.74", - "code" : "10383-9", - "display" : "MVPX DNA Spec Ql NAA+probe" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "secondary-alt-coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "L" - } ], - "system" : "https://terminology.hl7.org/CodeSystem-v2-0396.html#v2-0396-99zzzorL", - "code" : "CDC-10515", - "display" : "Poxvirus Molecular Detection" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "alt-coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "L" - } ], - "system" : "https://terminology.hl7.org/CodeSystem-v2-0396.html#v2-0396-99zzzorL", - "version" : "v unknown", - "code" : "1233", - "display" : "Monkeypox generic" - } ] - }, - "subject" : { - "reference" : "Patient/1713403050914425000.2377f845-bff3-4cc8-993f-4c9af35a7a0f" - }, - "requester" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/callback-number", - "valueContactPoint" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xtn-contact-point", - "extension" : [ { - "url" : "XTN.2", - "valueString" : "NET" - }, { - "url" : "XTN.3", - "valueString" : "Internet" - }, { - "url" : "XTN.4", - "valueString" : "MWaKabon@placer.ca.gov" - } ] - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "OBR.17" - } ], - "system" : "email", - "value" : "MWaKabon@placer.ca.gov" - } - } ], - "reference" : "Practitioner/1713403051317150000.5dcf8ff2-157d-49e8-bd38-a6c8195e6db7" - }, - "note" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/note-type", - "valueCodeableConcept" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/coding-system-oid", - "valueOid" : "urn:oid:2.16.840.1.113883.12.364" - } ], - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "HL70364" - } ], - "version" : "2.5.1", - "code" : "RE", - "display" : "Remark" - } ] - } - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/note-comment", - "valueId" : "Accession level coment." - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/note-source", - "valueId" : "L" - } ], - "text" : "Accession level coment." - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/note-type", - "valueCodeableConcept" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/coding-system-oid", - "valueOid" : "urn:oid:2.16.840.1.113883.12.364" - } ], - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "HL70364" - } ], - "version" : "2.5.1", - "code" : "RE", - "display" : "Remark" - } ] - } - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/note-comment", - "valueId" : "Test level comment." - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/note-source", - "valueId" : "L" - } ], - "text" : "Test level comment." - } ] - } - }, { - "fullUrl" : "Practitioner/1713403051317150000.5dcf8ff2-157d-49e8-bd38-a6c8195e6db7", - "resource" : { - "resourceType" : "Practitioner", - "id" : "1713403051317150000.5dcf8ff2-157d-49e8-bd38-a6c8195e6db7", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "STARLIMS.CDC.Stag" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.3.3.2.1.2" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "OBR.16" - } ], - "identifier" : [ { - "type" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/codeable-concept-id", - "valueBoolean" : true - } ], - "code" : "XX" - } ] - }, - "system" : "STARLIMS.CDC.Stag", - "value" : "SPHL-000098" - } ], - "name" : [ { - "family" : "CA-Placer County Public Health Laboratory" - } ] - } - }, { - "fullUrl" : "Practitioner/1713403051323578000.9e4eca2d-6a64-478a-88a1-b46674023702", - "resource" : { - "resourceType" : "Practitioner", - "id" : "1713403051323578000.9e4eca2d-6a64-478a-88a1-b46674023702", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "STARLIMS.CDC.Stag" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.3.3.2.1.2" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - } ], - "identifier" : [ { - "type" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/codeable-concept-id", - "valueBoolean" : true - } ], - "code" : "XX" - } ] - }, - "system" : "STARLIMS.CDC.Stag", - "value" : "SPHL-000098" - } ], - "name" : [ { - "family" : "CA-Placer County Public Health Laboratory" - } ] - } - }, { - "fullUrl" : "DiagnosticReport/1713403051336018000.fd7f6056-c0f8-40c2-b300-271da14337dc", - "resource" : { - "resourceType" : "DiagnosticReport", - "id" : "1713403051336018000.fd7f6056-c0f8-40c2-b300-271da14337dc", - "identifier" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "ORC.2" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "SPHL-000048" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.1.10765" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - } ], - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", - "code" : "PLAC" - } ] - }, - "value" : "Specimen123" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "STARLIMS.CDC.Stag" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.3.3.2.1.2" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - } ], - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", - "code" : "FILL" - } ] - }, - "value" : "3015894743_04608717" - } ], - "basedOn" : [ { - "reference" : "ServiceRequest/1713403051315096000.4d4ce9d4-f17b-4580-a279-ad9d07a3b157" - } ], - "status" : "final", - "code" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/coding-system-oid", - "valueOid" : "urn:oid:2.16.840.1.113883.6.1" - } ], - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "LN" - } ], - "system" : "http://loinc.org", - "version" : "2.74", - "code" : "68991-9", - "display" : "Epidemiologically Important Information" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "secondary-alt-coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "L" - } ], - "system" : "https://terminology.hl7.org/CodeSystem-v2-0396.html#v2-0396-99zzzorL", - "code" : "CDC-10515", - "display" : "Poxvirus Molecular Detection" - } ] - }, - "subject" : { - "reference" : "Patient/1713403050914425000.2377f845-bff3-4cc8-993f-4c9af35a7a0f" - }, - "encounter" : { - "reference" : "Encounter/1713403050935347000.29dad495-b015-407e-b9d2-6932551884bc" - }, - "effectiveDateTime" : "2023-07-24T15:24:00Z", - "_effectiveDateTime" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", - "valueString" : "202307241524" - } ] - }, - "issued" : "2023-08-02T18:08:00-04:00", - "_issued" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", - "valueString" : "202308021808-0400" - } ] - }, - "specimen" : [ { - "reference" : "Specimen/1713403051257732000.6da0d711-68e7-48bd-b43e-5d77757fe708" - }, { - "reference" : "Specimen/1713403051254672000.92ee87d5-8ebf-4178-8a57-345571255c97" - } ], - "result" : [ { - "reference" : "Observation/1713403051220745000.63ea27ea-0464-4655-af30-fb9bec820cd7" - }, { - "reference" : "Observation/1713403051229443000.1250993d-331f-4cd5-9245-785817d2b937" - } ] - } - }, { - "fullUrl" : "DiagnosticReport/1713403051340875000.6f3e2afa-c3c0-4a44-9fec-ccd43571021d", - "resource" : { - "resourceType" : "DiagnosticReport", - "id" : "1713403051340875000.6f3e2afa-c3c0-4a44-9fec-ccd43571021d", - "identifier" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "OBR.2" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "SPHL-000048" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.1.10765" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - } ], - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", - "code" : "PLAC" - } ] - }, - "value" : "Specimen123" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "STARLIMS.CDC.Stag" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.16.840.1.114222.4.3.3.2.1.2" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - } ], - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", - "code" : "FILL" - } ] - }, - "value" : "47_3015894743_04608717_1233" - } ], - "basedOn" : [ { - "reference" : "ServiceRequest/1713403051325184000.acd11243-7f94-4a11-ad81-17196251a85b" - } ], - "status" : "final", - "code" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/coding-system-oid", - "valueOid" : "urn:oid:2.16.840.1.113883.6.1" - } ], - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "LN" - } ], - "system" : "http://loinc.org", - "version" : "2.74", - "code" : "10383-9", - "display" : "MVPX DNA Spec Ql NAA+probe" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "secondary-alt-coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "L" - } ], - "system" : "https://terminology.hl7.org/CodeSystem-v2-0396.html#v2-0396-99zzzorL", - "code" : "CDC-10515", - "display" : "Poxvirus Molecular Detection" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "alt-coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "L" - } ], - "system" : "https://terminology.hl7.org/CodeSystem-v2-0396.html#v2-0396-99zzzorL", - "version" : "v unknown", - "code" : "1233", - "display" : "Monkeypox generic" - } ] - }, - "subject" : { - "reference" : "Patient/1713403050914425000.2377f845-bff3-4cc8-993f-4c9af35a7a0f" - }, - "encounter" : { - "reference" : "Encounter/1713403050935347000.29dad495-b015-407e-b9d2-6932551884bc" - }, - "effectiveDateTime" : "2023-07-24T15:24:00Z", - "_effectiveDateTime" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", - "valueString" : "202307241524" - } ] - }, - "issued" : "2023-08-02T17:26:00-04:00", - "_issued" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", - "valueString" : "202308021726-0400" - } ] - }, - "specimen" : [ { - "reference" : "Specimen/1713403051260879000.9cc26fd8-4137-4d80-849e-7b530ee8c24b" - }, { - "reference" : "Specimen/1713403051254890000.304173c5-92a5-4aa7-bd9c-b2246c6c9e75" - } ], - "result" : [ { - "reference" : "Observation/1713403051238711000.862015cc-9666-45f1-abcb-072c55b08a5e" - } ] - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/orur01/oru_r01-full.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/orur01/oru_r01-full.hl7 deleted file mode 100644 index 29752353cf3..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/orur01/oru_r01-full.hl7 +++ /dev/null @@ -1,23 +0,0 @@ -MSH|^~\&#|STARLIMS.CDC.Stag^2.16.840.1.114222.4.3.3.2.1.2^ISO|CDC Atlanta^11D0668319^CLIA|CDPH CA CALREDIE^2.16.840.1.114222.4.3.3.10.1.1^ISO|CDPH_CID^2.16.840.1.114222.4.1.2.14104^ISO|20230802180802-0400||ORU^R01^ORU_R01|3015894743_04608717_11184|T|2.5.1|||NE|NE|USA||||PHLabReport-NoAck^PHIN^2.16.840.1.113883.9.11^ISO -SFT|CDC^^^^^CDC&2.16.840.1.114222.4&ISO^XX^^^CDC CLIA|ELIMS V11|STARLIMS|Binary ID unknown|test|20230802180802-0400 -PID|1||test^^^STARLIMS.CDC.Stag&2.16.840.1.114222.4.3.3.2.1.2&ISO^PI~PID123^^^SPHL-000048&2.16.840.1.114222.4.1.10765&ISO^PI||Mega^HL7^MI^^^^L||0000|F|||^^^^^USA^H -PD1|C|A|Ordering Facility^X^123^Check Digit^C1^Assigning Authority&2.1.4.1&ISO^MD^Hospital A&2.16.840.1.113883.9.11&ISO^NameRepCode^OrgIdentifier~Ordering Facility^X^123^Check Digit^C1^Assigning Authority&2.1.4.1&ISO^MD^Hospital A&2.16.840.1.113883.9.11&ISO^NameRepCode^OrgIdentifier||F|T|F|F|N -NTE|1|L|Accession level coment.|RE^Remark^HL70364^^^^2.5.1^^^^^^^2.16.840.1.113883.12.364 -NTE|2|L|SPHL Submitter: CDPH, Viral and Rickettsial Disease Laboratory, Submitter ID: SPHL-000048, Address: 850 Marina Bay Parkway Rm. E-361 Richmond, California 94804 United States, Email: VRDL.Mail@cdph.ca.gov, Submitter Patient ID: PID123, Submitter Alt Patient ID: AltPID1234, Submitter Specimen ID: Specimen123, Submitter Alt Specimen ID: AltSP1234|RE^Remark^HL70364^^^^2.5.1^^^^^^^2.16.840.1.113883.12.364 -NK1|1|Organa^Leia|N^Next-of-Kin^HL70131 -NK1|2|Navarro^Liz|N^Next-of-Kin^HL70131 -PV1|1|||||^^^Hospital A&2.4.4.4&ISO^^^^^^Entity ID&NAME&UNI&ISO -ORC|RE|Specimen123^SPHL-000048^2.16.840.1.114222.4.1.10765^ISO|3015894743_04608717^STARLIMS.CDC.Stag^2.16.840.1.114222.4.3.3.2.1.2^ISO||||||20230725|||SPHL-000098^CA-Placer County Public Health Laboratory^^^^^^^STARLIMS.CDC.Stag&2.16.840.1.114222.4.3.3.2.1.2&ISO^^^^XX||^NET^Internet^MWaKabon@placer.ca.gov|||||||CDPH, Viral and Rickettsial Disease Laboratory^D^^^^STARLIMS.CDC.Stag&2.16.840.1.114222.4.3.3.2.1.2&ISO^XX^^^SPHL-000048|850 Marina Bay Parkway^Rm. E-361^Richmond^CA^94804^USA^M|^WPN^Internet^VRDL.Mail@cdph.ca.gov|11475 C Avenue^^Auburn^CA^95603^USA^M -OBR|1|Specimen123^SPHL-000048^2.16.840.1.114222.4.1.10765^ISO|3015894743_04608717^STARLIMS.CDC.Stag^2.16.840.1.114222.4.3.3.2.1.2^ISO|68991-9^Epidemiologically Important Information^LN^^^^2.74^^^CDC-10515^Poxvirus Molecular Detection^L^^2.16.840.1.113883.6.1|||202307241524|||||||||SPHL-000098^CA-Placer County Public Health Laboratory^^^^^^^STARLIMS.CDC.Stag&2.16.840.1.114222.4.3.3.2.1.2&ISO^^^^XX|^NET^Internet^MWaKabon@placer.ca.gov|||||202308021808-0400|||F -OBX|1|CWE|80383-3^Flu B^LN||260415000^Not detected^SCT|||N^Normal^HL70078^^^^2.7|||F||||11D1111111^CSV uploads^CLIA||||||||CSV uploads-11D1111111^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^11D1111111|123 Main St^^^CA^94553^USA -OBX|2|CWE|80382-5^Flu A^LN||260373001^Detected^SCT|||A^Abnormal^HL70078^^^^2.7|||F||||11D1111111^CSV uploads^CLIA||^^^^^^^^BD Veritor System for Rapid Detection of SARS-CoV-2 \T\ Flu A+B*||||||CSV uploads-11D1111111^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^11D1111111|123 Main St^^^CA^94553^USA -SPM|1|Specimen123&SPHL-000048&2.16.840.1.114222.4.1.10765&ISO^3015894743&STARLIMS.CDC.Stag&2.16.840.1.114222.4.3.3.2.1.2&ISO||119297000^Blood specimen^SCT^BLD^Blood^L^0912017^Adobe_Code^Blood -OBX|1|SN|21612-7^Reported Patient Age!!!^LN^^^^2.61||^28|a^Year^UCUM^^^^2.1|||||F|||202307241524|11D0668319^Centers for Disease Control and Prevention^CLIA||||20230727183017||||Centers for Disease Control and Prevention^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^11D0668319|1600 Clifton Road^^Atlanta^GA^30329^USA^B -OBR|2|Specimen123^SPHL-000048^2.16.840.1.114222.4.1.10765^ISO|47_3015894743_04608717_1233^STARLIMS.CDC.Stag^2.16.840.1.114222.4.3.3.2.1.2^ISO|10383-9^MVPX DNA Spec Ql NAA+probe^LN^1233^Monkeypox generic^L^2.74^v unknown^^CDC-10515^Poxvirus Molecular Detection^L^^2.16.840.1.113883.6.1|||202307241524|||||||||SPHL-000098^CA-Placer County Public Health Laboratory^^^^^^^STARLIMS.CDC.Stag&2.16.840.1.114222.4.3.3.2.1.2&ISO^^^^XX|^NET^Internet^MWaKabon@placer.ca.gov|||||202308021726-0400|||F -NTE|1|L|Accession level coment.|RE^Remark^HL70364^^^^2.5.1^^^^^^^2.16.840.1.113883.12.364 -NTE|2|L|Test level comment.|RE^Remark^HL70364^^^^2.5.1^^^^^^^2.16.840.1.113883.12.364 -OBX|1|CWE|100383-9^MVPX DNA Spec Ql NAA+probe^LN^3900^Monkeypox generic^L^2.74^v_unknown^Monkeypox generic|ZZYGNAUM-1|10828004^Positive^SCT^^^^09012018^^Positive||||||F|||202307241524|11D0668319^Centers for Disease Control and Prevention^CLIA^47^Poxvirus Laboratory/Poxvirus and Rabies Branch^L|NXQ0@cdc.gov^Anderson^Christopher|||20230727183017-0400||||Centers for Disease Control and Prevention^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^11D0668319|1600 Clifton Rd^^Atlanta^GA^30329^USA^B -NTE|1|L|Run level Comment|RE^Remark^HL70364^^^^2.5.1^^^^^^^2.16.840.1.113883.12.364 -NTE|2|L|Result level Comment.|RE^Remark^HL70364^^^^2.5.1^^^^^^^2.16.840.1.113883.12.364 -SPM|1|Specimen123&SPHL-000048&2.16.840.1.114222.4.1.10765&ISO^3015894743&STARLIMS.CDC.Stag&2.16.840.1.114222.4.3.3.2.1.2&ISO||119297000^Blood specimen^SCT^BLD^Blood^L^0912017^Adobe_Code^Blood -OBX|1|SN|21612-7^Reported Patient Age???^LN^^^^2.61||^28|a^Year^UCUM^^^^2.1|||||F|||202307241524|11D0668319^Centers for Disease Control and Prevention^CLIA||||20230727183017||||Centers for Disease Control and Prevention^L^^^^CLIA&2.16.840.1.113883.4.7&ISO^XX^^^11D0668319|1600 Clifton Road^^Atlanta^GA^30329^USA^B \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/prl/prl-to-servicerequest.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/prl/prl-to-servicerequest.fhir deleted file mode 100644 index 055e346026e..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/prl/prl-to-servicerequest.fhir +++ /dev/null @@ -1,234 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713403066467353000.db3dd9c8-cefe-4ef4-a631-8d601c455f45", - "meta" : { - "lastUpdated" : "2024-04-17T19:17:46.477-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "20230816123358" - }, - "type" : "message", - "timestamp" : "2023-08-16T11:33:58.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/bb504ecd-c2ab-3be3-91d8-6065e2bce435", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "bb504ecd-c2ab-3be3-91d8-6065e2bce435", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230816123358-0500" - }, { - "url" : "MSH.10", - "valueString" : "20230816123358" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - } - } - }, { - "fullUrl" : "Provenance/1713403067097619000.41f6404f-e4eb-4803-87af-ce80c0661269", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403067097619000.41f6404f-e4eb-4803-87af-ce80c0661269", - "target" : [ { - "reference" : "MessageHeader/bb504ecd-c2ab-3be3-91d8-6065e2bce435" - }, { - "reference" : "DiagnosticReport/1713403067434929000.bf17a0a5-8df2-46be-999b-0e91503ec3d8" - } ], - "recorded" : "2023-08-16T12:33:58-05:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713403067110774000.2084408c-8bcf-4abe-af89-f69f4ed604e7", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403067110774000.2084408c-8bcf-4abe-af89-f69f4ed604e7", - "recorded" : "2024-04-17T19:17:47Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713403067109354000.2aa64311-8f6c-4f5a-a1cd-a058f2bf1586" - } - } ] - } - }, { - "fullUrl" : "Organization/1713403067109354000.2aa64311-8f6c-4f5a-a1cd-a058f2bf1586", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403067109354000.2aa64311-8f6c-4f5a-a1cd-a058f2bf1586", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713403067133980000.f6f45975-3b95-409a-b584-49a6516ca231", - "resource" : { - "resourceType" : "Patient", - "id" : "1713403067133980000.f6f45975-3b95-409a-b584-49a6516ca231" - } - }, { - "fullUrl" : "Provenance/1713403067134963000.8b4ba600-f324-4fa2-ab8c-f8aaff6e921b", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403067134963000.8b4ba600-f324-4fa2-ab8c-f8aaff6e921b", - "target" : [ { - "reference" : "Patient/1713403067133980000.f6f45975-3b95-409a-b584-49a6516ca231" - } ], - "recorded" : "2024-04-17T19:17:47Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - }, { - "fullUrl" : "Specimen/1713403067137132000.3341d0e4-bad1-41ac-9912-0564150a65d9", - "resource" : { - "resourceType" : "Specimen", - "id" : "1713403067137132000.3341d0e4-bad1-41ac-9912-0564150a65d9", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Segment", - "valueString" : "OBR" - } ] - } - }, { - "fullUrl" : "ServiceRequest/1713403067428256000.a1e57096-485b-4336-a61a-7c5aa6e19fb1", - "resource" : { - "resourceType" : "ServiceRequest", - "id" : "1713403067428256000.a1e57096-485b-4336-a61a-7c5aa6e19fb1", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/obr-observation-request", - "extension" : [ { - "url" : "OBR.25", - "valueId" : "F" - }, { - "url" : "OBR.26", - "extension" : [ { - "url" : "prl-1-parent-observation-identifier", - "valueCodeableConcept" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/coding-system-oid", - "valueOid" : "urn:oid:TEST1234" - } ], - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "LN" - } ], - "system" : "http://loinc.org", - "version" : "PrimaryVersion", - "code" : "PrimaryCode", - "display" : "Primary Code Display" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "secondary-alt-coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "L" - } ], - "system" : "https://terminology.hl7.org/CodeSystem-v2-0396.html#v2-0396-99zzzorL", - "version" : "SecondaryAltVersion", - "code" : "SecondaryAltCode", - "display" : "SecondaryAltText" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "alt-coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "L" - } ], - "system" : "https://terminology.hl7.org/CodeSystem-v2-0396.html#v2-0396-99zzzorL", - "version" : "AltVersion", - "code" : "AltCode", - "display" : "AltText" - } ], - "text" : "OriginalText" - } - }, { - "url" : "prl-2-parent-observation-sub-identifier", - "valueString" : "Test1" - }, { - "url" : "prl-3-parent-observation-descriptor", - "valueString" : "Test2" - } ] - } ] - } ], - "status" : "unknown", - "code" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - } ], - "code" : "TEST" - } ] - }, - "subject" : { - "reference" : "Patient/1713403067133980000.f6f45975-3b95-409a-b584-49a6516ca231" - } - } - }, { - "fullUrl" : "DiagnosticReport/1713403067434929000.bf17a0a5-8df2-46be-999b-0e91503ec3d8", - "resource" : { - "resourceType" : "DiagnosticReport", - "id" : "1713403067434929000.bf17a0a5-8df2-46be-999b-0e91503ec3d8", - "basedOn" : [ { - "reference" : "ServiceRequest/1713403067428256000.a1e57096-485b-4336-a61a-7c5aa6e19fb1" - } ], - "status" : "final", - "code" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - } ], - "code" : "TEST" - } ] - }, - "subject" : { - "reference" : "Patient/1713403067133980000.f6f45975-3b95-409a-b584-49a6516ca231" - }, - "specimen" : [ { - "reference" : "Specimen/1713403067137132000.3341d0e4-bad1-41ac-9912-0564150a65d9" - } ] - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/prl/prl-to-servicerequest.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/prl/prl-to-servicerequest.hl7 deleted file mode 100644 index 392f83dfeef..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/prl/prl-to-servicerequest.hl7 +++ /dev/null @@ -1,3 +0,0 @@ -MSH|^~\&#|||||20230816123358-0500||ORU^R01^ORU_R01|20230816123358||2.5.1 -PID|1 -OBR|1|||TEST|||||||||||||||||||||F|PrimaryCode&Primary Code Display&LN&AltCode&AltText&L&PrimaryVersion&AltVersion&OriginalText&SecondaryAltCode&SecondaryAltText&L&SecondaryAltVersion&TEST1234^Test1^Test2 \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/xpn/xpn-to-humanname-xpn12-13-populated-xpn10-empty.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/xpn/xpn-to-humanname-xpn12-13-populated-xpn10-empty.fhir deleted file mode 100644 index a47b99e3615..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/xpn/xpn-to-humanname-xpn12-13-populated-xpn10-empty.fhir +++ /dev/null @@ -1,254 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713403085477795000.87b249cb-cffd-42d4-a0c6-1bc849ef19e1", - "meta" : { - "lastUpdated" : "2024-04-17T19:18:05.487-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "3003786103_4988249_33033" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/0993dd0b-6ce5-3caf-a177-0b81cc780c18", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "0993dd0b-6ce5-3caf-a177-0b81cc780c18", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "3003786103_4988249_33033" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - } - } - }, { - "fullUrl" : "Provenance/1713403086125556000.56cddc76-997e-4010-bc99-8b72195af802", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403086125556000.56cddc76-997e-4010-bc99-8b72195af802", - "target" : [ { - "reference" : "MessageHeader/0993dd0b-6ce5-3caf-a177-0b81cc780c18" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713403086138867000.16053c96-7e09-45c1-be9e-5d973827c9e3", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403086138867000.16053c96-7e09-45c1-be9e-5d973827c9e3", - "recorded" : "2024-04-17T19:18:06Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713403086137725000.e57452f6-eedc-4aa0-8f3f-cb85dfdf3ef5" - } - } ] - } - }, { - "fullUrl" : "Organization/1713403086137725000.e57452f6-eedc-4aa0-8f3f-cb85dfdf3ef5", - "resource" : { - "resourceType" : "Organization", - "id" : "1713403086137725000.e57452f6-eedc-4aa0-8f3f-cb85dfdf3ef5", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713403086172163000.32b3c4a9-e0e4-459c-a443-a028753bd407", - "resource" : { - "resourceType" : "Patient", - "id" : "1713403086172163000.32b3c4a9-e0e4-459c-a443-a028753bd407", - "contact" : [ { - "name" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xpn-human-name", - "extension" : [ { - "url" : "XPN.2", - "valueString" : "LUDWIG" - }, { - "url" : "XPN.3", - "valueString" : "B" - }, { - "url" : "XPN.4", - "valueString" : "2ND" - }, { - "url" : "XPN.6", - "valueString" : "MD" - }, { - "url" : "XPN.7", - "valueString" : "B" - }, { - "url" : "XPN.8", - "valueString" : "A" - }, { - "url" : "XPN.12", - "valueString" : "20220501102531-0400" - }, { - "url" : "XPN.13", - "valueString" : "20230501102531-0400" - }, { - "url" : "XPN.14", - "valueString" : "MD" - } ] - }, { - "url" : "http://hl7.org/fhir/StructureDefinition/humanname-assembly-order", - "valueCode" : "F" - } ], - "use" : "official", - "family" : "BEETHOVEN", - "_family" : { - "extension" : [ { - "url" : "http://hl7.org/fhir/StructureDefinition/humanname-own-prefix", - "valueString" : "VAN" - }, { - "url" : "http://hl7.org/fhir/StructureDefinition/humanname-own-name", - "valueString" : "BEETHOVEN" - }, { - "url" : "http://hl7.org/fhir/StructureDefinition/humanname-partner-prefix", - "valueString" : "VAL" - }, { - "url" : "http://hl7.org/fhir/StructureDefinition/humanname-partner-name", - "valueString" : "ROGER" - } ] - }, - "given" : [ "LUDWIG", "B" ], - "prefix" : [ "DR" ], - "suffix" : [ "2ND", "MD", "MD" ], - "period" : { - "start" : "2022-05-01T10:25:31-04:00", - "end" : "2023-05-01T10:25:31-04:00" - } - } - } ] - } - }, { - "fullUrl" : "Provenance/1713403086175184000.c6e7782b-d236-4380-9c66-45736f2b2b04", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713403086175184000.c6e7782b-d236-4380-9c66-45736f2b2b04", - "target" : [ { - "reference" : "Patient/1713403086172163000.32b3c4a9-e0e4-459c-a443-a028753bd407" - } ], - "recorded" : "2024-04-17T19:18:06Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - }, { - "fullUrl" : "RelatedPerson/1713403086181253000.8d5b84f7-90b0-4865-976d-6ecf7f60e4b7", - "resource" : { - "resourceType" : "RelatedPerson", - "id" : "1713403086181253000.8d5b84f7-90b0-4865-976d-6ecf7f60e4b7", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Segment", - "valueString" : "NK1" - } ], - "patient" : { - "reference" : "Patient/1713403086172163000.32b3c4a9-e0e4-459c-a443-a028753bd407" - }, - "name" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "NK1.2" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xpn-human-name", - "extension" : [ { - "url" : "XPN.2", - "valueString" : "LUDWIG" - }, { - "url" : "XPN.3", - "valueString" : "B" - }, { - "url" : "XPN.4", - "valueString" : "2ND" - }, { - "url" : "XPN.6", - "valueString" : "MD" - }, { - "url" : "XPN.7", - "valueString" : "B" - }, { - "url" : "XPN.8", - "valueString" : "A" - }, { - "url" : "XPN.12", - "valueString" : "20220501102531-0400" - }, { - "url" : "XPN.13", - "valueString" : "20230501102531-0400" - }, { - "url" : "XPN.14", - "valueString" : "MD" - } ] - }, { - "url" : "http://hl7.org/fhir/StructureDefinition/humanname-assembly-order", - "valueCode" : "F" - } ], - "use" : "official", - "family" : "BEETHOVEN", - "_family" : { - "extension" : [ { - "url" : "http://hl7.org/fhir/StructureDefinition/humanname-own-prefix", - "valueString" : "VAN" - }, { - "url" : "http://hl7.org/fhir/StructureDefinition/humanname-own-name", - "valueString" : "BEETHOVEN" - }, { - "url" : "http://hl7.org/fhir/StructureDefinition/humanname-partner-prefix", - "valueString" : "VAL" - }, { - "url" : "http://hl7.org/fhir/StructureDefinition/humanname-partner-name", - "valueString" : "ROGER" - } ] - }, - "given" : [ "LUDWIG", "B" ], - "prefix" : [ "DR" ], - "suffix" : [ "2ND", "MD", "MD" ], - "period" : { - "start" : "2022-05-01T10:25:31-04:00", - "end" : "2023-05-01T10:25:31-04:00" - } - } ] - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/xpn/xpn-to-humanname-xpn12-13-populated-xpn10-empty.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/xpn/xpn-to-humanname-xpn12-13-populated-xpn10-empty.hl7 deleted file mode 100644 index 11e1ff57dac..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251-elr/xpn/xpn-to-humanname-xpn12-13-populated-xpn10-empty.hl7 +++ /dev/null @@ -1,3 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|3003786103_4988249_33033||2.5.1 -PID|1 -NK1|1|BEETHOVEN&VAN&BEETHOVEN&VAL&ROGER^LUDWIG^B^2ND^DR^MD^B^A^^^F^20220501102531-0400^20230501102531-0400^MD \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cnn/cnn-to-Practitioner.csv b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cnn/cnn-to-Practitioner.csv deleted file mode 100644 index 7ccebe332e0..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cnn/cnn-to-Practitioner.csv +++ /dev/null @@ -1,14 +0,0 @@ -HL7 v2,,,,,,Condition (IF True),,,HL7 FHIR,,,,,,,,,Comments -Sort Order,Identifier,Name,Data Type,Cardinality - Min,Cardinality - Max,Computable ANTLR,Computable FHIRPath,Narrative,FHIR Attribute/ Data Type,,Data Type,Cardinality - Min,Cardinality - Max,Data Type Mapping,"Vocabulary Mapping -(IS, ID, CE, CNE, CWE)",Assignment,, -1,CNN.1,ID Number,ST,0,1,,,,identifier.value,,string,0,1,,,,, -2,CNN.2,Family Name,ST,0,1,,,,name.family,,string,0,1,,,,, -3,CNN.3,Given Name,ST,0,1,,,,name.given[1],,string,0,-1,,,,, -4,CNN.4,Second and Further Given Names or Initials Thereof,ST,0,1,,,,name.given[2],,string,0,-1,,,,, -5,CNN.5,"Suffix (e.g., JR or III)",ST,0,1,,,,name.suffix[1],,string,0,-1,,,,, -6,CNN.6,"Prefix (e.g., DR)",ST,0,1,,,,name.prefix,,string,0,-1,,,,, -7,CNN.7,"Degree (e.g., MD)",IS,0,1,,,,name.suffix[2],,string,0,-1,,,,, -8,CNN.8,Source Table,IS,0,1,,,,,,,,,,,,, -9,CNN.9,Assigning Authority- Namespace ID,IS,0,1,,,,,identifier.extension??-assigningauthority.nameSpaceID,string,0,1,,,,, -10,CNN.10,Assigning Authority- Universal ID,ST,0,1,,,,,identifier.extension??-assigningauthority.universalID,string,0,1,,,,, -11,CNN.11,Assigning Authority- Universal ID Type,ID,0,1,,,,,identifier.extension??-assigningauthority.univeralIDType,code,0,1,,,,, \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cnn/cnn-to-Practitioner.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cnn/cnn-to-Practitioner.fhir deleted file mode 100644 index 65c15654828..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cnn/cnn-to-Practitioner.fhir +++ /dev/null @@ -1,235 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713393880004309000.b59a8aad-38c3-4243-be7c-45114f95fed9", - "meta" : { - "lastUpdated" : "2024-04-17T16:44:40.014-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "12345" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "12345" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713393880112498000.f7f0e7e8-aaa8-4e0d-98df-6094345361fc" - } - } - }, { - "fullUrl" : "Organization/1713393880112498000.f7f0e7e8-aaa8-4e0d-98df-6094345361fc", - "resource" : { - "resourceType" : "Organization", - "id" : "1713393880112498000.f7f0e7e8-aaa8-4e0d-98df-6094345361fc", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713393880626524000.24529ecb-5e2d-42e2-a8b3-665dff92963b", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713393880626524000.24529ecb-5e2d-42e2-a8b3-665dff92963b", - "target" : [ { - "reference" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b" - }, { - "reference" : "DiagnosticReport/1713393880899669000.c3855133-7bd8-4ea9-9e2a-2dae6bb5d58f" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713393880639311000.226a0bac-5c56-4652-8e9d-254fa905911c", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713393880639311000.226a0bac-5c56-4652-8e9d-254fa905911c", - "recorded" : "2024-04-17T16:44:40Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713393880637824000.5cde0298-0f1b-46de-9e4e-d3b2900f7709" - } - } ] - } - }, { - "fullUrl" : "Organization/1713393880637824000.5cde0298-0f1b-46de-9e4e-d3b2900f7709", - "resource" : { - "resourceType" : "Organization", - "id" : "1713393880637824000.5cde0298-0f1b-46de-9e4e-d3b2900f7709", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713393880658662000.8bba09eb-f326-4227-b606-ea2c18e1408b", - "resource" : { - "resourceType" : "Patient", - "id" : "1713393880658662000.8bba09eb-f326-4227-b606-ea2c18e1408b" - } - }, { - "fullUrl" : "Provenance/1713393880659653000.e1c2c5d7-d3c6-4706-bc5c-cb29449306db", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713393880659653000.e1c2c5d7-d3c6-4706-bc5c-cb29449306db", - "target" : [ { - "reference" : "Patient/1713393880658662000.8bba09eb-f326-4227-b606-ea2c18e1408b" - } ], - "recorded" : "2024-04-17T16:44:40Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - }, { - "fullUrl" : "Specimen/1713393880661409000.d1daeccb-38a5-4dd8-80ec-15092d564bbb", - "resource" : { - "resourceType" : "Specimen", - "id" : "1713393880661409000.d1daeccb-38a5-4dd8-80ec-15092d564bbb", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Segment", - "valueString" : "OBR" - } ] - } - }, { - "fullUrl" : "ServiceRequest/1713393880890702000.ba50d503-0a22-4ab3-8fcc-badd79e63838", - "resource" : { - "resourceType" : "ServiceRequest", - "id" : "1713393880890702000.ba50d503-0a22-4ab3-8fcc-badd79e63838", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/obr-observation-request", - "extension" : [ { - "url" : "OBR.25", - "valueId" : "F" - } ] - } ], - "status" : "unknown", - "subject" : { - "reference" : "Patient/1713393880658662000.8bba09eb-f326-4227-b606-ea2c18e1408b" - } - } - }, { - "fullUrl" : "DiagnosticReport/1713393880899669000.c3855133-7bd8-4ea9-9e2a-2dae6bb5d58f", - "resource" : { - "resourceType" : "DiagnosticReport", - "id" : "1713393880899669000.c3855133-7bd8-4ea9-9e2a-2dae6bb5d58f", - "basedOn" : [ { - "reference" : "ServiceRequest/1713393880890702000.ba50d503-0a22-4ab3-8fcc-badd79e63838" - } ], - "status" : "final", - "subject" : { - "reference" : "Patient/1713393880658662000.8bba09eb-f326-4227-b606-ea2c18e1408b" - }, - "resultsInterpreter" : [ { - "reference" : "PractitionerRole/1713393880898126000.4772e730-ae2c-44d0-9aff-a2b65a8076e5" - } ], - "specimen" : [ { - "reference" : "Specimen/1713393880661409000.d1daeccb-38a5-4dd8-80ec-15092d564bbb" - } ] - } - }, { - "fullUrl" : "Practitioner/1713393880896316000.bb4bb5ef-9184-496a-ad51-2621b4310570", - "resource" : { - "resourceType" : "Practitioner", - "id" : "1713393880896316000.bb4bb5ef-9184-496a-ad51-2621b4310570", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cnn-practitioner", - "extension" : [ { - "url" : "CNN.3", - "valueString" : "JAMISON" - }, { - "url" : "CNN.4", - "valueString" : "S" - }, { - "url" : "CNN.5", - "valueString" : "ESQ" - }, { - "url" : "CNN.7", - "valueString" : "MD" - }, { - "url" : "CNN.8", - "valueString" : "X" - } ] - } ], - "identifier" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "Assigning Authority" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.1.4.1" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - } ], - "value" : "123" - } ], - "name" : [ { - "family" : "DOE", - "given" : [ "JAMISON", "S" ], - "prefix" : [ "DR" ], - "suffix" : [ "ESQ", "MD" ] - } ] - } - }, { - "fullUrl" : "PractitionerRole/1713393880898126000.4772e730-ae2c-44d0-9aff-a2b65a8076e5", - "resource" : { - "resourceType" : "PractitionerRole", - "id" : "1713393880898126000.4772e730-ae2c-44d0-9aff-a2b65a8076e5", - "practitioner" : { - "reference" : "Practitioner/1713393880896316000.bb4bb5ef-9184-496a-ad51-2621b4310570" - } - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cnn/cnn-to-Practitioner.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cnn/cnn-to-Practitioner.hl7 deleted file mode 100644 index 189e58ec19d..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cnn/cnn-to-Practitioner.hl7 +++ /dev/null @@ -1,3 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|12345||2.5.1|||||USA|UNICODE UTF-8 -PID|1 -OBR|1||||||||||||||||||||||||F|||||||123&DOE&JAMISON&S&ESQ&DR&MD&X&Assigning Authority&2.1.4.1&ISO diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-10-test-value-cwe8.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-10-test-value-cwe8.fhir deleted file mode 100644 index 58176145db5..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-10-test-value-cwe8.fhir +++ /dev/null @@ -1,150 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713394837210696000.6d4364a4-0e4f-48fb-9f58-6eea07911f37", - "meta" : { - "lastUpdated" : "2024-04-17T17:00:37.220-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "12345" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "12345" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713394837313897000.aa92f5d6-b2d5-44c4-8891-b59a96255af6" - } - } - }, { - "fullUrl" : "Organization/1713394837313897000.aa92f5d6-b2d5-44c4-8891-b59a96255af6", - "resource" : { - "resourceType" : "Organization", - "id" : "1713394837313897000.aa92f5d6-b2d5-44c4-8891-b59a96255af6", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713394837829159000.d43ae37a-2985-4dd4-8a11-1ae513d53dde", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394837829159000.d43ae37a-2985-4dd4-8a11-1ae513d53dde", - "target" : [ { - "reference" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713394837842282000.add5d0d0-e321-4626-a06f-9bc5040c2b86", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394837842282000.add5d0d0-e321-4626-a06f-9bc5040c2b86", - "recorded" : "2024-04-17T17:00:37Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713394837841300000.5a813ac7-38a9-4344-a047-48bea62df89b" - } - } ] - } - }, { - "fullUrl" : "Organization/1713394837841300000.5a813ac7-38a9-4344-a047-48bea62df89b", - "resource" : { - "resourceType" : "Organization", - "id" : "1713394837841300000.5a813ac7-38a9-4344-a047-48bea62df89b", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713394837869503000.9be92edb-e84e-45d7-86a6-1d0efef26c80", - "resource" : { - "resourceType" : "Patient", - "id" : "1713394837869503000.9be92edb-e84e-45d7-86a6-1d0efef26c80", - "extension" : [ { - "url" : "http://hl7.org/fhir/StructureDefinition/patient-citizenship", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/code", - "valueCodeableConcept" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "PID.39" - } ], - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "alt-coding" - } ], - "version" : "AltVersion" - } ] - } - } ] - } ] - } - }, { - "fullUrl" : "Provenance/1713394837870856000.b345411b-f8a4-4974-862a-b2068d7b09b2", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394837870856000.b345411b-f8a4-4974-862a-b2068d7b09b2", - "target" : [ { - "reference" : "Patient/1713394837869503000.9be92edb-e84e-45d7-86a6-1d0efef26c80" - } ], - "recorded" : "2024-04-17T17:00:37Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-10-test-value-cwe8.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-10-test-value-cwe8.hl7 deleted file mode 100644 index 882e62bbe8b..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-10-test-value-cwe8.hl7 +++ /dev/null @@ -1,2 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|12345||2.5.1|||||USA|UNICODE UTF-8 -PID|1||||||||||||||||||||||||||||||||||||||^^^^^^^AltVersion \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-11-test-value-cwe9.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-11-test-value-cwe9.fhir deleted file mode 100644 index 83f17c7f07b..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-11-test-value-cwe9.fhir +++ /dev/null @@ -1,144 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713394852853645000.7333fe01-15d1-4dcb-89a1-24111f862e76", - "meta" : { - "lastUpdated" : "2024-04-17T17:00:52.865-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "12345" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "12345" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713394852955892000.e4773570-28b7-4b33-9d00-f7c4bd9e68b0" - } - } - }, { - "fullUrl" : "Organization/1713394852955892000.e4773570-28b7-4b33-9d00-f7c4bd9e68b0", - "resource" : { - "resourceType" : "Organization", - "id" : "1713394852955892000.e4773570-28b7-4b33-9d00-f7c4bd9e68b0", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713394853486820000.7349c98d-11a8-4752-9627-e763ad1cd896", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394853486820000.7349c98d-11a8-4752-9627-e763ad1cd896", - "target" : [ { - "reference" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713394853500088000.28e9b60d-9721-4b1a-9f2d-fa10719db7ff", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394853500088000.28e9b60d-9721-4b1a-9f2d-fa10719db7ff", - "recorded" : "2024-04-17T17:00:53Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713394853498977000.ca6803ad-9104-4ef5-9f5b-638cb0d32529" - } - } ] - } - }, { - "fullUrl" : "Organization/1713394853498977000.ca6803ad-9104-4ef5-9f5b-638cb0d32529", - "resource" : { - "resourceType" : "Organization", - "id" : "1713394853498977000.ca6803ad-9104-4ef5-9f5b-638cb0d32529", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713394853525700000.4afe1c09-b4e0-4b4f-9035-c6ef01cd7e15", - "resource" : { - "resourceType" : "Patient", - "id" : "1713394853525700000.4afe1c09-b4e0-4b4f-9035-c6ef01cd7e15", - "extension" : [ { - "url" : "http://hl7.org/fhir/StructureDefinition/patient-citizenship", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/code", - "valueCodeableConcept" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "PID.39" - } ], - "text" : "OriginalText" - } - } ] - } ] - } - }, { - "fullUrl" : "Provenance/1713394853527127000.d034a7e7-f80f-4ded-ac8c-32753d81d7e8", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394853527127000.d034a7e7-f80f-4ded-ac8c-32753d81d7e8", - "target" : [ { - "reference" : "Patient/1713394853525700000.4afe1c09-b4e0-4b4f-9035-c6ef01cd7e15" - } ], - "recorded" : "2024-04-17T17:00:53Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-11-test-value-cwe9.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-11-test-value-cwe9.hl7 deleted file mode 100644 index 104007c7aaf..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-11-test-value-cwe9.hl7 +++ /dev/null @@ -1,2 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|12345||2.5.1|||||USA|UNICODE UTF-8 -PID|1||||||||||||||||||||||||||||||||||||||^^^^^^^^OriginalText \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-3-test-value-cwe1.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-3-test-value-cwe1.fhir deleted file mode 100644 index fd93060f804..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-3-test-value-cwe1.fhir +++ /dev/null @@ -1,150 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713394868669158000.9e444cc7-01cc-4bb3-ae8e-e6c7d3cb4d68", - "meta" : { - "lastUpdated" : "2024-04-17T17:01:08.679-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "12345" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "12345" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713394868772588000.ead2307e-0bcb-4cd7-8bb2-f4d0254ce141" - } - } - }, { - "fullUrl" : "Organization/1713394868772588000.ead2307e-0bcb-4cd7-8bb2-f4d0254ce141", - "resource" : { - "resourceType" : "Organization", - "id" : "1713394868772588000.ead2307e-0bcb-4cd7-8bb2-f4d0254ce141", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713394869306994000.79f1c6fb-9444-4167-b47b-9f1f2e0b3eb1", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394869306994000.79f1c6fb-9444-4167-b47b-9f1f2e0b3eb1", - "target" : [ { - "reference" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713394869319060000.573ef371-46e1-4c57-b3e8-f2c8288e8113", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394869319060000.573ef371-46e1-4c57-b3e8-f2c8288e8113", - "recorded" : "2024-04-17T17:01:09Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713394869318006000.d15bc0ac-9d93-413c-871b-6ff60b1b3e31" - } - } ] - } - }, { - "fullUrl" : "Organization/1713394869318006000.d15bc0ac-9d93-413c-871b-6ff60b1b3e31", - "resource" : { - "resourceType" : "Organization", - "id" : "1713394869318006000.d15bc0ac-9d93-413c-871b-6ff60b1b3e31", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713394869340318000.022c7d88-fd33-489c-8067-cbf9e030f17c", - "resource" : { - "resourceType" : "Patient", - "id" : "1713394869340318000.022c7d88-fd33-489c-8067-cbf9e030f17c", - "extension" : [ { - "url" : "http://hl7.org/fhir/StructureDefinition/patient-citizenship", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/code", - "valueCodeableConcept" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "PID.39" - } ], - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - } ], - "code" : "PrimaryCode" - } ] - } - } ] - } ] - } - }, { - "fullUrl" : "Provenance/1713394869341705000.f66a1601-3434-4439-9080-84876088c32e", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394869341705000.f66a1601-3434-4439-9080-84876088c32e", - "target" : [ { - "reference" : "Patient/1713394869340318000.022c7d88-fd33-489c-8067-cbf9e030f17c" - } ], - "recorded" : "2024-04-17T17:01:09Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-3-test-value-cwe1.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-3-test-value-cwe1.hl7 deleted file mode 100644 index b0cb36f233d..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-3-test-value-cwe1.hl7 +++ /dev/null @@ -1,2 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|12345||2.5.1|||||USA|UNICODE UTF-8 -PID|1||||||||||||||||||||||||||||||||||||||PrimaryCode \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-4-test-value-cwe2.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-4-test-value-cwe2.fhir deleted file mode 100644 index 41658edf0ab..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-4-test-value-cwe2.fhir +++ /dev/null @@ -1,150 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713394884120918000.1ff35302-4750-4b4a-aee0-606ec95a67fb", - "meta" : { - "lastUpdated" : "2024-04-17T17:01:24.131-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "12345" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "12345" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713394884221106000.623c27fd-60ed-4ad6-b126-cefcea8bc084" - } - } - }, { - "fullUrl" : "Organization/1713394884221106000.623c27fd-60ed-4ad6-b126-cefcea8bc084", - "resource" : { - "resourceType" : "Organization", - "id" : "1713394884221106000.623c27fd-60ed-4ad6-b126-cefcea8bc084", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713394884765295000.f231d2bc-bb57-453c-8145-8dbd40379604", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394884765295000.f231d2bc-bb57-453c-8145-8dbd40379604", - "target" : [ { - "reference" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713394884777774000.937d0b02-67d3-4a01-8f89-9556750604ff", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394884777774000.937d0b02-67d3-4a01-8f89-9556750604ff", - "recorded" : "2024-04-17T17:01:24Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713394884776790000.f5e44c71-ef5a-4f13-99d0-838104b878a6" - } - } ] - } - }, { - "fullUrl" : "Organization/1713394884776790000.f5e44c71-ef5a-4f13-99d0-838104b878a6", - "resource" : { - "resourceType" : "Organization", - "id" : "1713394884776790000.f5e44c71-ef5a-4f13-99d0-838104b878a6", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713394884800499000.ea898f68-1586-4f58-b10b-2b1badf8317d", - "resource" : { - "resourceType" : "Patient", - "id" : "1713394884800499000.ea898f68-1586-4f58-b10b-2b1badf8317d", - "extension" : [ { - "url" : "http://hl7.org/fhir/StructureDefinition/patient-citizenship", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/code", - "valueCodeableConcept" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "PID.39" - } ], - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - } ], - "display" : "PrimaryText" - } ] - } - } ] - } ] - } - }, { - "fullUrl" : "Provenance/1713394884802691000.ed786815-9637-4ba9-b745-3b0b4ae30693", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394884802691000.ed786815-9637-4ba9-b745-3b0b4ae30693", - "target" : [ { - "reference" : "Patient/1713394884800499000.ea898f68-1586-4f58-b10b-2b1badf8317d" - } ], - "recorded" : "2024-04-17T17:01:24Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-4-test-value-cwe2.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-4-test-value-cwe2.hl7 deleted file mode 100644 index 3dcda3b024f..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-4-test-value-cwe2.hl7 +++ /dev/null @@ -1,2 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|12345||2.5.1|||||USA|UNICODE UTF-8 -PID|1||||||||||||||||||||||||||||||||||||||^PrimaryText \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-5-test-value-cwe3.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-5-test-value-cwe3.fhir deleted file mode 100644 index 77567bae565..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-5-test-value-cwe3.fhir +++ /dev/null @@ -1,153 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713394899547799000.54d22dce-08ee-4875-9180-2159fa376182", - "meta" : { - "lastUpdated" : "2024-04-17T17:01:39.557-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "12345" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "12345" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713394899646578000.605178ae-b70f-4261-99a1-4db9ab21557e" - } - } - }, { - "fullUrl" : "Organization/1713394899646578000.605178ae-b70f-4261-99a1-4db9ab21557e", - "resource" : { - "resourceType" : "Organization", - "id" : "1713394899646578000.605178ae-b70f-4261-99a1-4db9ab21557e", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713394900161177000.5f841782-40a8-4f17-836f-fb016fc2bde0", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394900161177000.5f841782-40a8-4f17-836f-fb016fc2bde0", - "target" : [ { - "reference" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713394900173237000.d031b64d-b9b7-45d4-bf85-7f3dde2d9684", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394900173237000.d031b64d-b9b7-45d4-bf85-7f3dde2d9684", - "recorded" : "2024-04-17T17:01:40Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713394900172339000.99e30d90-0c58-4be0-9abc-30800efc755f" - } - } ] - } - }, { - "fullUrl" : "Organization/1713394900172339000.99e30d90-0c58-4be0-9abc-30800efc755f", - "resource" : { - "resourceType" : "Organization", - "id" : "1713394900172339000.99e30d90-0c58-4be0-9abc-30800efc755f", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713394900198229000.3dab0550-a4e0-4407-bf8b-d2e5caa361af", - "resource" : { - "resourceType" : "Patient", - "id" : "1713394900198229000.3dab0550-a4e0-4407-bf8b-d2e5caa361af", - "extension" : [ { - "url" : "http://hl7.org/fhir/StructureDefinition/patient-citizenship", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/code", - "valueCodeableConcept" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "PID.39" - } ], - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "LN" - } ], - "system" : "http://loinc.org" - } ] - } - } ] - } ] - } - }, { - "fullUrl" : "Provenance/1713394900199735000.e4318de8-27e0-46d8-a7c5-a90ebd0424d4", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394900199735000.e4318de8-27e0-46d8-a7c5-a90ebd0424d4", - "target" : [ { - "reference" : "Patient/1713394900198229000.3dab0550-a4e0-4407-bf8b-d2e5caa361af" - } ], - "recorded" : "2024-04-17T17:01:40Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-5-test-value-cwe3.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-5-test-value-cwe3.hl7 deleted file mode 100644 index 3dad063335d..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-5-test-value-cwe3.hl7 +++ /dev/null @@ -1,2 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|12345||2.5.1|||||USA|UNICODE UTF-8 -PID|1||||||||||||||||||||||||||||||||||||||^^LN \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-6-test-value-cwe4.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-6-test-value-cwe4.fhir deleted file mode 100644 index cfdca3bcfdb..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-6-test-value-cwe4.fhir +++ /dev/null @@ -1,150 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713394915037867000.8084b1dc-6077-4af0-8bd2-948e0d08a02b", - "meta" : { - "lastUpdated" : "2024-04-17T17:01:55.048-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "12345" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "12345" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713394915134823000.950e8a11-6913-4b13-b125-8a6f4905f63b" - } - } - }, { - "fullUrl" : "Organization/1713394915134823000.950e8a11-6913-4b13-b125-8a6f4905f63b", - "resource" : { - "resourceType" : "Organization", - "id" : "1713394915134823000.950e8a11-6913-4b13-b125-8a6f4905f63b", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713394915661923000.3616ee85-0de2-40c4-af14-d1f6dc8fe7e1", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394915661923000.3616ee85-0de2-40c4-af14-d1f6dc8fe7e1", - "target" : [ { - "reference" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713394915683687000.a25e91d3-db10-4eca-8c7d-4e1fe981eaa2", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394915683687000.a25e91d3-db10-4eca-8c7d-4e1fe981eaa2", - "recorded" : "2024-04-17T17:01:55Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713394915682548000.9bbac550-6d3f-4abc-a98d-65ea28f91d3f" - } - } ] - } - }, { - "fullUrl" : "Organization/1713394915682548000.9bbac550-6d3f-4abc-a98d-65ea28f91d3f", - "resource" : { - "resourceType" : "Organization", - "id" : "1713394915682548000.9bbac550-6d3f-4abc-a98d-65ea28f91d3f", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713394915705940000.6403584d-b35e-4580-b05c-c4588c19e663", - "resource" : { - "resourceType" : "Patient", - "id" : "1713394915705940000.6403584d-b35e-4580-b05c-c4588c19e663", - "extension" : [ { - "url" : "http://hl7.org/fhir/StructureDefinition/patient-citizenship", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/code", - "valueCodeableConcept" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "PID.39" - } ], - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "alt-coding" - } ], - "code" : "AltCode" - } ] - } - } ] - } ] - } - }, { - "fullUrl" : "Provenance/1713394915707211000.4b4dcd35-defb-47e5-b3f4-67c876edca82", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394915707211000.4b4dcd35-defb-47e5-b3f4-67c876edca82", - "target" : [ { - "reference" : "Patient/1713394915705940000.6403584d-b35e-4580-b05c-c4588c19e663" - } ], - "recorded" : "2024-04-17T17:01:55Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-6-test-value-cwe4.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-6-test-value-cwe4.hl7 deleted file mode 100644 index 4247159a94f..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-6-test-value-cwe4.hl7 +++ /dev/null @@ -1,2 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|12345||2.5.1|||||USA|UNICODE UTF-8 -PID|1||||||||||||||||||||||||||||||||||||||^^^AltCode \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-7-test-value-cwe5.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-7-test-value-cwe5.fhir deleted file mode 100644 index 9adc605b291..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-7-test-value-cwe5.fhir +++ /dev/null @@ -1,150 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713394930411716000.94132fcc-bd2e-4622-8a72-df8271619a87", - "meta" : { - "lastUpdated" : "2024-04-17T17:02:10.420-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "12345" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "12345" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713394930509966000.14eeac11-cecb-4050-9775-a50cc3b39921" - } - } - }, { - "fullUrl" : "Organization/1713394930509966000.14eeac11-cecb-4050-9775-a50cc3b39921", - "resource" : { - "resourceType" : "Organization", - "id" : "1713394930509966000.14eeac11-cecb-4050-9775-a50cc3b39921", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713394931027309000.50553de8-66c6-4a15-906e-3c198d4b2a2d", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394931027309000.50553de8-66c6-4a15-906e-3c198d4b2a2d", - "target" : [ { - "reference" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713394931038908000.f2eaf4d9-e667-4115-829c-676022564e13", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394931038908000.f2eaf4d9-e667-4115-829c-676022564e13", - "recorded" : "2024-04-17T17:02:11Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713394931037690000.cb720c2a-826d-4438-b446-ca22e17a2c09" - } - } ] - } - }, { - "fullUrl" : "Organization/1713394931037690000.cb720c2a-826d-4438-b446-ca22e17a2c09", - "resource" : { - "resourceType" : "Organization", - "id" : "1713394931037690000.cb720c2a-826d-4438-b446-ca22e17a2c09", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713394931062543000.b63b9730-3a30-4e49-9a97-c51970a91e44", - "resource" : { - "resourceType" : "Patient", - "id" : "1713394931062543000.b63b9730-3a30-4e49-9a97-c51970a91e44", - "extension" : [ { - "url" : "http://hl7.org/fhir/StructureDefinition/patient-citizenship", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/code", - "valueCodeableConcept" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "PID.39" - } ], - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "alt-coding" - } ], - "display" : "AltText" - } ] - } - } ] - } ] - } - }, { - "fullUrl" : "Provenance/1713394931063733000.91eb61ce-0c7c-47e3-8cfe-b6fbf60cdcb0", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394931063733000.91eb61ce-0c7c-47e3-8cfe-b6fbf60cdcb0", - "target" : [ { - "reference" : "Patient/1713394931062543000.b63b9730-3a30-4e49-9a97-c51970a91e44" - } ], - "recorded" : "2024-04-17T17:02:11Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-7-test-value-cwe5.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-7-test-value-cwe5.hl7 deleted file mode 100644 index e1418f6ed88..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-7-test-value-cwe5.hl7 +++ /dev/null @@ -1,2 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|12345||2.5.1|||||USA|UNICODE UTF-8 -PID|1||||||||||||||||||||||||||||||||||||||^^^^AltText \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-8-test-value-cwe6.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-8-test-value-cwe6.fhir deleted file mode 100644 index 6219a40cf09..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-8-test-value-cwe6.fhir +++ /dev/null @@ -1,153 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713394945750138000.5da39533-b8d9-420d-b708-73d00a85afa6", - "meta" : { - "lastUpdated" : "2024-04-17T17:02:25.759-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "12345" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "12345" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713394945848856000.7fa6743c-40c3-433f-a84c-4430999db590" - } - } - }, { - "fullUrl" : "Organization/1713394945848856000.7fa6743c-40c3-433f-a84c-4430999db590", - "resource" : { - "resourceType" : "Organization", - "id" : "1713394945848856000.7fa6743c-40c3-433f-a84c-4430999db590", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713394946385604000.f1117566-d888-46af-b2b5-70daa79c8598", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394946385604000.f1117566-d888-46af-b2b5-70daa79c8598", - "target" : [ { - "reference" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713394946399545000.35c43cfb-4053-4e36-af9e-c39e0b5b023f", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394946399545000.35c43cfb-4053-4e36-af9e-c39e0b5b023f", - "recorded" : "2024-04-17T17:02:26Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713394946398330000.f6bc190e-904b-4f50-873d-41cd4f4a48a1" - } - } ] - } - }, { - "fullUrl" : "Organization/1713394946398330000.f6bc190e-904b-4f50-873d-41cd4f4a48a1", - "resource" : { - "resourceType" : "Organization", - "id" : "1713394946398330000.f6bc190e-904b-4f50-873d-41cd4f4a48a1", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713394946422833000.e97cb2d5-9881-4235-9cbe-b09e89345a3d", - "resource" : { - "resourceType" : "Patient", - "id" : "1713394946422833000.e97cb2d5-9881-4235-9cbe-b09e89345a3d", - "extension" : [ { - "url" : "http://hl7.org/fhir/StructureDefinition/patient-citizenship", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/code", - "valueCodeableConcept" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "PID.39" - } ], - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "alt-coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "L" - } ], - "system" : "https://terminology.hl7.org/CodeSystem-v2-0396.html#v2-0396-99zzzorL" - } ] - } - } ] - } ] - } - }, { - "fullUrl" : "Provenance/1713394946424490000.d184d05a-b1db-4b66-9d4d-08252963ddee", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394946424490000.d184d05a-b1db-4b66-9d4d-08252963ddee", - "target" : [ { - "reference" : "Patient/1713394946422833000.e97cb2d5-9881-4235-9cbe-b09e89345a3d" - } ], - "recorded" : "2024-04-17T17:02:26Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-8-test-value-cwe6.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-8-test-value-cwe6.hl7 deleted file mode 100644 index 69e013fa07c..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-8-test-value-cwe6.hl7 +++ /dev/null @@ -1,2 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|12345||2.5.1|||||USA|UNICODE UTF-8 -PID|1||||||||||||||||||||||||||||||||||||||^^^^^L \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-9-test-value-cwe7.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-9-test-value-cwe7.fhir deleted file mode 100644 index 1136a6f5b14..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-9-test-value-cwe7.fhir +++ /dev/null @@ -1,150 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713394961246624000.1d2e3dda-ad87-4c23-987b-fb39764c0583", - "meta" : { - "lastUpdated" : "2024-04-17T17:02:41.256-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "12345" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "12345" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713394961343337000.df80d726-c44a-4bda-887b-34b14155d819" - } - } - }, { - "fullUrl" : "Organization/1713394961343337000.df80d726-c44a-4bda-887b-34b14155d819", - "resource" : { - "resourceType" : "Organization", - "id" : "1713394961343337000.df80d726-c44a-4bda-887b-34b14155d819", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713394961867970000.89364074-9e12-4d8f-a348-b004d2ec6044", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394961867970000.89364074-9e12-4d8f-a348-b004d2ec6044", - "target" : [ { - "reference" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713394961880380000.9c763cd1-9084-4532-ae8f-a628cab68fbd", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394961880380000.9c763cd1-9084-4532-ae8f-a628cab68fbd", - "recorded" : "2024-04-17T17:02:41Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713394961879131000.fb0519fa-0180-4f92-a96b-a35b8928432c" - } - } ] - } - }, { - "fullUrl" : "Organization/1713394961879131000.fb0519fa-0180-4f92-a96b-a35b8928432c", - "resource" : { - "resourceType" : "Organization", - "id" : "1713394961879131000.fb0519fa-0180-4f92-a96b-a35b8928432c", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713394961905787000.00bee4b3-ffb2-4ceb-9c95-b8710be9c713", - "resource" : { - "resourceType" : "Patient", - "id" : "1713394961905787000.00bee4b3-ffb2-4ceb-9c95-b8710be9c713", - "extension" : [ { - "url" : "http://hl7.org/fhir/StructureDefinition/patient-citizenship", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/code", - "valueCodeableConcept" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "PID.39" - } ], - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - } ], - "version" : "PrimaryVersion" - } ] - } - } ] - } ] - } - }, { - "fullUrl" : "Provenance/1713394961907071000.dcb049d2-20d1-408c-a835-eb712c8ef064", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713394961907071000.dcb049d2-20d1-408c-a835-eb712c8ef064", - "target" : [ { - "reference" : "Patient/1713394961905787000.00bee4b3-ffb2-4ceb-9c95-b8710be9c713" - } ], - "recorded" : "2024-04-17T17:02:41Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-9-test-value-cwe7.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-9-test-value-cwe7.hl7 deleted file mode 100644 index e00b9b67fa4..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/cwe/codeable-concept/cwe-9-test-value-cwe7.hl7 +++ /dev/null @@ -1,2 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|12345||2.5.1|||||USA|UNICODE UTF-8 -PID|1||||||||||||||||||||||||||||||||||||||^^^^^^PrimaryVersion \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/ndl/NDL-to-PractitionerRole.csv b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/ndl/NDL-to-PractitionerRole.csv deleted file mode 100644 index 9e60f616dd9..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/ndl/NDL-to-PractitionerRole.csv +++ /dev/null @@ -1,42 +0,0 @@ -HL7 v2,,,,,,Condition (IF True),,,HL7 FHIR,,,,,,,,,Comments -Sort Order,Identifier,Name,Data Type,Cardinality - Min,Cardinality - Max,Computable ANTLR,Computable FHIRPath,Narrative,FHIR Attribute/ Data Type,,Data Type,Cardinality - Min,Cardinality - Max,Data Type Mapping,"Vocabulary Mapping -(IS, ID, CE, CNE, CWE)",Assignment,, -1,NDL.1,Name,CNN,0,1,,,,practitioner(Practitioner),,Reference(Practitioner),0,1,CNN[Practitioner],,,, -2,NDL.2,Start Date/time,DTM,0,1,,,,period.start,,dateTime,0,1,,,,, -3,NDL.3,End Date/time,DTM,0,1,,,,period.end,,dateTime,0,1,,,,, -4,NDL.4,Point of Care,IS,0,1,,,,[1].identifier,,Identifier,,,HD[Identifier],,,, -4,NDL.4,Point of Care,IS,0,1,,,,[1].mode,,code,0,1,,,"""instance""",, -4,NDL.4,Point of Care,IS,0,1,,,,[1].physicalType.coding.code,,code,0,1,,,/extension??-poc/,, -4,NDL.4,Point of Care,IS,0,1,,,,[1].physicalType.coding.system,,uri,0,1,,,"""http://terminology.hl7.org/CodeSystem/location-physical-type""",, -4,NDL.4,Point of Care,IS,0,1,,,,[1].partOf.reference(Location[5]),,string,0,1,,,,, -5,NDL.5,Room,IS,0,1,,,,[2].identifier,,Identifier,,,HD[Identifier],,,, -5,NDL.5,Room,IS,0,1,,,,[2].mode,,code,0,1,,,"""instance""",, -5,NDL.5,Room,IS,0,1,,,,[2].physicalType.coding.code,,code,0,1,,,"""ro""",, -5,NDL.5,Room,IS,0,1,,,,[2].physicalType.coding.system,,uri,0,1,,,"""http://terminology.hl7.org/CodeSystem/location-physical-type""",, -5,NDL.5,Room,IS,0,1,,,,[2].partOf.reference(Location[1]),,string,0,1,,,,, -6,NDL.6,Bed,IS,0,1,,,,[3].identifier,,Identifier,,,HD[Identifier],,,, -6,NDL.6,Bed,IS,0,1,,,,[3].mode,,code,0,1,,,"""instance""",, -6,NDL.6,Bed,IS,0,1,,,,[3].physicalType.coding.code,,code,0,1,,,"""bd""",, -6,NDL.6,Bed,IS,0,1,,,,[3].physicalType.coding.system,,uri,0,1,,,"""http://terminology.hl7.org/CodeSystem/location-physical-type""",, -6,NDL.6,Bed,IS,0,1,,,,[3].partOf.reference(Location[2]),,string,0,1,,,,, -7,NDL.7,Facility,HD,0,1,,,,[4].identifier,,Identifier,,,HD[Identifier],,,, -7,NDL.7,Facility,HD,0,1,,,,[4].mode,,code,0,1,,,"""instance""",, -7,NDL.7,Facility,HD,0,1,,,,[4].physicalType.coding.code,,code,0,1,,,"""si""",, -7,NDL.7,Facility,HD,0,1,,,,[4].physicalType.coding.system,,uri,0,1,,,"""http://terminology.hl7.org/CodeSystem/location-physical-type""",, -8,NDL.8,Location Status,IS,0,1,IF PL.1 AND PL.2 AND PL.3 AND PL.4 AND PL.7 AND PL.8 NOT VALUED,,,[1].status,,,0,1,IS[code],,,, -8,NDL.8,Location Status,IS,0,1,IF PL.2 VALUED,,,[2].status,,,0,1,IS[code],,,, -8,NDL.8,Location Status,IS,0,1,IF PL.3 VALUED,,,[3].status,,,0,1,IS[code],,,, -8,NDL.8,Location Status,IS,0,1,IF PL.4 VALUED,,,[4].status,,,0,1,IS[code],,,, -8,NDL.8,Location Status,IS,0,1,IF PL.7 VALUED,,,[5].status,,,0,1,IS[code],,,, -8,NDL.8,Location Status,IS,0,1,IF PL.8 VALUED,,,[6].status,,,0,1,IS[code],,,, -9,NDL.9,Patient Location Type,IS,0,1,,,,,,,,,,,,, -10,NDL.10,Building,IS,0,1,,,,[5].identifier,,Identifier,,,HD[Identifier],,,, -10,NDL.10,Building,IS,0,1,,,,[5].mode,,code,0,1,,,"""instance""",, -10,NDL.10,Building,IS,0,1,,,,[5].physicalType.coding.code,,code,0,1,,,"""bu""",, -10,NDL.10,Building,IS,0,1,,,,[5].physicalType.coding.system,,uri,0,1,,,"""http://terminology.hl7.org/CodeSystem/location-physical-type""",, -10,NDL.10,Building,IS,0,1,,,,[5].partOf.reference(Location[4]),,string,0,1,,,,, -11,NDL.11,Floor,IS,0,1,,,,[6].identifier,,Identifier,,,HD[Identifier],,,, -11,NDL.11,Floor,IS,0,1,,,,[6].mode,,code,0,1,,,"""instance""",, -11,NDL.11,Floor,IS,0,1,,,,[6].physicalType.coding.code,,code,0,1,,,"""lvl""",, -11,NDL.11,Floor,IS,0,1,,,,[6].physicalType.coding.system,,uri,0,1,,,"""http://terminology.hl7.org/CodeSystem/location-physical-type""",, -11,NDL.11,Floor,IS,0,1,,,,[6].partOf.reference(Location[1]),,string,0,1,,,,, \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/ndl/NDL-to-PractitionerRole.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/ndl/NDL-to-PractitionerRole.fhir deleted file mode 100644 index d5dee105609..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/ndl/NDL-to-PractitionerRole.fhir +++ /dev/null @@ -1,432 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713402340643750000.a7c76342-ec73-43b5-b981-f93d64e96426", - "meta" : { - "lastUpdated" : "2024-04-17T19:05:40.654-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "12345" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "827ccb0e-ea8a-306c-8c34-a16891f84e7b", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "12345" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713402340765606000.da921f56-35c4-42bc-9735-fae128be604c" - } - } - }, { - "fullUrl" : "Organization/1713402340765606000.da921f56-35c4-42bc-9735-fae128be604c", - "resource" : { - "resourceType" : "Organization", - "id" : "1713402340765606000.da921f56-35c4-42bc-9735-fae128be604c", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713402341294938000.1149a934-3f3c-48e2-a458-c8e97f730b3c", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713402341294938000.1149a934-3f3c-48e2-a458-c8e97f730b3c", - "target" : [ { - "reference" : "MessageHeader/827ccb0e-ea8a-306c-8c34-a16891f84e7b" - }, { - "reference" : "DiagnosticReport/1713402341658889000.cce98d75-0790-4cdf-8099-92c05ef21c65" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713402341308904000.f9c49033-7faf-452b-be17-d171b6365d57", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713402341308904000.f9c49033-7faf-452b-be17-d171b6365d57", - "recorded" : "2024-04-17T19:05:41Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713402341307664000.370871f7-7ba1-4fae-baed-7d65a36c26ba" - } - } ] - } - }, { - "fullUrl" : "Organization/1713402341307664000.370871f7-7ba1-4fae-baed-7d65a36c26ba", - "resource" : { - "resourceType" : "Organization", - "id" : "1713402341307664000.370871f7-7ba1-4fae-baed-7d65a36c26ba", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713402341336895000.d90e2351-5caf-4d37-897f-604aaf045333", - "resource" : { - "resourceType" : "Patient", - "id" : "1713402341336895000.d90e2351-5caf-4d37-897f-604aaf045333" - } - }, { - "fullUrl" : "Provenance/1713402341337960000.4e4d9606-632b-40dc-a56a-88e396273619", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713402341337960000.4e4d9606-632b-40dc-a56a-88e396273619", - "target" : [ { - "reference" : "Patient/1713402341336895000.d90e2351-5caf-4d37-897f-604aaf045333" - } ], - "recorded" : "2024-04-17T19:05:41Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - }, { - "fullUrl" : "Specimen/1713402341339870000.04564c22-1798-4fab-a325-85328524cfd9", - "resource" : { - "resourceType" : "Specimen", - "id" : "1713402341339870000.04564c22-1798-4fab-a325-85328524cfd9", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Segment", - "valueString" : "OBR" - } ] - } - }, { - "fullUrl" : "ServiceRequest/1713402341623426000.47819b60-b7d0-48ea-9850-e5ef40b152b4", - "resource" : { - "resourceType" : "ServiceRequest", - "id" : "1713402341623426000.47819b60-b7d0-48ea-9850-e5ef40b152b4", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/obr-observation-request", - "extension" : [ { - "url" : "OBR.25", - "valueId" : "F" - } ] - } ], - "status" : "unknown", - "code" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/coding-system-oid", - "valueOid" : "urn:oid:2.16.840.1.113883.6.1" - } ], - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "LN" - } ], - "system" : "http://loinc.org", - "code" : "68991-9", - "display" : "Epidemiologically Important Information" - } ] - }, - "subject" : { - "reference" : "Patient/1713402341336895000.d90e2351-5caf-4d37-897f-604aaf045333" - } - } - }, { - "fullUrl" : "DiagnosticReport/1713402341658889000.cce98d75-0790-4cdf-8099-92c05ef21c65", - "resource" : { - "resourceType" : "DiagnosticReport", - "id" : "1713402341658889000.cce98d75-0790-4cdf-8099-92c05ef21c65", - "basedOn" : [ { - "reference" : "ServiceRequest/1713402341623426000.47819b60-b7d0-48ea-9850-e5ef40b152b4" - } ], - "status" : "final", - "code" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/coding-system-oid", - "valueOid" : "urn:oid:2.16.840.1.113883.6.1" - } ], - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "LN" - } ], - "system" : "http://loinc.org", - "code" : "68991-9", - "display" : "Epidemiologically Important Information" - } ] - }, - "subject" : { - "reference" : "Patient/1713402341336895000.d90e2351-5caf-4d37-897f-604aaf045333" - }, - "performer" : [ { - "reference" : "PractitionerRole/1713402341657180000.ea78d11f-0727-4024-b58f-ed06f954df87" - } ], - "specimen" : [ { - "reference" : "Specimen/1713402341339870000.04564c22-1798-4fab-a325-85328524cfd9" - } ] - } - }, { - "fullUrl" : "Practitioner/1713402341633151000.841c9dc6-8d76-4d1b-9ca5-2b6f4868957d", - "resource" : { - "resourceType" : "Practitioner", - "id" : "1713402341633151000.841c9dc6-8d76-4d1b-9ca5-2b6f4868957d", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cnn-practitioner", - "extension" : [ { - "url" : "CNN.3", - "valueString" : "JAMISON" - }, { - "url" : "CNN.4", - "valueString" : "S" - }, { - "url" : "CNN.5", - "valueString" : "ESQ" - }, { - "url" : "CNN.7", - "valueString" : "MD" - } ] - } ], - "identifier" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-authority", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/namespace-id", - "valueString" : "Assigning Authority" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id", - "valueString" : "2.1.4.1" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/universal-id-type", - "valueCode" : "ISO" - } ] - } ], - "value" : "123" - } ], - "name" : [ { - "family" : "DOE", - "given" : [ "JAMISON", "S" ], - "prefix" : [ "DR" ], - "suffix" : [ "ESQ", "MD" ] - } ] - } - }, { - "fullUrl" : "Location/1713402341636260000.77abc5f6-4fad-4392-8fe1-2bd29cf4f189", - "resource" : { - "resourceType" : "Location", - "id" : "1713402341636260000.77abc5f6-4fad-4392-8fe1-2bd29cf4f189", - "identifier" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "HD.1" - } ], - "value" : "Hospital A" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "HD.2,HD.3" - } ], - "type" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/codeable-concept-id", - "valueBoolean" : true - } ], - "code" : "ISO" - } ] - }, - "value" : "2.16.840.1.113883.9.11" - } ], - "status" : "active", - "mode" : "instance", - "physicalType" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/location-physical-type", - "code" : "si" - } ] - } - } - }, { - "fullUrl" : "Location/1713402341652902000.ab4a4061-ba25-4460-87d8-d2a1e85a72b3", - "resource" : { - "resourceType" : "Location", - "id" : "1713402341652902000.ab4a4061-ba25-4460-87d8-d2a1e85a72b3", - "identifier" : [ { - "value" : "Building 123" - } ], - "status" : "active", - "mode" : "instance", - "physicalType" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/location-physical-type", - "code" : "bu" - } ] - } - } - }, { - "fullUrl" : "Location/1713402341653924000.91cb98d9-4a09-4e59-b00c-cca5a0be825c", - "resource" : { - "resourceType" : "Location", - "id" : "1713402341653924000.91cb98d9-4a09-4e59-b00c-cca5a0be825c", - "identifier" : [ { - "value" : "Point of Care" - } ], - "status" : "active", - "mode" : "instance", - "physicalType" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/location-physical-type", - "_code" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/location-physical-type-poc", - "valueString" : "poc" - } ] - } - } ] - } - } - }, { - "fullUrl" : "Location/1713402341654751000.d0dff123-ba8d-4c73-89b7-26f22890f886", - "resource" : { - "resourceType" : "Location", - "id" : "1713402341654751000.d0dff123-ba8d-4c73-89b7-26f22890f886", - "identifier" : [ { - "value" : "Floor A" - } ], - "status" : "active", - "mode" : "instance", - "physicalType" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/location-physical-type", - "code" : "lvl" - } ] - } - } - }, { - "fullUrl" : "Location/1713402341655633000.ffde10f2-f5d7-4033-bc88-b181fcccaa67", - "resource" : { - "resourceType" : "Location", - "id" : "1713402341655633000.ffde10f2-f5d7-4033-bc88-b181fcccaa67", - "identifier" : [ { - "value" : "Room 101" - } ], - "status" : "active", - "mode" : "instance", - "physicalType" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/location-physical-type", - "code" : "ro" - } ] - } - } - }, { - "fullUrl" : "Location/1713402341656557000.78066d02-7485-4c81-8d46-dd512f4bb10a", - "resource" : { - "resourceType" : "Location", - "id" : "1713402341656557000.78066d02-7485-4c81-8d46-dd512f4bb10a", - "identifier" : [ { - "value" : "Bed A" - } ], - "status" : "active", - "mode" : "instance", - "physicalType" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/location-physical-type", - "code" : "bd" - } ] - } - } - }, { - "fullUrl" : "PractitionerRole/1713402341657180000.ea78d11f-0727-4024-b58f-ed06f954df87", - "resource" : { - "resourceType" : "PractitionerRole", - "id" : "1713402341657180000.ea78d11f-0727-4024-b58f-ed06f954df87", - "extension" : [ { - "url" : "http://hl7.org/fhir/StructureDefinition/event-performerFunction", - "valueCodeableConcept" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", - "code" : "TRANS" - } ] - } - } ], - "period" : { - "start" : "2023-04-01T10:25:31-04:00", - "_start" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", - "valueString" : "20230401102531-0400" - } ] - }, - "end" : "2023-05-01T10:25:31-04:00", - "_end" : { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2-date-time", - "valueString" : "20230501102531-0400" - } ] - } - }, - "practitioner" : { - "reference" : "Practitioner/1713402341633151000.841c9dc6-8d76-4d1b-9ca5-2b6f4868957d" - }, - "location" : [ { - "reference" : "Location/1713402341636260000.77abc5f6-4fad-4392-8fe1-2bd29cf4f189" - }, { - "reference" : "Location/1713402341652902000.ab4a4061-ba25-4460-87d8-d2a1e85a72b3" - }, { - "reference" : "Location/1713402341653924000.91cb98d9-4a09-4e59-b00c-cca5a0be825c" - }, { - "reference" : "Location/1713402341654751000.d0dff123-ba8d-4c73-89b7-26f22890f886" - }, { - "reference" : "Location/1713402341655633000.ffde10f2-f5d7-4033-bc88-b181fcccaa67" - }, { - "reference" : "Location/1713402341656557000.78066d02-7485-4c81-8d46-dd512f4bb10a" - } ] - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/ndl/NDL-to-PractitionerRole.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/ndl/NDL-to-PractitionerRole.hl7 deleted file mode 100644 index 3f8afd2bd7a..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/ndl/NDL-to-PractitionerRole.hl7 +++ /dev/null @@ -1,3 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|12345||2.5.1|||||USA|UNICODE UTF-8 -PID|1 -OBR|1|||68991-9^Epidemiologically Important Information^LN^^^^^^^^^^^2.16.840.1.113883.6.1|||||||||||||||||||||F||||||||||123&DOE&JAMISON&S&ESQ&DR&MD&&Assigning Authority&2.1.4.1&ISO^20230401102531-0400^20230501102531-0400^Point of Care^Room 101^Bed A^Hospital A&2.16.840.1.113883.9.11&ISO^active^^Building 123^Floor A diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/xad/xad-to-address.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/xad/xad-to-address.fhir deleted file mode 100644 index 612f5095cb8..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/xad/xad-to-address.fhir +++ /dev/null @@ -1,292 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713397228651177000.19b20187-d57d-4002-be82-5d622aef3af9", - "meta" : { - "lastUpdated" : "2024-04-17T17:40:28.661-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "3003786103_4988249_33033" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/0993dd0b-6ce5-3caf-a177-0b81cc780c18", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "0993dd0b-6ce5-3caf-a177-0b81cc780c18", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/character-set", - "valueString" : "UNICODE UTF-8" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "3003786103_4988249_33033" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - }, - "sender" : { - "reference" : "Organization/1713397228750654000.31eaa0ca-8324-423f-8e0e-d5c52dbef89e" - } - } - }, { - "fullUrl" : "Organization/1713397228750654000.31eaa0ca-8324-423f-8e0e-d5c52dbef89e", - "resource" : { - "resourceType" : "Organization", - "id" : "1713397228750654000.31eaa0ca-8324-423f-8e0e-d5c52dbef89e", - "address" : [ { - "country" : "USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713397229260212000.cbff06b7-15a3-4a9c-a306-6d79dd60c1c3", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713397229260212000.cbff06b7-15a3-4a9c-a306-6d79dd60c1c3", - "target" : [ { - "reference" : "MessageHeader/0993dd0b-6ce5-3caf-a177-0b81cc780c18" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713397229272223000.6cd7f2fd-88cc-40da-875b-b0495acd341d", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713397229272223000.6cd7f2fd-88cc-40da-875b-b0495acd341d", - "recorded" : "2024-04-17T17:40:29Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713397229270928000.d90d626b-3155-4fe7-92b5-88d1a69dc26e" - } - } ] - } - }, { - "fullUrl" : "Organization/1713397229270928000.d90d626b-3155-4fe7-92b5-88d1a69dc26e", - "resource" : { - "resourceType" : "Organization", - "id" : "1713397229270928000.d90d626b-3155-4fe7-92b5-88d1a69dc26e", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713397229307935000.bf1aa1af-119b-47e8-ba95-0beda22f25eb", - "resource" : { - "resourceType" : "Patient", - "id" : "1713397229307935000.bf1aa1af-119b-47e8-ba95-0beda22f25eb", - "identifier" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cx-identifier", - "extension" : [ { - "url" : "CX.5", - "valueString" : "MR" - } ] - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "PID.3" - } ], - "type" : { - "coding" : [ { - "code" : "MR" - } ] - }, - "value" : "11102779" - } ], - "name" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xpn-human-name", - "extension" : [ { - "url" : "XPN.2", - "valueString" : "BB SARAH" - }, { - "url" : "XPN.7", - "valueString" : "L" - } ] - } ], - "use" : "official", - "family" : "SMITH", - "given" : [ "BB SARAH" ] - } ], - "contact" : [ { - "name" : { }, - "organization" : { - "reference" : "Organization/1713397229301786000.53fb6c0d-8b74-47dd-a41e-3af1ad67dbdf" - } - } ] - } - }, { - "fullUrl" : "Organization/1713397229301786000.53fb6c0d-8b74-47dd-a41e-3af1ad67dbdf", - "resource" : { - "resourceType" : "Organization", - "id" : "1713397229301786000.53fb6c0d-8b74-47dd-a41e-3af1ad67dbdf", - "contact" : [ { - "address" : { - "extension" : [ { - "url" : "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-censusTract", - "valueCode" : "6059" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xad-address", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/sad-address-line", - "extension" : [ { - "url" : "SAD.1", - "valueString" : "4861" - }, { - "url" : "SAD.2", - "valueString" : "20TH AVE" - }, { - "url" : "SAD.3", - "valueString" : "1" - } ] - }, { - "url" : "XAD.2", - "valueString" : "Other Designation" - }, { - "url" : "XAD.6", - "valueString" : "USA" - }, { - "url" : "XAD.7", - "valueCode" : "H" - }, { - "url" : "XAD.8", - "valueString" : "Other Geographic Designation" - }, { - "url" : "XAD.11", - "valueCode" : "A" - }, { - "url" : "XAD.13", - "valueString" : "20220501102531-0400" - } ] - } ], - "use" : "home", - "line" : [ "4861", "20TH AVE", "1", "Other Designation" ], - "city" : "THUNDER MOUNTAIN", - "district" : "County", - "state" : "IG", - "postalCode" : "99999", - "country" : "USA", - "period" : { - "start" : "2022-05-01T10:25:31-04:00" - } - } - } ] - } - }, { - "fullUrl" : "Provenance/1713397229312286000.d9d0364e-a4c7-4895-b64c-f84c032bce3f", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713397229312286000.d9d0364e-a4c7-4895-b64c-f84c032bce3f", - "target" : [ { - "reference" : "Patient/1713397229307935000.bf1aa1af-119b-47e8-ba95-0beda22f25eb" - } ], - "recorded" : "2024-04-17T17:40:29Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - }, { - "fullUrl" : "RelatedPerson/1713397229317429000.90600892-04fc-4700-98a2-9b84dc8d3670", - "resource" : { - "resourceType" : "RelatedPerson", - "id" : "1713397229317429000.90600892-04fc-4700-98a2-9b84dc8d3670", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Segment", - "valueString" : "NK1" - } ], - "patient" : { - "reference" : "Patient/1713397229307935000.bf1aa1af-119b-47e8-ba95-0beda22f25eb" - }, - "address" : [ { - "extension" : [ { - "url" : "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-censusTract", - "valueCode" : "6059" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "NK1.32" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xad-address", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/sad-address-line", - "extension" : [ { - "url" : "SAD.1", - "valueString" : "4861" - }, { - "url" : "SAD.2", - "valueString" : "20TH AVE" - }, { - "url" : "SAD.3", - "valueString" : "1" - } ] - }, { - "url" : "XAD.2", - "valueString" : "Other Designation" - }, { - "url" : "XAD.6", - "valueString" : "USA" - }, { - "url" : "XAD.7", - "valueCode" : "H" - }, { - "url" : "XAD.8", - "valueString" : "Other Geographic Designation" - }, { - "url" : "XAD.11", - "valueCode" : "A" - }, { - "url" : "XAD.13", - "valueString" : "20220501102531-0400" - } ] - } ], - "use" : "home", - "line" : [ "4861", "20TH AVE", "1", "Other Designation" ], - "city" : "THUNDER MOUNTAIN", - "district" : "County", - "state" : "IG", - "postalCode" : "99999", - "country" : "USA", - "period" : { - "start" : "2022-05-01T10:25:31-04:00" - } - } ] - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/xad/xad-to-address.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/xad/xad-to-address.hl7 deleted file mode 100644 index 1bec780fb79..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/xad/xad-to-address.hl7 +++ /dev/null @@ -1,3 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|3003786103_4988249_33033||2.5.1|||||USA|UNICODE UTF-8 -PID|1||11102779^^^^MR||SMITH^BB SARAH^^^^^L -NK1|1|||||||||||||||||||||||||||||||4861&20TH AVE&1^Other Designation^THUNDER MOUNTAIN^IG^99999^USA^H^Other Geographic Designation^County^6059^A^^20220501102531-0400 \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/xtn/xtn-to-contact-point.fhir b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/xtn/xtn-to-contact-point.fhir deleted file mode 100644 index e8ac64cff2f..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/xtn/xtn-to-contact-point.fhir +++ /dev/null @@ -1,279 +0,0 @@ -{ - "resourceType" : "Bundle", - "id" : "1713397874689602000.e869eee2-21c7-4524-b115-3f7656fe34a3", - "meta" : { - "lastUpdated" : "2024-04-17T17:51:14.701-06:00" - }, - "identifier" : { - "system" : "https://reportstream.cdc.gov/prime-router", - "value" : "3003786103_4988249_33033" - }, - "type" : "message", - "timestamp" : "2023-05-01T08:25:31.000-06:00", - "entry" : [ { - "fullUrl" : "MessageHeader/0993dd0b-6ce5-3caf-a177-0b81cc780c18", - "resource" : { - "resourceType" : "MessageHeader", - "id" : "0993dd0b-6ce5-3caf-a177-0b81cc780c18", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/encoding-characters", - "valueString" : "^~\\&#" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/msh-message-header", - "extension" : [ { - "url" : "MSH.7", - "valueString" : "20230501102531-0400" - }, { - "url" : "MSH.10", - "valueString" : "3003786103_4988249_33033" - } ] - } ], - "eventCoding" : { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0003", - "code" : "R01", - "display" : "ORU^R01^ORU_R01" - } - } - }, { - "fullUrl" : "Provenance/1713397875332640000.2d8a482b-3fee-4c98-ac41-5f0ee98f684c", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713397875332640000.2d8a482b-3fee-4c98-ac41-5f0ee98f684c", - "target" : [ { - "reference" : "MessageHeader/0993dd0b-6ce5-3caf-a177-0b81cc780c18" - } ], - "recorded" : "2023-05-01T10:25:31-04:00", - "activity" : { - "coding" : [ { - "display" : "ORU^R01^ORU_R01" - } ] - } - } - }, { - "fullUrl" : "Provenance/1713397875346924000.2c8b59d8-6f33-498b-a442-52096a9bbd11", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713397875346924000.2c8b59d8-6f33-498b-a442-52096a9bbd11", - "recorded" : "2024-04-17T17:51:15Z", - "policy" : [ "http://hl7.org/fhir/uv/v2mappings/message-oru-r01-to-bundle" ], - "activity" : { - "coding" : [ { - "code" : "v2-FHIR transformation" - } ] - }, - "agent" : [ { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code" : "assembler" - } ] - }, - "who" : { - "reference" : "Organization/1713397875345900000.6c0d6b51-b102-45e7-ac67-220b1a6212cf" - } - } ] - } - }, { - "fullUrl" : "Organization/1713397875345900000.6c0d6b51-b102-45e7-ac67-220b1a6212cf", - "resource" : { - "resourceType" : "Organization", - "id" : "1713397875345900000.6c0d6b51-b102-45e7-ac67-220b1a6212cf", - "identifier" : [ { - "value" : "CDC PRIME - Atlanta" - }, { - "type" : { - "coding" : [ { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0301" - } ] - }, - "system" : "urn:ietf:rfc:3986", - "value" : "2.16.840.1.114222.4.1.237821" - } ] - } - }, { - "fullUrl" : "Patient/1713397875394360000.fcbe0e5f-e307-4d56-8d09-0d35e677ab18", - "resource" : { - "resourceType" : "Patient", - "id" : "1713397875394360000.fcbe0e5f-e307-4d56-8d09-0d35e677ab18", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/pid-patient", - "extension" : [ { - "url" : "PID.8", - "valueString" : "U" - }, { - "url" : "PID.30", - "valueString" : "N" - } ] - }, { - "url" : "http://ibm.com/fhir/cdm/StructureDefinition/local-race-cd", - "valueCodeableConcept" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "NULLFL" - } ], - "version" : "2.5.1", - "code" : "ASKU", - "display" : "Asked, but unknown" - } ] - } - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/ethnic-group", - "valueCodeableConcept" : { - "coding" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding", - "valueString" : "coding" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cwe-coding-system", - "valueString" : "HL70189" - } ], - "system" : "http://terminology.hl7.org/CodeSystem/v2-0189", - "version" : "2.9", - "code" : "N", - "display" : "Non Hispanic or Latino" - } ] - } - } ], - "identifier" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/assigning-facility", - "valueReference" : { - "reference" : "Organization/1713397875354960000.bdf4bbf7-93e2-4594-a1fe-a30d30673e5c" - } - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/cx-identifier", - "extension" : [ { - "url" : "CX.5", - "valueString" : "PI" - } ] - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "PID.3" - } ], - "type" : { - "coding" : [ { - "code" : "PI" - } ] - }, - "value" : "kc3oy" - } ], - "name" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xpn-human-name", - "extension" : [ { - "url" : "XPN.2", - "valueString" : "Stephenie" - }, { - "url" : "XPN.3", - "valueString" : "Davis" - }, { - "url" : "XPN.7", - "valueString" : "L" - } ] - } ], - "use" : "official", - "family" : "Schaefer", - "given" : [ "Stephenie", "Davis" ] - } ], - "telecom" : [ { - "extension" : [ { - "url" : "http://hl7.org/fhir/StructureDefinition/contactpoint-country", - "valueString" : "1" - }, { - "url" : "http://hl7.org/fhir/StructureDefinition/contactpoint-area", - "valueString" : "260" - }, { - "url" : "http://hl7.org/fhir/StructureDefinition/contactpoint-local", - "valueString" : "7595016" - }, { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xtn-contact-point", - "extension" : [ { - "url" : "XTN.2", - "valueString" : "PRN" - }, { - "url" : "XTN.3", - "valueString" : "BP" - }, { - "url" : "XTN.7", - "valueString" : "7595016" - }, { - "url" : "XTN.11", - "valueString" : "42" - }, { - "url" : "XTN.12", - "valueString" : "+1 260 759 5016" - } ] - } ], - "system" : "pager", - "value" : "+1 260 759 5016", - "use" : "home" - }, { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xtn-contact-point", - "extension" : [ { - "url" : "XTN.2", - "valueString" : "PRN" - }, { - "url" : "XTN.3", - "valueString" : "Internet" - }, { - "url" : "XTN.4", - "valueString" : "otto.daugherty@email.com" - } ] - } ], - "system" : "email", - "value" : "otto.daugherty@email.com", - "use" : "home" - } ], - "gender" : "unknown", - "deceasedBoolean" : false, - "address" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/xad-address", - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/sad-address-line", - "extension" : [ { - "url" : "SAD.1", - "valueString" : "96633 Gilberto Course" - } ] - } ] - } ], - "line" : [ "96633 Gilberto Course" ], - "state" : "IG" - } ] - } - }, { - "fullUrl" : "Organization/1713397875354960000.bdf4bbf7-93e2-4594-a1fe-a30d30673e5c", - "resource" : { - "resourceType" : "Organization", - "id" : "1713397875354960000.bdf4bbf7-93e2-4594-a1fe-a30d30673e5c", - "identifier" : [ { - "extension" : [ { - "url" : "https://reportstream.cdc.gov/fhir/StructureDefinition/hl7v2Field", - "valueString" : "HD.1" - } ], - "value" : "Any lab USA" - } ] - } - }, { - "fullUrl" : "Provenance/1713397875402545000.10ef5fae-8d8a-4b31-88c8-0e97975b0e25", - "resource" : { - "resourceType" : "Provenance", - "id" : "1713397875402545000.10ef5fae-8d8a-4b31-88c8-0e97975b0e25", - "target" : [ { - "reference" : "Patient/1713397875394360000.fcbe0e5f-e307-4d56-8d09-0d35e677ab18" - } ], - "recorded" : "2024-04-17T17:51:15Z", - "activity" : { - "coding" : [ { - "system" : "https://terminology.hl7.org/CodeSystem/v3-DataOperation", - "code" : "UPDATE" - } ] - } - } - } ] -} \ No newline at end of file diff --git a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/xtn/xtn-to-contact-point.hl7 b/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/xtn/xtn-to-contact-point.hl7 deleted file mode 100644 index 59f3487b982..00000000000 --- a/prime-router/src/testIntegration/resources/datatests/mappinginventory/v251/xtn/xtn-to-contact-point.hl7 +++ /dev/null @@ -1,2 +0,0 @@ -MSH|^~\&#|||||20230501102531-0400||ORU^R01^ORU_R01|3003786103_4988249_33033||2.5.1 -PID|1||kc3oy^^^^PI^Any lab USA||Schaefer^Stephenie^Davis^^^^L|||U||ASKU^Asked, but unknown^NULLFL^^^^2.5.1|96633 Gilberto Course^^^IG||^PRN^BP^^1^260^7595016^^^^42^+1 260 759 5016~^PRN^Internet^otto.daugherty@email.com|||||||||N^Non Hispanic or Latino^HL70189^^^^2.9||||||||N From ed70cc59ba50388b1daa740e851de70fe2bc6950 Mon Sep 17 00:00:00 2001 From: Angela DeGolier <39102333+adegolier@users.noreply.github.com> Date: Thu, 5 Sep 2024 17:25:22 -0400 Subject: [PATCH 36/40] =?UTF-8?q?Generating=20a=20version.json=20file=20wi?= =?UTF-8?q?th=20the=20current=20short=20commit=20id=20and=20pu=E2=80=A6=20?= =?UTF-8?q?(#15789)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Generating a version.json file with the current short commit id and putting it in with the Azure resources --- .gitignore | 1 + prime-router/build.gradle.kts | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/.gitignore b/.gitignore index c361e158a19..71f2e182cf9 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,7 @@ hs_err_pid* **/build/** **/log/** **/dependency-reduced-pom.xml +**/version.json # Frontend build output **/node_modules/** diff --git a/prime-router/build.gradle.kts b/prime-router/build.gradle.kts index f470edb4efa..1f79608057d 100644 --- a/prime-router/build.gradle.kts +++ b/prime-router/build.gradle.kts @@ -23,7 +23,9 @@ import org.apache.commons.io.FilenameUtils import org.apache.tools.ant.filters.ReplaceTokens import org.jetbrains.kotlin.gradle.tasks.KotlinCompile import org.jooq.meta.jaxb.ForcedType +import java.io.ByteArrayOutputStream import java.io.FileInputStream +import java.nio.charset.StandardCharsets import java.time.LocalDateTime import java.time.format.DateTimeFormatter import java.util.Properties @@ -497,9 +499,22 @@ tasks.azureFunctionsPackage { finalizedBy("copyAzureScripts") } +tasks.register("generateVersionFile") { + doLast { + val stdout = ByteArrayOutputStream() + exec { + commandLine("git", "rev-parse", "--short", "HEAD") + standardOutput = stdout + } + val currentCommit = stdout.toString(StandardCharsets.UTF_8).trim() + File("./version.json").writeText("{\"commitId\": \"$currentCommit\"}") + } +} + val azureResourcesTmpDir = File(buildDir, "$azureFunctionsDir-resources/$azureAppName") val azureResourcesFinalDir = File(buildDir, "$azureFunctionsDir/$azureAppName") tasks.register("gatherAzureResources") { + dependsOn("generateVersionFile") from("./") into(azureResourcesTmpDir) include("metadata/**/*.yml") @@ -509,6 +524,7 @@ tasks.register("gatherAzureResources") { include("metadata/**/*.csv") include("settings/**/*.yml") include("assets/**/*__inline.html") + include("version.json") } tasks.register("copyAzureResources") { From 5c9a2d54c7afb1431044f013f237ec55a07cd4a3 Mon Sep 17 00:00:00 2001 From: chris-kuryak <117934818+chris-kuryak@users.noreply.github.com> Date: Thu, 5 Sep 2024 16:54:26 -0600 Subject: [PATCH 37/40] Update up-receiver-migration-validate-test-data.md (#15604) Improvements to the Migration - Validate Test Data template: - Updated the default labels - Added space for STLT name - Added Slack post reminder in the Acceptance criteria --- .../up-receiver-migration-validate-test-data.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/up-receiver-migration-validate-test-data.md b/.github/ISSUE_TEMPLATE/up-receiver-migration-validate-test-data.md index 3398b3d7086..f5c769eddcc 100644 --- a/.github/ISSUE_TEMPLATE/up-receiver-migration-validate-test-data.md +++ b/.github/ISSUE_TEMPLATE/up-receiver-migration-validate-test-data.md @@ -2,10 +2,11 @@ name: UP Migrating Receiver - Validate Test Data about: This is the fourth step in migrating a STLT to the UP title: "[name of STLT] - UP Migration - Validate Test Data" -labels: onboarding-ops, receiver +labels: onboarding-ops, receiver, engineering, needs-refinement assignees: '' --- +[STLT] = name of STLT ### User Story: As a developer, I want the [STLT] to validate test messages in staging, so that they can receive data in the format they expect. @@ -27,4 +28,16 @@ As a developer, I want the [STLT] to validate test messages in staging, so that ### Acceptance Criteria - [ ] Created and sent data using Simple Report -- [ ] Confirmed with STLT that data passes validation +- [ ] Confirmed with STLT that data passes validation +- [ ] When finished, tag Mikaelah, Chris, and Glenn in a slack post stating: +> [STLT] "Testing in Staging" is complete and will be moving on to "Monitor in Production" +> +> Connection Type: [REST, SFTP, SOAP, etc] +> +> Conditions tested: [List of Conditions] +> +> Positives set up to receive: [List of Conditions] +> +> Negatives set up to receive: [List of Conditions] +> +> Format receiving: [HL7 or FHIR] From 7f93cf97f0b31e3d82ab2f891df608571df0c5eb Mon Sep 17 00:00:00 2001 From: OTT SATHNGAM Date: Fri, 6 Sep 2024 07:59:19 -0500 Subject: [PATCH 38/40] Oo/oslynn/15664/update rest transport for oracle rln etor nbs results (#15721) * Update REST Transport to allow ApiKey for Oracle-RLN to read from vault * Update REST Transport to allow ApiKey for Oracle-RLN to read from vault * Update REST Transport to allow ApiKey for Oracle-RLN to read from vault * Update REST Transport to allow Oracle-RLN to read apiKey from the vault * Update REST Transport to allow Oracle-RLN to read apiKey from the vault * Fixed RestTransport Integration Test --- .environment/gitleaks/gitleaks-config.toml | 2 + .../settings/STLTs/Oracle/oracle-rln.yml | 22 +++++-- .../main/kotlin/transport/RESTTransport.kt | 1 + .../RESTTransportIntegrationTests.kt | 58 +++++++++++++++++++ 4 files changed, 78 insertions(+), 5 deletions(-) diff --git a/.environment/gitleaks/gitleaks-config.toml b/.environment/gitleaks/gitleaks-config.toml index d95d877f4b8..da0f618980d 100644 --- a/.environment/gitleaks/gitleaks-config.toml +++ b/.environment/gitleaks/gitleaks-config.toml @@ -203,6 +203,8 @@ title = "PRIME ReportStream Gitleaks Configuration" 'authority\", \"extension\"', # FHIR extension URL also shows up in normal FHIR test data 'ApiKeyCredential\(\"flexion\"', 'authType: \"two-legged\"', + '\"apiKey\"', + 'api-key\" to \"oracle123\"', 'Authorization-Type: \"username/password\"', 'cdctiautomated_sa' ] diff --git a/prime-router/settings/STLTs/Oracle/oracle-rln.yml b/prime-router/settings/STLTs/Oracle/oracle-rln.yml index 150e2a1126b..bc6b9639009 100644 --- a/prime-router/settings/STLTs/Oracle/oracle-rln.yml +++ b/prime-router/settings/STLTs/Oracle/oracle-rln.yml @@ -45,9 +45,21 @@ initialTime: "00:00" timeZone: "EASTERN" maxReportCount: 100 + description: "" transport: - type: "SFTP" - host: "172.17.6.20" - port: 22 - filePath: "./upload" - credentialName: null + reportUrl: "https://spaces.erxhubdevcert.cerner.com/etor" + authTokenUrl: "" + encryptionKeyUrl: "" + authType: "apiKey" + tlsKeystore: null + parameters: {} + jwtParams: {} + headers: + Content-Type: "text/plain" + shared-api-key: "From Vault" + authHeaders: {} + type: "REST" + externalName: null + enrichmentSchemaNames: [] + timeZone: null + dateTimeFormat: "OFFSET" diff --git a/prime-router/src/main/kotlin/transport/RESTTransport.kt b/prime-router/src/main/kotlin/transport/RESTTransport.kt index 46bc89ce262..7f7f0c8e448 100644 --- a/prime-router/src/main/kotlin/transport/RESTTransport.kt +++ b/prime-router/src/main/kotlin/transport/RESTTransport.kt @@ -113,6 +113,7 @@ class RESTTransport(private val httpClient: HttpClient? = null) : ITransport { if (restTransportInfo.authType == "apiKey") { val apiKeyCredential = credential as UserApiKeyCredential + httpHeaders["shared-api-key"] = apiKeyCredential.apiKey httpHeaders["System_ID"] = apiKeyCredential.user httpHeaders["Key"] = apiKeyCredential.apiKey accessToken = apiKeyCredential.apiKey diff --git a/prime-router/src/testIntegration/kotlin/transport/RESTTransportIntegrationTests.kt b/prime-router/src/testIntegration/kotlin/transport/RESTTransportIntegrationTests.kt index 94a523c8179..a78b3729a53 100644 --- a/prime-router/src/testIntegration/kotlin/transport/RESTTransportIntegrationTests.kt +++ b/prime-router/src/testIntegration/kotlin/transport/RESTTransportIntegrationTests.kt @@ -977,6 +977,64 @@ hnm8COa8Kr+bnTqzScpQuOfujHcFEtfcYUGfSS6HusxidwXx+lYi1A== assertThat(retryItems).isNull() } + // Epic localhost end-to-end testing + private val oracleRlNRestTransport = RESTTransportType( + "https://sendURL", + "", + authType = "apiKey", + headers = mapOf( + "Content-Type" to "text/plain", + "shared-api-key" to "From Vault" + ) + ) + + val expectedHttpHeaders = mapOf( + "Content-Type" to "text/plain", + "shared-api-key" to "oracle123", + "System_ID" to "test-user", + "Key" to "oracle123" + ) + + @Test + fun `test transport postReport with valid message to oracle-rln--etor-nbs-results`() { + val header = makeHeader() + val mockRestTransport = spyk(RESTTransport(mockClientAuthOk())) + + // Given: + // lookupDefaultCredential returns mock UserApiKeyCredential object to allow + // the getAuthTokenWIthUserApiKey() to be called. + every { mockRestTransport.lookupDefaultCredential(any()) }.returns( + UserApiKeyCredential( + "test-user", + "oracle123" + ) + ) + + // When: + // RESTTransport is called WITH flexionRestTransportType which has transport.parameters + val retryItems = mockRestTransport.send( + oracleRlNRestTransport, header, reportId, "test", null, + context, actionHistory, mockk(relaxed = true) + ) + + // Then: + // postReport should be called with correct httpheaders' values as given. + verify { + runBlocking { + mockRestTransport.postReport( + any(), + any(), + any(), + expectedHttpHeaders, + any(), + any(), + any() + ) + } + } + assertThat(retryItems).isNull() + } + @Test fun `test post vs put http client`() { val logger = mockkClass(Logger::class) From a318ff99244950f600b9c4d71ecb3cbf54886402 Mon Sep 17 00:00:00 2001 From: Angela DeGolier <39102333+adegolier@users.noreply.github.com> Date: Fri, 6 Sep 2024 12:28:49 -0400 Subject: [PATCH 39/40] Wasn't working in Staging or on Arnej's machine, so changed to be generating the file in the aureFunctionsDir (#15802) --- prime-router/build.gradle.kts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/prime-router/build.gradle.kts b/prime-router/build.gradle.kts index 1f79608057d..2971a8d9abc 100644 --- a/prime-router/build.gradle.kts +++ b/prime-router/build.gradle.kts @@ -507,7 +507,7 @@ tasks.register("generateVersionFile") { standardOutput = stdout } val currentCommit = stdout.toString(StandardCharsets.UTF_8).trim() - File("./version.json").writeText("{\"commitId\": \"$currentCommit\"}") + File(buildDir, "$azureFunctionsDir/$azureAppName/version.json").writeText("{\"commitId\": \"$currentCommit\"}") } } @@ -524,7 +524,6 @@ tasks.register("gatherAzureResources") { include("metadata/**/*.csv") include("settings/**/*.yml") include("assets/**/*__inline.html") - include("version.json") } tasks.register("copyAzureResources") { From 1220903e09406cded0840753f3d203e6888c9629 Mon Sep 17 00:00:00 2001 From: JessicaWNava <119880261+JessicaWNava@users.noreply.github.com> Date: Fri, 6 Sep 2024 16:26:19 -0400 Subject: [PATCH 40/40] Engagement/jessica/15406 cli download report (#15675) * Created an API that downloads files from a specified environment and optionally (unless it is prod) removes PII --- prime-router/docs/api/reports.yml | 30 ++++ .../src/main/kotlin/azure/ReportFunction.kt | 69 +++++++++ .../src/main/kotlin/azure/RequestFunction.kt | 2 + .../src/main/kotlin/cli/PIIRemovalCommands.kt | 50 ++++--- .../common/remove-pii-address.yml | 3 +- .../common/remove-pii-name.yml | 3 +- .../common/remove-pii-telecom.yml | 2 +- .../test/kotlin/azure/ReportFunctionTests.kt | 141 ++++++++++++++++++ 8 files changed, 275 insertions(+), 25 deletions(-) diff --git a/prime-router/docs/api/reports.yml b/prime-router/docs/api/reports.yml index e3475f53e21..2a860227aa8 100644 --- a/prime-router/docs/api/reports.yml +++ b/prime-router/docs/api/reports.yml @@ -118,6 +118,36 @@ paths: $ref: '#/components/schemas/Report' '500': description: Internal Server Error + /reports/download: + get: + summary: Downloads a message based on the report id + security: + - OAuth2: [ system_admin ] + parameters: + - in: query + name: reportId + description: The report id to look for to download. + schema: + type: string + required: true + example: e491f4fb-f2c5-4473-8db2-206ea04991e8 + - in: query + name: removePII + description: Boolean that determines if PII will be removed from the message. If missing will default to true. + Required to be true if prod env. + required: false + schema: + type: boolean + example: true + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/Report' + '500': + description: Internal Server Error # Building components: schemas: diff --git a/prime-router/src/main/kotlin/azure/ReportFunction.kt b/prime-router/src/main/kotlin/azure/ReportFunction.kt index 99168f9f3d9..11adb9fea4c 100644 --- a/prime-router/src/main/kotlin/azure/ReportFunction.kt +++ b/prime-router/src/main/kotlin/azure/ReportFunction.kt @@ -18,6 +18,7 @@ import gov.cdc.prime.router.ActionLogLevel import gov.cdc.prime.router.InvalidParamMessage import gov.cdc.prime.router.InvalidReportMessage import gov.cdc.prime.router.Options +import gov.cdc.prime.router.ReportId import gov.cdc.prime.router.Sender import gov.cdc.prime.router.Sender.ProcessingType import gov.cdc.prime.router.SubmissionReceiver @@ -29,14 +30,18 @@ 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 import gov.cdc.prime.router.azure.observability.event.ReportStreamEventService +import gov.cdc.prime.router.cli.PIIRemovalCommands import gov.cdc.prime.router.common.AzureHttpUtils.getSenderIP +import gov.cdc.prime.router.common.Environment import gov.cdc.prime.router.common.JacksonMapperUtilities +import gov.cdc.prime.router.fhirengine.utils.FhirTranscoder import gov.cdc.prime.router.history.azure.SubmissionsFacade 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 org.apache.logging.log4j.kotlin.Logging +import java.util.UUID private const val PROCESSING_TYPE_PARAMETER = "processing" @@ -155,6 +160,70 @@ class ReportFunction( var reportBody: String, ) + /** + * GET report to download + * + * @see ../../../docs/api/reports.yml + */ + @FunctionName("downloadReport") + fun downloadReport( + @HttpTrigger( + name = "downloadReport", + methods = [HttpMethod.GET], + authLevel = AuthorizationLevel.FUNCTION, + route = "reports/download" + ) request: HttpRequestMessage, + ): HttpResponseMessage { + val reportId = request.queryParameters[REPORT_ID_PARAMETER] + val removePIIRaw = request.queryParameters[REMOVE_PII] + var removePII = false + if (removePIIRaw.isNullOrBlank() || removePIIRaw.toBoolean()) { + removePII = true + } + if (reportId.isNullOrBlank()) { + return HttpUtilities.badRequestResponse(request, "Must provide a reportId.") + } + return processDownloadReport( + request, + ReportId.fromString(reportId), + removePII, + Environment.get().envName + ) + } + + fun processDownloadReport( + request: HttpRequestMessage, + reportId: UUID, + removePII: Boolean?, + envName: String, + databaseAccess: DatabaseAccess = DatabaseAccess(), + piiRemovalCommands: PIIRemovalCommands = PIIRemovalCommands(), + ): HttpResponseMessage { + val requestedReport = databaseAccess.fetchReportFile(reportId) + + return if (requestedReport.bodyUrl != null && requestedReport.bodyUrl.toString().lowercase().endsWith("fhir")) { + val contents = BlobAccess.downloadBlobAsByteArray(requestedReport.bodyUrl) + + val content = if (removePII == null || removePII) { + piiRemovalCommands.removePii(FhirTranscoder.decode(contents.toString(Charsets.UTF_8))) + } else { + 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) + } + + HttpUtilities.okJSONResponse(request, content) + } else if (requestedReport.bodyUrl == null) { + HttpUtilities.badRequestResponse(request, "The requested report does not exist.") + } else { + HttpUtilities.badRequestResponse(request, "The requested report is not fhir.") + } + } + /** * The Waters API, in memory of Dr. Michael Waters * (The older version of this API is "/api/reports") diff --git a/prime-router/src/main/kotlin/azure/RequestFunction.kt b/prime-router/src/main/kotlin/azure/RequestFunction.kt index 47608913daf..e892befec42 100644 --- a/prime-router/src/main/kotlin/azure/RequestFunction.kt +++ b/prime-router/src/main/kotlin/azure/RequestFunction.kt @@ -23,6 +23,8 @@ const val ALLOW_DUPLICATES_PARAMETER = "allowDuplicate" const val TOPIC_PARAMETER = "topic" const val SCHEMA_PARAMETER = "schema" const val FORMAT_PARAMETER = "format" +const val REPORT_ID_PARAMETER = "reportId" +const val REMOVE_PII = "removePII" /** * Base class for ReportFunction and ValidateFunction diff --git a/prime-router/src/main/kotlin/cli/PIIRemovalCommands.kt b/prime-router/src/main/kotlin/cli/PIIRemovalCommands.kt index c74cb829cc1..09d450567dd 100644 --- a/prime-router/src/main/kotlin/cli/PIIRemovalCommands.kt +++ b/prime-router/src/main/kotlin/cli/PIIRemovalCommands.kt @@ -56,8 +56,16 @@ class PIIRemovalCommands : CliktCommand( if (inputFile.extension.uppercase() != "FHIR") { throw CliktError("File ${inputFile.absolutePath} is not a FHIR file.") } - var bundle = FhirTranscoder.decode(contents) + val bundle = FhirTranscoder.decode(contents) + // Write the output to the screen or a file. + if (outputFile != null) { + outputFile!!.writeText(removePii(bundle), Charsets.UTF_8) + } + echo("Wrote output to ${outputFile!!.absolutePath}") + } + + fun removePii(bundle: Bundle): String { bundle.entry.map { it.resource }.filterIsInstance() .forEach { patient -> patient.name.forEach { name -> @@ -76,16 +84,16 @@ class PIIRemovalCommands : CliktCommand( bundle.entry.map { it.resource }.filterIsInstance() .forEach { organization -> - organization.address.forEach { address -> - address.line = mutableListOf(StringType(getFakeValueForElementCall("STREET"))) - } - organization.telecom.forEach { telecom -> - handleTelecom(telecom) - } - organization.contact.forEach { contact -> - handleOrganizationalContact(contact) + organization.address.forEach { address -> + address.line = mutableListOf(StringType(getFakeValueForElementCall("STREET"))) + } + organization.telecom.forEach { telecom -> + handleTelecom(telecom) + } + organization.contact.forEach { contact -> + handleOrganizationalContact(contact) + } } - } bundle.entry.map { it.resource }.filterIsInstance() .forEach { practitioner -> @@ -103,18 +111,14 @@ class PIIRemovalCommands : CliktCommand( } } - bundle = FhirTransformer("classpath:/metadata/fhir_transforms/common/remove-pii-enrichment.yml").process(bundle) + val bundleAfterTransform = FhirTransformer( + "classpath:/metadata/fhir_transforms/common/remove-pii-enrichment.yml" + ).process(bundle) val jsonObject = JacksonMapperUtilities.defaultMapper - .readValue(FhirTranscoder.encode(bundle), Any::class.java) - var prettyText = JacksonMapperUtilities.defaultMapper.writeValueAsString(jsonObject) - prettyText = replaceIds(bundle, prettyText) - - // Write the output to the screen or a file. - if (outputFile != null) { - outputFile!!.writeText(prettyText, Charsets.UTF_8) - } - echo("Wrote output to ${outputFile!!.absolutePath}") + .readValue(FhirTranscoder.encode(bundleAfterTransform), Any::class.java) + val prettyText = JacksonMapperUtilities.defaultMapper.writeValueAsString(jsonObject) + return replaceIds(bundleAfterTransform, prettyText) } /** @@ -185,8 +189,10 @@ class PIIRemovalCommands : CliktCommand( bundle, path ).forEach { resourceId -> - val newIdentifier = getFakeValueForElementCall("UUID") - return prettyText.replace(resourceId.primitiveValue(), newIdentifier, true) + if (resourceId.primitiveValue() != null) { + val newIdentifier = getFakeValueForElementCall("UUID") + return prettyText.replace(resourceId.primitiveValue(), newIdentifier, true) + } } return prettyText } 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 52117eab502..bb5c515cea8 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,8 +2,9 @@ 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")' value: [ 'getFakeValueForElement("STREET_ADDRESS_2")' ] - bundleProperty: '%resource.extension(%`rsext-xad-address`).extension.where(url = "XAD.2").value' + bundleProperty: '%resource.extension("https://reportstream.cdc.gov/fhir/StructureDefinition/xad-address").extension.where(url = "XAD.2").value' - name: pii-removal-city value: [ 'getFakeValueForElement("CITY",%resource.state)' ] diff --git a/prime-router/src/main/resources/metadata/fhir_transforms/common/remove-pii-name.yml b/prime-router/src/main/resources/metadata/fhir_transforms/common/remove-pii-name.yml index 4968f5eac5a..546e4581574 100644 --- a/prime-router/src/main/resources/metadata/fhir_transforms/common/remove-pii-name.yml +++ b/prime-router/src/main/resources/metadata/fhir_transforms/common/remove-pii-name.yml @@ -6,5 +6,6 @@ elements: # removing a given name is more complicated because it is a list so we will do this in code - name: pii-removal-middle-name + condition: '%resource.extension("https://reportstream.cdc.gov/fhir/StructureDefinition/xpn-human-name").exists()' value: [ 'getFakeValueForElement("PERSON_GIVEN_NAME")' ] - bundleProperty: '%resource.extension(%`rsext-xpn-human-name`).extension.where(url="XPN.3").value' \ No newline at end of file + bundleProperty: '%resource.extension("https://reportstream.cdc.gov/fhir/StructureDefinition/xpn-human-name").extension("XPN.2").value[x]' \ No newline at end of file diff --git a/prime-router/src/main/resources/metadata/fhir_transforms/common/remove-pii-telecom.yml b/prime-router/src/main/resources/metadata/fhir_transforms/common/remove-pii-telecom.yml index fef6b43d8a6..ce9dc465a8b 100644 --- a/prime-router/src/main/resources/metadata/fhir_transforms/common/remove-pii-telecom.yml +++ b/prime-router/src/main/resources/metadata/fhir_transforms/common/remove-pii-telecom.yml @@ -2,7 +2,7 @@ elements: - name: pii-removal-phone-area-code condition: "%resource.where(system = 'phone')" value: [ 'getFakeValueForElement("TELEPHONE").substring(0,3)' ] - bundleProperty: '%resource.extension(%`ext-contactpoint-area`).value' + bundleProperty: '%resource.extension(`https://reportstream.cdc.gov/fhir/StructureDefinition/contactpoint-area`).value[x]' - name: pii-removal-local-phone condition: "%resource.where(system = 'phone')" diff --git a/prime-router/src/test/kotlin/azure/ReportFunctionTests.kt b/prime-router/src/test/kotlin/azure/ReportFunctionTests.kt index 74ed50419a3..7581a1210ad 100644 --- a/prime-router/src/test/kotlin/azure/ReportFunctionTests.kt +++ b/prime-router/src/test/kotlin/azure/ReportFunctionTests.kt @@ -34,6 +34,8 @@ import gov.cdc.prime.router.TopicReceiver import gov.cdc.prime.router.UniversalPipelineSender import gov.cdc.prime.router.azure.BlobAccess.BlobContainerMetadata import gov.cdc.prime.router.azure.db.enums.TaskAction +import gov.cdc.prime.router.azure.db.tables.pojos.ReportFile +import gov.cdc.prime.router.cli.PIIRemovalCommands import gov.cdc.prime.router.history.DetailedSubmissionHistory import gov.cdc.prime.router.history.azure.SubmissionsFacade import gov.cdc.prime.router.serializers.Hl7Serializer @@ -57,6 +59,7 @@ 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() } @@ -842,4 +845,142 @@ class ReportFunctionTests { ) + "]" ) } + + @Test + fun `No report`() { + val mockDb = mockk() + val reportId = UUID.randomUUID() + every { mockDb.fetchReportFile(reportId, null, null) } throws (IllegalStateException()) + 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 + ) + } + ) + } + + @Test + fun `Report found, PII removal`() { + val reportFile = ReportFile() + reportFile.bodyUrl = "fakeurl.fhir" + mockkObject(AuthenticatedClaims) + val mockDb = mockk() + mockkClass(BlobAccess::class) + mockkObject(BlobAccess.Companion) + every { BlobAccess.Companion.getBlobConnection(any()) } returns "testconnection" + val blobConnectionInfo = mockk() + every { blobConnectionInfo.getBlobEndpoint() } returns "http://endpoint/metadata" + every { BlobAccess.downloadBlobAsByteArray(any()) } returns fhirReport.toByteArray(Charsets.UTF_8) + val reportId = UUID.randomUUID() + every { mockDb.fetchReportFile(reportId, null, null) } returns reportFile + val piiRemovalCommands = mockkClass(PIIRemovalCommands::class) + every { piiRemovalCommands.removePii(any()) } returns fhirReport + + val metadata = UnitTestUtils.simpleMetadata + val settings = FileSettings().loadOrganizations(oneOrganization) + val actionHistory = spyk(ActionHistory(TaskAction.receive)) + + val result = ReportFunction(makeEngine(metadata, settings), actionHistory).processDownloadReport( + MockHttpRequestMessage(), + reportId, + true, + "local", + mockDb, + piiRemovalCommands + ) + + assert(result.body.toString().contains("1667861767830636000.7db38d22-b713-49fc-abfa-2edba9c12347")) + } + + @Test + fun `Report found, asked for no removal on prod`() { + val reportFile = ReportFile() + reportFile.bodyUrl = "fakeurl.fhir" + mockkObject(AuthenticatedClaims) + val mockDb = mockk() + mockkClass(BlobAccess::class) + mockkObject(BlobAccess.Companion) + every { BlobAccess.Companion.getBlobConnection(any()) } returns "testconnection" + val blobConnectionInfo = mockk() + every { blobConnectionInfo.getBlobEndpoint() } returns "http://endpoint/metadata" + every { BlobAccess.downloadBlobAsByteArray(any()) } returns fhirReport.toByteArray(Charsets.UTF_8) + every { mockDb.fetchReportFile(reportId = any(), null, null) } returns reportFile + + val metadata = UnitTestUtils.simpleMetadata + val settings = FileSettings().loadOrganizations(oneOrganization) + val actionHistory = spyk(ActionHistory(TaskAction.receive)) + + val result = ReportFunction(makeEngine(metadata, settings), actionHistory).processDownloadReport( + MockHttpRequestMessage(), + UUID.randomUUID(), + false, + "prod", + mockDb + ) + + assert(result.status.equals(HttpStatus.BAD_REQUEST)) + } + + @Test + fun `valid access token, report found, no PII removal`() { + val reportFile = ReportFile() + reportFile.bodyUrl = "fakeurl.fhir" + mockkObject(AuthenticatedClaims) + val mockDb = mockk() + mockkClass(BlobAccess::class) + mockkObject(BlobAccess.Companion) + every { BlobAccess.Companion.getBlobConnection(any()) } returns "testconnection" + val blobConnectionInfo = mockk() + every { blobConnectionInfo.getBlobEndpoint() } returns "http://endpoint/metadata" + every { BlobAccess.downloadBlobAsByteArray(any()) } returns fhirReport.toByteArray(Charsets.UTF_8) + every { mockDb.fetchReportFile(reportId = any(), null, null) } returns reportFile + + val metadata = UnitTestUtils.simpleMetadata + val settings = FileSettings().loadOrganizations(oneOrganization) + val actionHistory = spyk(ActionHistory(TaskAction.receive)) + + val result = ReportFunction(makeEngine(metadata, settings), actionHistory).processDownloadReport( + MockHttpRequestMessage(), + UUID.randomUUID(), + false, + "local", + mockDb + ) + + assert(result.body.toString().contains("1667861767830636000.7db38d22-b713-49fc-abfa-2edba9c12347")) + } + + @Test + fun `valid access token, report found, body URL not FHIR`() { + val reportFile = ReportFile() + reportFile.bodyUrl = "fakeurl.hl7" + mockkObject(AuthenticatedClaims) + val mockDb = mockk() + every { mockDb.fetchReportFile(reportId = any(), null, null) } returns reportFile + + val metadata = UnitTestUtils.simpleMetadata + val settings = FileSettings().loadOrganizations(oneOrganization) + val actionHistory = spyk(ActionHistory(TaskAction.receive)) + + val result = ReportFunction(makeEngine(metadata, settings), actionHistory).processDownloadReport( + MockHttpRequestMessage(), + UUID.randomUUID(), + false, + "local", + mockDb + ) + + assert(result.status.equals(HttpStatus.BAD_REQUEST)) + } } \ No newline at end of file