Skip to content

Pull did not import renamed HL7 Schema #844

@cambot

Description

@cambot

In my embedded-git-config.json file, I had misconfigured the HL7 Mapping schema like this:

"HL7":{
  "*":{
    "directory":"schemas/hl7"
  }
}

and had to reconfigure it to this:

"HL7":{
  "*":{
    "directory":"schemas/hl7/",
    "noFolders":true
  }
},

The problem was that someone had exported a custom schema with the bad configuration. When the commit was pulled, the schema would not get imported.

In conjunction with fixing the config file, I moved the *.hl7 file to the appropriate directory and name. However, the pull action did not appear to handle this rename.

This was my git-diff:

$ git diff --name-status dev..fix/hl7_schema_config
M       embedded-git-config.json
R100    schemas/hl7myschema22/3.hl7       schemas/hl7/myschema22.3.hl7

This was the pull output:

Fast-forward
 embedded-git-config.json                          | 3 ++-
 schemas/{hl7cnEpcA22/3.hl7 => hl7/cnEpcA22.3.hl7} | 0
 2 files changed, 2 insertions(+), 1 deletion(-)
 rename schemas/{hl7myschema22/3.hl7 => hl7/myschema22.3.hl7} (100%)
 mode change 100755 => 100644


embedded-git-config.GSC has been imported from C:\InterSystems\FHIR2025\mgr\repo\SHCDF\embedded-git-config.json
ERROR #5912: Page '' does not exist

Pull ran with return code: 0

I imagine the error happened when it tried to handle schemas/hl7myschema22/3.hl7 which never existed in my Iris instance and no longer existed on the file system.

My work around was to copy the file to the correct directory and file name (while leaving the wrong file in place) so the change tracked in git as an "add" rather than a "rename"..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions