Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
library DrugHasREMSPrescriberEnrollmentPrepopulation version '0.1.0'
using FHIR version '4.0.0'
include FHIRHelpers version '4.0.0' called FHIRHelpers

codesystem "ICD-10-CM": 'http://hl7.org/fhir/sid/icd-10-cm'
codesystem "LOINC": 'http://loinc.org'
codesystem "SNOMED-CT": 'http://snomed.info/sct'
codesystem "RXNORM": 'http://www.nlm.nih.gov/research/umls/rxnorm'

code "Oncologist":'394592004' from "SNOMED-CT"

parameter device_request DeviceRequest
parameter service_request ServiceRequest
parameter medication_request MedicationRequest

context Patient

define Today: Today()

define "SigningProviderReference": Coalesce(device_request.performer.reference.value, service_request.performer.reference.value, medication_request.requester.reference.value)
// Get Practitioner
define OrderingProvider: singleton from (
[Practitioner] practitioner
where ('Practitioner/' + practitioner.id) = SigningProviderReference)

define Qualifications: singleton from (
"OrderingProvider".qualification[0].code.coding[0].code.value)

define Credentials: {Qualifications}

define PractitionerRole: singleton from (
[PractitionerRole] prole
where (prole.practitioner.reference.value) = SigningProviderReference)

define Specialty: FHIRHelpers.ToConcept("PractitionerRole".specialty[0] as FHIR.CodeableConcept).codes

define PreferredCommunication: {(singleton from (
"OrderingProvider".telecom telecom where telecom.rank.value = 1)).system.value}

define OrgName: ([Organization] org).name.value

define MD: (singleton from (
"OrderingProvider".identifier identifier
where identifier.type.coding[0].code = 'MD')).value.value
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"resourceType": "Library",
"id": "DrugHasREMSPrescriberEnrollment-prepopulation",
"url": "http://hl7.org/fhir/us/davinci-dtr/Library/DrugHasREMSPrescriberEnrollment-prepopulation",
"name": "DrugHasREMSPrescriberEnrollment-prepopulation",
"version": "0.1.0",
"title": "DrugHasREMSPrescriberEnrollment Prepopulation",
"status": "draft",
"type": {
"coding": [
{
"code": "logic-library"
}
]
},
"relatedArtifact": [
{
"type": "depends-on",
"resource": "Library/FHIRHelpers-4.0.0"
},
{
"type": "depends-on",
"resource": "Library/CDS_Connect_Commons_for_FHIRv400"
},
{
"type": "depends-on",
"resource": "Library/DTRHelpers"
}
],
"dataRequirement": [
{
"type": "Condition",
"codeFilter": [
{
"path": "code",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1219.81"
}
]
},
{
"type": "Condition",
"codeFilter": [
{
"path": "code",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1219.198"
}
]
},
{
"type": "Procedure",
"codeFilter": [
{
"path": "code",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1219.90"
}
]
},
{
"type": "MedicationRequest",
"codeFilter": [
{
"path": "code",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1219.192"
}
]
},
{
"type": "MedicationRequest",
"codeFilter": [
{
"path": "code",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1219.193"
}
]
},
{
"type": "Observation"
},
{
"type": "MedicationStatement",
"codeFilter": [
{
"path": "code",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1219.197"
}
]
},
{
"type": "Practitioner"
},
{
"type": "PractitionerRole",
"subjectCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/ValueSet/subject-type",
"code": "Practitioner"
}
]
}
}
],
"content": [
{
"contentType": "application/elm+json",
"url": "files/DrugHasREMS/r4/DrugHasREMSPrescriberEnrollmentPrepopulation-0.1.0.cql"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql",
"expression": "\"BasicClinicalInfoPrepopulation\".EncounterProviderFirstName"
"expression": "\"BasicPractitionerInfoPrepopulation\".FirstName"
}
},
{
Expand All @@ -50,7 +50,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql",
"expression": "\"BasicClinicalInfoPrepopulation\".EncounterProviderLastName"
"expression": "\"BasicPractitionerInfoPrepopulation\".LastName"
}
},
{
Expand All @@ -69,7 +69,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql",
"expression": "\"BasicClinicalInfoPrepopulation\".EncounterProviderMiddleInitial"
"expression": "\"BasicPractitionerInfoPrepopulation\".MiddleInitial"
}
}
]
Expand All @@ -84,7 +84,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql",
"expression": "\"BasicClinicalInfoPrepopulation\".EncounterProviderNPI"
"expression": "\"BasicPractitionerInfoPrepopulation\".NPI"
}
}
]
Expand All @@ -93,19 +93,46 @@
"linkId": "1.5",
"text": "Phone Number",
"type": "string",
"required": true
"required": true,
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql",
"expression": "\"BasicPractitionerInfoPrepopulation\".Phone"
}
}
]
},
{
"linkId": "1.6",
"text": "Fax Number",
"type": "string",
"required": true
"required": true,
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql",
"expression": "\"BasicPractitionerInfoPrepopulation\".Fax"
}
}
]
},
{
"linkId": "1.7",
"text": "Email",
"type": "string",
"required": true
"required": true,
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql",
"expression": "\"BasicPractitionerInfoPrepopulation\".Email"
}
}
]
}
]
},
Expand All @@ -117,7 +144,7 @@
{
"linkId": "2.1",
"text": "1. TURALIO is indicated for the treatment of adult patients with symptomatic tenosynovial giant cell tumor (TGCT) associated with severe morbidity or functional limitations and not amenable to improvement with surgery.",
"type": "open-choice",
"type": "choice",
"answerOption": [
{
"valueCoding": {
Expand All @@ -136,7 +163,7 @@
{
"linkId": "2.2",
"text": "2. TURALIO is contraindicated in patients with hepatic impairment.",
"type": "open-choice",
"type": "choice",
"answerOption": [
{
"valueCoding": {
Expand All @@ -155,7 +182,7 @@
{
"linkId": "2.3",
"text": "3. To prescribe TURALIO, I must enroll each patient in the TURALIO REMS by completing a Patient Enrollment Form with the patient and submitting it to the TURALIO REMS.",
"type": "open-choice",
"type": "choice",
"answerOption": [
{
"valueCoding": {
Expand All @@ -174,7 +201,7 @@
{
"linkId": "2.4",
"text": "4. Before treating each patient with TURALIO, I must",
"type": "open-choice",
"type": "choice",
"answerOption": [
{
"valueCoding": {
Expand Down Expand Up @@ -205,7 +232,7 @@
{
"linkId": "2.5",
"text": "5. One of the primary counseling messages I must tell my patients before prescribing TURALIO is",
"type": "open-choice",
"type": "choice",
"answerOption": [
{
"valueCoding": {
Expand Down Expand Up @@ -236,7 +263,7 @@
{
"linkId": "2.6",
"text": "6. I am required to educate my patients on the signs and symptoms of liver injury and the need to notify me should they experience them.",
"type": "open-choice",
"type": "choice",
"answerOption": [
{
"valueCoding": {
Expand All @@ -255,7 +282,7 @@
{
"linkId": "2.7",
"text": "7. If any dose modifications are required, they must be done in increments of 200 mg.",
"type": "open-choice",
"type": "choice",
"answerOption": [
{
"valueCoding": {
Expand All @@ -274,7 +301,7 @@
{
"linkId": "2.8",
"text": "8. After treatment initiation, I need to monitor liver tests weekly for the first 8 weeks of treatment, every 2 weeks for the next month, and every 3 months thereafter.",
"type": "open-choice",
"type": "choice",
"answerOption": [
{
"valueCoding": {
Expand All @@ -293,7 +320,7 @@
{
"linkId": "2.9",
"text": "9. I must complete a Patient Status Form for each patient taking TURALIO and submit it to the TURALIO REMS:",
"type": "open-choice",
"type": "choice",
"answerOption": [
{
"valueCoding": {
Expand Down
Loading