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

USCore 3.1.1 - Patient.address.line #1225

Closed
jbyrdevans opened this issue Sep 6, 2023 · 2 comments · Fixed by #1276
Closed

USCore 3.1.1 - Patient.address.line #1225

jbyrdevans opened this issue Sep 6, 2023 · 2 comments · Fixed by #1276
Assignees
Labels

Comments

@jbyrdevans
Copy link

Error Could not resolve data provider for package 'java.util' encountered for Execute CQL for USCore v3.1.1 Patient.address.line.

CQL:

library Repro version '0.1.0'

using USCore version '3.1.1'
//using FHIR version '4.0.1'

include FHIRHelpers version '4.0.1'

context Patient

define "Address":
  Patient.address.line

define "Address Line 1":
  Patient.address.line[0]

Patient:

{
  "resourceType": "Patient",
  "id": "USCorePatient-2",
  "meta": {
    "profile": [
      "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient"
    ]
  },
  "identifier": [
    {
      "use": "usual",
      "type": {
        "coding": [
          {
            "code": "MR",
            "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
            "display": "Medical Record Number"
          }
        ]
      },
      "system": "urn:oid:1.2.36.146.595.217.0.1",
      "value": "12345",
      "period": {
        "start": "2001-05-06"
      },
      "assigner": {
        "display": "Acme Healthcare"
      }
    }
  ],
  "active": true,
  "name": [
    {
      "use": "official",
      "family": "Chalmers",
      "given": [
        "James"
      ]
    }
  ],
  "gender": "male",
  "birthDate": "1974-12-25",
  "deceasedBoolean": false,
  "maritalStatus": {
    "coding": [
      {
        "code": "M",
        "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus"
      }
    ]
  },
  "address": [
    {
      "use": "home",
      "type": "both",
      "text": "534 Erewhon St PeasantVille, Utah 84414",
      "line": [
        "534 Erewhon St"
      ],
      "city": "PleasantVille",
      "district": "Rainbow",
      "state": "UT",
      "postalCode": "84414",
      "period": {
        "start": "1974-12-25"
      }
    }
  ]
}

Result:

Evaluation logs:
16:08:15.253 [pool-2-thread-1] INFO  ca.uhn.fhir.context.FhirContext - Creating new FHIR context for FHIR version [R4]
Could not resolve data provider for package 'java.util'.
@JPercival JPercival transferred this issue from cqframework/vscode-cql Sep 28, 2023
@JPercival JPercival added the bug label Sep 28, 2023
@JPercival
Copy link
Contributor

Potential dup of #1231. Retest

@JPercival JPercival self-assigned this Oct 18, 2023
@ddieppois
Copy link

ddieppois commented Oct 26, 2023

So I've been able to translate this using CQL-to-elm-cli

================================================================================ TRANSLATE /Users/daviddieppois/Documents/git/clinical_quality_language/Examples/TestLibrary_1186.cql SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. Translation completed successfully. ELM output written to: /Users/daviddieppois/Documents/git/clinical_quality_language/Examples/TestLibrary_1186.xml

XML coming back is

@jbyrdevans what command did you use. ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants