Id: |
ExamplePatientAndCoverageInitialExpressions |
Version: |
0.1.0 |
Url: |
ExamplePatientAndCoverageInitialExpressions |
Status: |
draft |
Date: |
2024-11-18 00:51:22+0000 |
Publisher: |
Clinical Quality Framework |
Jurisdiction: |
840 |
Related Artifacts: |
Dependencies
|
Parameters: |
Name | Type | Min | Max | In/Out |
Patient | Resource | 0 | 1 | Out |
Patient Name | string | 0 | 1 | Out |
Date of Birth | date | 0 | 1 | Out |
Birth Sex | Resource | 0 | 1 | Out |
Medical Record Number | string | 0 | 1 | Out |
Phone Number | string | 0 | 1 | Out |
Email Address | string | 0 | 1 | Out |
Address | string | 0 | * | Out |
City | string | 0 | * | Out |
State | string | 0 | * | Out |
Postal Code | string | 0 | * | Out |
Member ID | string | 0 | 1 | Out |
Policy Number | Identifier | 0 | 1 | Out |
|
Data Requirements: |
Type | Profile | MS | Code Filter |
Patient |
http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient |
|
|
Patient |
http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient |
|
|
Patient |
http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient |
;; |
|
Patient |
http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient |
;; |
|
Patient |
http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient |
;; |
|
Patient |
http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient |
;; |
|
Patient |
http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient |
; |
|
Patient |
http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient |
;; |
|
Patient |
http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient |
;; |
|
Patient |
http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient |
;; |
|
Coverage |
http://hl7.org/fhir/StructureDefinition/Coverage |
;;;; |
|
Coverage |
http://hl7.org/fhir/StructureDefinition/Coverage |
;;;; |
|
Coverage |
http://hl7.org/fhir/StructureDefinition/Coverage |
;;;; |
|
Patient |
http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient |
|
|
Patient |
http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient |
; |
|
Coverage |
http://hl7.org/fhir/StructureDefinition/Coverage |
;;;; |
|
Coverage |
http://hl7.org/fhir/StructureDefinition/Coverage |
;;;; |
|
|
Content: text/cql |
library ExamplePatientAndCoverageInitialExpressions version '0.1.0'
using USCore version '3.1.1'
using FHIR version '4.0.1'
include FHIRHelpers version '4.1.0'
include USCoreCommon version '0.1.0' called UC
include USCoreElements version '0.1.0' called UCE
codesystem "Identifier Type": 'http://terminology.hl7.org/CodeSystem/v2-0203'
code "Member Number": 'MB' from "Identifier Type"
code "Subscriber Number": 'SN' from "Identifier Type"
context Patient
// Patient
define "Patient Name":
UCE."Name - First Middle(s) Last"
define "Date of Birth":
Patient.birthDate
define "Birth Sex":
Patient.birthsex
define "Medical Record Number":
UCE."Medical Record Number"
define "Phone Number":
UC.Mobile(Patient.telecom).value
define "Email Address":
UC.Email(Patient.telecom).value
// TODO: Error: Could not resolve data provider for package 'java.util'.
// define "Address":
// (singleton from Patient.address).line
define "Address":
{ 'TODO: remove hard-coded address' }
define "City":
Patient.address.city
define "State":
Patient.address.state
define "Postal Code":
Patient.address.postalCode
// Coverage
// TODO DM 20240921: Why doesn't this populate in test results when executing CQL? Member ID=null
// TODO: is there a need to check for coverage period and order? also, do we need to check that the payor organization is the same as the source of the prior auth form?
define "Member ID":
UCE."Member ID"
// TODO DM 20240921: Why doesn't this populate in test results when executing CQL? Policy Number=null
// TODO: is there a need to check for coverage period and order? also, do we need to check that the payor organization is the same as the source of the prior auth form?
define "Policy Number":
UCE."Policy Number"
|
|
Content: application/elm+xml |
Encoded data (27464 characters)
|
|
Content: application/elm+json |
Encoded data (46056 characters)
|
|