Skip to content

Validate resource and document names are the same #1104

@isc-jlechtne

Description

@isc-jlechtne

When investigating an issue related to an HL7 file being exported with none of the data inside it, the reasoning ended up being that the file name and document name (in the tag in the file) were different. Importing was under the document name where exporting uses the file name, leading to an empty exported file (since there were no imported values associated with it). The solution was to add a guideline that the document name and file names should be the same.

To enforce this guideline, we want to add a validation check during import of the resource (OnLoad()) to confirm these names are equivalent.

We should also test and confirm the functionality for LOC and interop resources to see what other file types this functionality affects.

Example problem case: File name is MyFile.HL7 that includes a document tag of <Document Name="My-File.HL7">. Document loaded in as My-File.HL7 but export tries to use MyFile.HL7

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions