Skip to content

[EDI] Support repetition separator #212

Closed
@manuel-neuhauser-hs

Description

@manuel-neuhauser-hs

For EDI input files, the repetition separator is currently not supported in omniparser. It is used to allow for multipe values in a composite element.

Example

The following ISA segment defines ^ as the repetition separator, and segment DMG uses it in the 5th element to list 2 composite values.

ISA*00*          *00*          *ZZ*CMSFFM         *ZZ*987654321      *230614*1605*^*00501*000001001*1*T*:~
...
DMG*D8*19910512*M*M*:RET:2135-2^:RET:2106-3~
$ op transform --schema 834-schema-repetition.json.txt --input 987654321.I834.D230614.T161330125.T.OUT.txt

Actual

[
  {
    "race_ethnicity_code": [
      "2135-2^"
    ]
  }
]

Expected

[
  {
    "race_ethnicity_code": [
      "2135-2",
      "2106-3"
    ]
  }
]

Files

834-schema-repetition.json.txt

987654321.I834.D230614.T161330125.T.OUT.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions