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

Missing LocalIds In Union Statement #395

Closed
mayerm94 opened this issue Mar 5, 2019 · 2 comments
Closed

Missing LocalIds In Union Statement #395

mayerm94 opened this issue Mar 5, 2019 · 2 comments
Labels
Milestone

Comments

@mayerm94
Copy link

mayerm94 commented Mar 5, 2019

Certain Union statements are missing localId and locator fields. In the ELM snippet below you'll notice that 2 of the Union statements are missing localId and locator fields. The statements with the missing fields happen to be leaf nodes within the binary-tree representation of the series of union statements.

Currently, the CQL logic:

define "Denominator Exclusions":
  "Encounter Less Than Two Days"
    union "Encounter with Thrombolytic Therapy Medication or Procedures"
    union "Encounter with Thrombolytic Medication"
    union "Encounter with Comfort Measures"
    union "Encounter With An INR Greater Than 3.5"
    union "Encounter With Thrombolytic Therapy Prior to Arrival"
    union "Encounter With Thrombolytic Therapy Documented As Already Given"

Is being represented in the ELM as follows:

"expression" : {
    "localId" : "217",
    "locator" : "103:2-109:73",
    "type" : "Union",
    "operand" : [
        {
            "localId" : "215",
            "locator" : "103:2-108:62",
            "type" : "Union",
            "operand" : [
                {
                    "localId" : "190",
                    "locator" : "103:2-106:41",
                    "type" : "Union",
                    "operand" : [
                        {
                            "localId" : "186",
                            "locator" : "103:2-104:70",
                            "type" : "Union",
                            "operand" : [
                                {
                                    "localId" : "184",
                                    "locator" : "103:2-103:31",
                                    "name" : "Encounter Less Than Two Days",
                                    "type" : "ExpressionRef"
                                },
                                {
                                    "localId" : "185",
                                    "locator" : "104:9-104:70",
                                    "name" : "Encounter with Thrombolytic Therapy Medication or Procedures",
                                    "type" : "ExpressionRef"
                                }
                            ]
                        },
                        {
                            "type" : "Union",
                            "operand" : [
                                {
                                    "localId" : "187",
                                    "locator" : "105:9-105:48",
                                    "name" : "Encounter with Thrombolytic Medication",
                                    "type" : "ExpressionRef"
                                },
                                {
                                    "localId" : "189",
                                    "locator" : "106:9-106:41",
                                    "name" : "Encounter with Comfort Measures",
                                    "type" : "ExpressionRef"
                                }
                            ]
                        }
                    ]
                },
                {
                    "type" : "Union",
                    "operand" : [
                        {
                            "localId" : "212",
                            "locator" : "107:9-107:48",
                            "name" : "Encounter With An INR Greater Than 3.5",
                            "type" : "ExpressionRef"
                        },
                        {
                            "localId" : "214",
                            "locator" : "108:9-108:62",
                            "name" : "Encounter With Thrombolytic Therapy Prior to Arrival",
                            "type" : "ExpressionRef"
                        }
                    ]
                }
            ]
        },
        {
            "localId" : "216",
            "locator" : "109:9-109:73",
            "name" : "Encounter With Thrombolytic Therapy Documented As Already Given",
            "type" : "ExpressionRef"
        }
    ]
}
@adongare
Copy link

Hi @brynrhodes, Could you please let me know if there is any update on this issue? I see it is open and tagged in release 1.4, Maintenance but just wanted to make sure that if it is already in 1.4 release and we are not missing it in our application.

@brynrhodes
Copy link
Member

Included in 1.5.5 Release

brynrhodes added a commit that referenced this issue Dec 16, 2021
bryantaustin13 added a commit that referenced this issue Dec 16, 2021
#395: Fixed a NullReferenceException when using the LibraryBuilder wi…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants