Skip to content

Updating assigning authority on different segments#9385

Merged
DavidMcClatchey merged 4 commits into
mainfrom
david/use-aphl-assigned-oid
Jan 27, 2026
Merged

Updating assigning authority on different segments#9385
DavidMcClatchey merged 4 commits into
mainfrom
david/use-aphl-assigned-oid

Conversation

@DavidMcClatchey
Copy link
Copy Markdown
Collaborator

@DavidMcClatchey DavidMcClatchey commented Jan 15, 2026

BACKEND PULL REQUEST

Related Issue

Changes Proposed

  • Adds SimpleReport's assigning authority namespaceId and universalId (OID that APHL gave us) where requested. In production, we have one set of values for namespaceId and universalId and then all other (lower) environments share another namespaceId and universalId.
  • Modifies the use case for assigning authority values of an external patient id to use the performing facility's name as the namespaceId and the performing facility's CLIA as the universalId.

Additional Information

Testing

  • Modified unit tests
  • David will do integration testing from dev5 -> APHL -> Arizona

mpbrown
mpbrown previously approved these changes Jan 22, 2026
Copy link
Copy Markdown
Collaborator

@mpbrown mpbrown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall! Left a few questions but nothing blocking

public static final String SIMPLE_REPORT_NAME = "SimpleReport";

/** Note: this is the CDC OID for now until we get a SimpleReport OID registered */
public static final String SIMPLE_REPORT_ORG_OID = "2.16.840.1.114222.4";
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[suggestion]: Now that we're no longer using this old CDC OID, could this PR remove the old comment in HL7Properties.java?

Do you think we should update the name of sendingApplicationNamespace and sendingApplicationOID to something else now that it is used beyond just MSH-3 Sending Application? 🤔

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about simpleReportNamespace and simpleReportOID?

identifierEntry.getCx4_AssigningAuthority().getHd1_NamespaceID().setValue(namespaceId);
}
identifierEntry
.getCx6_AssigningFacility()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[question]: What info has APHL shared regarding PID-3.6 Assigning Facility? Is it expected that these are the same values as assigning authority?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm seeing in the story that PID-3.6.1 should be our SIMPLEREPORT.(env) namespace and PID-3.6.2 should be our OID that APHL assigned to us. For the scenario where a facility has their own external id for a patient, I assume it makes sense to use the CLIA as OID and facility name as namespace as described by Millie [here].(https://teams.microsoft.com/l/message/19:74e04fd8733445c784114a8b89fa3884@thread.v2/1768501437243?context=%7B%22contextType%22%3A%22chat%22%7D)

Do you think that's incorrect for either the internal (SimpleReport) patient id scenario or external (facility) patient id scenario?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh whoops I forgot PID-3.6 was included in the story, the change just stood out as a new field we're adding. The naming feels a bit strange that the assigning authority for a patient external id would be listed as the facility CLIA, but the assigning facility listed as SR, but I suppose that's what APHL/STLTs expect 🤷

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The assigning facility for a patient external id would have the facility name for the namespace ID (PID-3.6.1) and the CLIA for the Universal ID (PID-3.6.2), but that also made me think the variable names that get passed into this method are now confusing and should be changed from assigningAuthorityNamespaceId to simply namespaceId and from assigningAuthorityUniversalId to universalId. I'll go ahead and make that change and open to another alternative if you think something different makes sense.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah okay that makes sense now! I was indeed getting confused from the variable names so yeah I think that's a great change to make

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Collaborator

@mpbrown mpbrown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for updating those variable names!

@DavidMcClatchey DavidMcClatchey added this pull request to the merge queue Jan 27, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jan 27, 2026
@DavidMcClatchey DavidMcClatchey added this pull request to the merge queue Jan 27, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jan 27, 2026
@DavidMcClatchey DavidMcClatchey added this pull request to the merge queue Jan 27, 2026
Merged via the queue into main with commit 734ad9c Jan 27, 2026
34 checks passed
@DavidMcClatchey DavidMcClatchey deleted the david/use-aphl-assigned-oid branch January 27, 2026 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use SR's OID assigned from APHL for assigning authority on HL7 fields

4 participants