Skip to content
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
Expand Up @@ -379,7 +379,7 @@
},
{
"linkId": "6.5",
"text": "4. I understand that some patients while taking isotretinoin or soon after stopping isotetrinoin, have become depressed or developed other serious mental problems. Symptoms of depression include sad, anxious or empty mood, irritability, acting on dangerous impulses, anger, loss of pleasure or interest in social or sport activities, sleeping too much or too little, changes in weight or appetite, school or work performance going down, or trouble concentrating. Some patients taking isotretinoin have had thoughts about hurting themselves or putting an end to their own lives (suicidal thoughts). Some people tried to end their own lives, and some people have ended their own lives. There were reports that some of these people did not appear depressed. There have been reports of patients on isotretinoin becoming aggressive or violent. Some people have had other signs of depression while taking isotretinoin (see #7).",
"text": "4. I understand that some patients while taking isotretinoin or soon after stopping isotretinoin, have become depressed or developed other serious mental problems. Symptoms of depression include sad, anxious or empty mood, irritability, acting on dangerous impulses, anger, loss of pleasure or interest in social or sport activities, sleeping too much or too little, changes in weight or appetite, school or work performance going down, or trouble concentrating. Some patients taking isotretinoin have had thoughts about hurting themselves or putting an end to their own lives (suicidal thoughts). Some people tried to end their own lives, and some people have ended their own lives. There were reports that some of these people did not appear depressed. There have been reports of patients on isotretinoin becoming aggressive or violent. Some people have had other signs of depression while taking isotretinoin (see #7).",
"type": "boolean",
"required": true
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"resourceType": "Questionnaire",
"id": "physical-exam",
"name": "Physican Exam Module",
"name": "Physical Exam Module",
"url": "http://hl7.org/fhir/Questionnaire/physical-exam",
"meta": {
"profile": [
"http://hl7.org/fhir/StructureDefinition/cqf-questionnaire",
"http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaire-r4"
]
},
},
"status": "draft",
"item":[
"item": [
{
"linkId": "OBJ.PE",
"code": [
Expand All @@ -32,7 +32,7 @@
"system": "http://loinc.org"
}
],
"type": "string",
"type": "string",
"text": "General Appearance"
},
{
Expand All @@ -44,7 +44,7 @@
"system": "http://loinc.org"
}
],
"type": "string",
"type": "string",
"text": "Head and Face"
},
{
Expand Down Expand Up @@ -104,7 +104,7 @@
"system": "http://loinc.org"
}
],
"type": "string",
"type": "string",
"text": "Cardiovascular System"
},
{
Expand Down Expand Up @@ -172,12 +172,12 @@
"code": [
{
"code": "71401-4",
"display": "Extremeties",
"display": "Extremities",
"system": "http://loinc.org"
}
],
"type": "string",
"text": "Extremeties"
"text": "Extremities"
},
{
"linkId": "PE.14",
Expand Down Expand Up @@ -249,5 +249,5 @@
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"http://hl7.org/fhir/StructureDefinition/cqf-questionnaire",
"http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaire-r4"
]
},
},
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/cqf-library",
"valueCanonical": "http://hl7.org/fhir/us/davinci-dtr/Library/BasicClinicalInfo-prepopulation"
}
],
],
"status": "draft",
"item":[
"item": [
{
"linkId": "SUB",
"text": "Subjective",
Expand Down Expand Up @@ -78,7 +78,7 @@
"linkId": "MED.1.4",
"text": "Frequency",
"type": "open-choice",
"answerValueSet":"http://hl7.org/fhir/ValueSet/timing-abbreviation"
"answerValueSet": "http://hl7.org/fhir/ValueSet/timing-abbreviation"
},
{
"linkId": "MED.1.5",
Expand Down Expand Up @@ -107,9 +107,9 @@
"text": "Allergy",
"type": "open-choice",
"repeats": true,
"anwerOption": []
"answerOption": []
}
]
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/valueset-definition",
"valueString": "The subject is experiencing a re-occurence or repeating of a previously resolved condition, e.g. urinary tract infection, pancreatitis, cholangitis, conjunctivitis."
"valueString": "The subject is experiencing a re-occurrence or repeating of a previously resolved condition, e.g. urinary tract infection, pancreatitis, cholangitis, conjunctivitis."
}
],
"system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"name": "TuralioRemsPatientEnrollment",
"title": "Turalio Rems Patient Enrollment",
"status": "draft",
"subjectType": [
"Patient"
],
"subjectType": ["Patient"],
"date": "2020-05-20",
"publisher": "Da Vinci DTR",
"extension": [
Expand Down Expand Up @@ -230,7 +228,7 @@
"code": "White",
"display": "White"
}
}
}
]
},
{
Expand Down Expand Up @@ -466,14 +464,16 @@
}
}
],
"item" : [
"item": [
{
"linkId": "3.1.1",
"text": "Laboratory Test",
"type": "string",
"initial": [{
"valueString": "AST or SGOT"
}],
"initial": [
{
"valueString": "AST or SGOT"
}
],
"readOnly": true
},
{
Expand Down Expand Up @@ -524,14 +524,16 @@
}
}
],
"item" : [
"item": [
{
"linkId": "3.1.1",
"text": "Laboratory Test",
"type": "string",
"initial": [{
"valueString": "ALT or SGPT"
}],
"initial": [
{
"valueString": "ALT or SGPT"
}
],
"readOnly": true
},
{
Expand Down Expand Up @@ -582,14 +584,16 @@
}
}
],
"item" : [
"item": [
{
"linkId": "3.1.1",
"text": "Laboratory Test",
"type": "string",
"initial": [{
"valueString": "GGT"
}],
"initial": [
{
"valueString": "GGT"
}
],
"readOnly": true
},
{
Expand Down Expand Up @@ -640,14 +644,16 @@
}
}
],
"item" : [
"item": [
{
"linkId": "3.1.1",
"text": "Laboratory Test",
"type": "string",
"initial": [{
"valueString": "Total Bilirubin"
}],
"initial": [
{
"valueString": "Total Bilirubin"
}
],
"readOnly": true
},
{
Expand Down Expand Up @@ -698,14 +704,16 @@
}
}
],
"item" : [
"item": [
{
"linkId": "3.1.1",
"text": "Laboratory Test",
"type": "string",
"initial": [{
"valueString": "Direct Bilirubin"
}],
"initial": [
{
"valueString": "Direct Bilirubin"
}
],
"readOnly": true
},
{
Expand Down Expand Up @@ -756,14 +764,16 @@
}
}
],
"item" : [
"item": [
{
"linkId": "3.1.1",
"text": "Laboratory Test",
"type": "string",
"initial": [{
"valueString": "Alkaline Phosphatase"
}],
"initial": [
{
"valueString": "Alkaline Phosphatase"
}
],
"readOnly": true
},
{
Expand Down Expand Up @@ -814,14 +824,16 @@
}
}
],
"item" : [
"item": [
{
"linkId": "3.1.1",
"text": "Laboratory Test",
"type": "string",
"initial": [{
"valueString": "Albumin"
}],
"initial": [
{
"valueString": "Albumin"
}
],
"readOnly": true
},
{
Expand Down Expand Up @@ -872,14 +884,16 @@
}
}
],
"item" : [
"item": [
{
"linkId": "3.1.1",
"text": "Laboratory Test",
"type": "string",
"initial": [{
"valueString": "PT/INR"
}],
"initial": [
{
"valueString": "PT/INR"
}
],
"readOnly": true
},
{
Expand Down Expand Up @@ -1169,4 +1183,4 @@
]
}
]
}
}
8 changes: 4 additions & 4 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import 'dotenv/config';
import * as env from 'env-var';

// Set up whitelist
const whitelist_env = env.get('WHITELIST').asArray() || false;
const whitelistEnv = env.get('WHITELIST').asArray() || false;

// If no whitelist is present, disable cors
// If it's length is 1, set it to a string, so * works
// If no whitelist is present, disable CORS
// If its length is 1, set it to a string, so * works
// If there are multiple, keep them as an array
const whitelist = whitelist_env && whitelist_env.length === 1 ? whitelist_env[0] : whitelist_env;
const whitelist = whitelistEnv && whitelistEnv.length === 1 ? whitelistEnv[0] : whitelistEnv;
export default {
server: {
port: env.get('PORT').asInt(),
Expand Down
2 changes: 1 addition & 1 deletion src/fhir/questionnaireUtilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class QuestionnaireUtilities {
}
}
}
// On load of new library, finds ValueSets in codefilters and
// On load of new library, finds ValueSets in code filters and
// loads them as well
static async processLibraryCodeFilters(library: Library) {
const returnValue = this.vsacCache.cacheLibrary(library);
Expand Down
1 change: 0 additions & 1 deletion src/fhir/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ export class FhirUtilities {
}

static async populateDB() {
// prepopulateDB
const medications = [
{
name: 'Turalio',
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/hookResources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface CardRule {
cardDetails?: string;
}
export const CARD_DETAILS = 'Documentation Required, please complete form via Smart App link.';
// TODO: this codemap should be replaced with a system similar to original CRD's questionnaire package operation
// TODO: this codemap should be replaced with a system similar to original CRD questionnaire package operation
// the app doesn't necessarily have to use CQL for this.
export const codeMap: { [key: string]: CardRule[] } = {
'2183126': [
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/rems.patientview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ const handler = (req: TypedRequestBody, res: any) => {
}
}

// if not in the list of metReuirements, add it as well
// if not in the list of metRequirements, add it as well
if (!found) {
card.addLink(createSmartLink(requirement.name, requirement.appContext, request));
smartLinkCount++;
Expand Down
6 changes: 1 addition & 5 deletions src/lib/etasu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ import {
import { FilterQuery } from 'mongoose';
const router = Router();

// const medicationCollection = db.collection('medication-requirements');
// const metRequirementsCollection = db.collection('met-requirements');
// const remsCaseCollection = db.collection('rems-case');

// etasu endpoints
router.get('/:drug', async (req: Request, res: Response) => {
res.send(await medicationCollection.findOne({ name: req.params.drug }));
Expand Down Expand Up @@ -262,7 +258,7 @@ const createMetRequirementAndNewCase = async (
return res;
}

// iterate through all other reqs again to create corresponding false metReqs / assign to existing
// iterate through all other requirements again to create corresponding false metRequirements / assign to existing
for (const requirement2 of drug.requirements) {
// skip if the req found is the same as in the outer loop and has already been processed
// && If the requirement is not the patient Status Form (when requiredToDispense == false)
Expand Down
Loading