Skip to content

Instantly share code, notes, and snippets.

@denniskigen
Last active January 19, 2021 09:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save denniskigen/e67c778e8ba4eaa6966c8caf86febabd to your computer and use it in GitHub Desktop.
Save denniskigen/e67c778e8ba4eaa6966c8caf86febabd to your computer and use it in GitHub Desktop.
{
"name": "oncology_poc_breast_screening_form_v1.4",
"uuid": "xxxx",
"processor": "EncounterFormProcessor",
"referencedForms": [
{
"formName": "component_oncology-preclinic-review-v1.1",
"alias": "preReview",
"ref": {
"uuid": "b0fc7dac-5d1d-4a04-b238-e1976f6cb8c0",
"display": "Preclinic Review Component"
}
},
{
"formName": "component_oncology-breast-treatment-v1.1",
"alias": "obt",
"ref": {
"uuid": "90d9eed8-0913-4de8-a293-eb7b28250934",
"display": "Oncology Breast treatment v1.1 Component"
}
},
{
"formName": "component_oncology-adult-hiv-status-v1.1",
"alias": "adultHIV",
"ref": {
"uuid": "66c39f79-e5da-4168-a4d1-0f45d6d2bf8d",
"display": "HIV-Status Component"
}
},
{
"formName": "component_oncology-substance-use-v1.1",
"alias": "osu",
"ref": {
"uuid": "c8c2324d-800c-45fc-b859-756c4a220d1f",
"display": "Oncology Substance Use v1.1 Component"
}
},
{
"formName": "component_oncology-family-information-v1.3",
"alias": "ofih",
"ref": {
"uuid": "52b2d56a-be1d-4f2e-8d49-f6ca7ce98628",
"display": "Oncology Family Information v1.3 Component"
}
},
{
"formName": "component_oncology-reproductive-health-v1.1",
"alias": "orh",
"ref": {
"uuid": "2b332d73-33a5-49b4-b387-ab4016a9a830",
"display": "Oncology Reproductive health v1.1 Component"
}
},
{
"formName": "component_oncology-breast-physical-exam-v1.2",
"alias": "breastPhyEx",
"ref": {
"uuid": "ba8f3168-ac74-4901-b335-684cc9f8f42e",
"display": "Oncology breast physical exam Component"
}
},
{
"formName": "component_oncology-management-plan-v1.2",
"alias": "mplan",
"ref": {
"uuid": "308d1e88-e696-4dc4-99d0-1d71d8e2121b",
"display": "Management plan Component"
}
}
],
"pages": [
{
"label": "Encounter Details",
"sections": [
{
"label": "Encounter Details",
"questions": [
{
"label": "Visit date",
"type": "encounterDatetime",
"required": "true",
"default": "",
"id": "encDate",
"questionOptions": {
"rendering": "date"
},
"validators": [
{
"type": "date"
}
]
},
{
"type": "encounterProvider",
"label": "Provider",
"id": "provider",
"required": "true",
"default": "",
"questionOptions": {
"rendering": "ui-select-extended"
}
},
{
"type": "encounterLocation",
"label": "Facility name (site/satellite clinic required):",
"id": "location",
"required": "true",
"questionOptions": {
"rendering": "ui-select-extended"
}
}
]
}
]
},
{
"label": "Pre-Clinical Review",
"sections": [
{
"reference": {
"form": "preReview",
"page": "Pre-clinic Review",
"section": "Purpose of Visit"
}
}
]
},
{
"label": "Reproductive Health",
"sections": [
{
"reference": {
"form": "orh",
"page": "Reproductive health",
"section": "Reproductive Health"
}
},
{
"reference": {
"form": "orh",
"page": "Reproductive health",
"section": "Pregnancy History",
"excludeQuestions": [
"monthlyPeriod",
"mensesTrouble",
"troubleMenses",
"everPregnant",
"ageFirstPregn",
"currentlyPregnant",
"ANCEnrolled"
]
}
}
]
},
{
"label": "Social History",
"sections": [
{
"reference": {
"form": "osu",
"page": "Substance Use",
"section": "Substance Use",
"excludeQuestions": [
"alcconslastyear",
"averageBottles",
"alcnumlastyear",
"alcconfrequency"
]
}
}
]
},
{
"label": "HIV Status",
"sections": [
{
"reference": {
"form": "adultHIV",
"page": "Adult HIV Status",
"section": "HIV Status"
}
}
]
},
{
"label": "Treatment History",
"sections": [
{
"reference": {
"form": "obt",
"page": "Treatment History",
"section": "Previous Examinations"
}
},
{
"reference": {
"form": "obt",
"page": "Treatment History",
"section": "Previous Treatment"
}
}
]
},
{
"label": "Family History",
"sections": [
{
"reference": {
"form": "ofih",
"page": "Family History",
"section": "Personal History of Breast Cancer"
}
},
{
"reference": {
"form": "ofih",
"page": "Family History",
"section": "Family History of Breast Cancer"
}
}
]
},
{
"label": "Physical Breast Examination",
"sections": [
{
"reference": {
"form": "breastPhyEx",
"page": "Physical Exam",
"section": "Breast Findings"
}
},
{
"reference": {
"form": "breastPhyEx",
"page": "Physical Exam",
"section": "Lymph Node Findings"
}
}
]
},
{
"label": "Management Plan",
"sections": [
{
"reference": {
"form": "mplan",
"page": "Management Plan",
"section": "Patient Education"
}
},
{
"reference": {
"form": "mplan",
"page": "Management Plan",
"section": "Investigations Done"
}
},
{
"reference": {
"form": "mplan",
"page": "Management Plan",
"section": "Screening Referral"
}
},
{
"reference": {
"form": "mplan",
"page": "Management Plan",
"section": "Referral for Management"
}
}
]
},
{
"label": "Next Appointment",
"sections": [
{
"label": "Next appointment",
"isExpanded": "true",
"questions": [
{
"label": "Return to clinic date",
"type": "obs",
"required": "true",
"questionOptions": {
"concept": "a8a666ba-1350-11df-a1f1-0026b9348838",
"rendering": "date",
"weeksList": [2, 4, 9, 13, 26, 52]
},
"validators": [
{
"type": "date",
"allowFutureDates": "true"
},
{
"type": "js_expression",
"failsWhenExpression": "(new moment(encDate)).isAfter((new moment(myValue)), 'day') || (new moment(encDate)).isSame((new moment(myValue)), 'day')",
"message": "Return to clinic date should be greater than the encounter date."
}
]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment