Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review of src\step4\cleverRules.py show potential field misalignment #35

Open
dax-westerman opened this issue Jul 30, 2024 · 0 comments
Milestone

Comments

@dax-westerman
Copy link
Collaborator

          In reviewing the file output in **src\step4\cleverRules.py**, I am seeing a misalignment between the header fields

Example of header creation

print(
    "label|snippetID|term|sta3n|TIUdocumentSID|TIUstandardTitle|visitSID|referenceDateTime|PatientSID|targetClass|targetSubClass|termID|NoteAndSnipOffset|snippet|OpCode",
    file=fout_pos,
)

Example of output generation

sum_out = (
            label[0]
            + "|"
            + cid
            + "|"
            + longseq
            + "|"
            ....
            + "|"
            + snippet
            + "|"
            + upcode
        )

It looks like fields might be misaligned.

position 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Header Row label snippetID term sta3n TIUdocumentSID TIUstandardTitle visitSID referenceDateTime PatientSID targetClass targetSubClass termID NoteAndSnipOffset snippet OpCode
Fields built for "sum_out" label[0] cid longseq tterm pid nid ntype time year tclass tsclass noffset termid snippet upcode

Originally posted by @dax-westerman in #26 (comment)

@dax-westerman dax-westerman added this to the backlog milestone Jul 30, 2024
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

No branches or pull requests

1 participant