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

Update reasonCode cardinality for MedicationNotRequested #1488

Open
brynrhodes opened this issue Jan 15, 2025 · 1 comment
Open

Update reasonCode cardinality for MedicationNotRequested #1488

brynrhodes opened this issue Jan 15, 2025 · 1 comment
Labels

Comments

@brynrhodes
Copy link
Member

Apply the fix for this issue: #1136

To the QICore 6.0.0 ModelInfo to address this error:

Could not resolve call to operator 'ToConcept(java.util.List)' in library 'FHIRHelpers'

Repro Library:

library FHIRHelpersToConceptError version '0.2.000'

using QICore version '6.0.0'

include FHIRHelpers version '4.4.000' called FHIRHelpers

parameter "Measurement Period" Interval<DateTime> default Interval[@2025-01-01T00:00:00Z, @2026-01-01T00:00:00Z)

context Patient

define "Minimal Repro":
  [MedicationNotRequested] NoStatinTherapyOrdered
    return NoStatinTherapyOrdered.reasonCode

Patient:

{
  "resourceType": "Patient",
  "id": "9edcce2d-8d32-4f4f-88a5-6fa689b73f8d",
  "meta": {
    "profile": [ "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient" ]
  },
  "name": [ {
    "family": "DENEXCEPPop1Pass",
    "given": [ "MedicalReasonNoModStatin" ]
  } ],
  "gender": "male",
  "birthDate": "2005-12-31"
}

MedicationRequest:

{
  "resourceType": "Patient",
  "id": "9edcce2d-8d32-4f4f-88a5-6fa689b73f8d",
  "meta": {
    "profile": [ "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient" ]
  },
  "name": [ {
    "family": "DENEXCEPPop1Pass",
    "given": [ "MedicalReasonNoModStatin" ]
  } ],
  "gender": "male",
  "birthDate": "2005-12-31"
}
@brynrhodes brynrhodes added the bug label Jan 15, 2025
@p9g
Copy link

p9g commented Jan 17, 2025

Looks like the MedicationRequest above is a Patient resource

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

2 participants