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

Reproduction and Contraceptives #186

Merged
merged 6 commits into from
Apr 24, 2017
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
491 changes: 491 additions & 0 deletions lib/generic/modules/contraceptive_maintenance.json

Large diffs are not rendered by default.

654 changes: 654 additions & 0 deletions lib/generic/modules/contraceptives.json

Large diffs are not rendered by default.

58 changes: 58 additions & 0 deletions lib/generic/modules/contraceptives/clear_contraceptive.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"name": "Clear Contraceptive",
"remarks": [
"This submodule ends any active contraceptive medication assigned to the ",
"'contraceptive' attribute and clears the 'contraceptive_type' attribute ",
"for reassignment."
],
"states": {

"Initial": {
"type": "Initial",
"direct_transition": "Clear_Contraceptive_Med"
},

"Clear_Contraceptive_Med": {
"type": "Simple",
"remarks": [
"If the 'contraceptive' attribute is currently set, the medication it ",
"references will be active."
],
"conditional_transition": [
{
"condition": {
"condition_type": "Attribute",
"attribute": "contraceptive",
"operator": "is not nil"
},
"transition": "End_Contraceptive_Med"
},
{
"transition": "Clear_Contraceptive_Type"
}
]
},

"End_Contraceptive_Med": {
"type": "MedicationEnd",
"referenced_by_attribute": "contraceptive",
"direct_transition": "Clear_Contraceptive"
},

"Clear_Contraceptive": {
"type": "SetAttribute",
"attribute": "contraceptive",
"direct_transition": "Clear_Contraceptive_Type"
},

"Clear_Contraceptive_Type": {
"type": "SetAttribute",
"attribute": "contraceptive_type",
"direct_transition": "Terminal"
},

"Terminal": {
"type": "Terminal"
}
}
}
135 changes: 135 additions & 0 deletions lib/generic/modules/contraceptives/female_sterilization.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
{
"name": "Female Sterilization",
"remarks": [
"This submodule performs a female sterilization procedure. This procedure ",
"is not reversible."
],
"states": {

"Initial": {
"type": "Initial",
"direct_transition": "Set_Contraceptive_Type"
},

"Set_Contraceptive_Type": {
"type": "SetAttribute",
"attribute": "contraceptive_type",
"value": "sterilization",
"direct_transition": "Consultation_Encounter"
},

"Consultation_Encounter": {
"type": "Encounter",
"encounter_class": "outpatient",
"codes": [
{
"system": "SNOMED-CT",
"code": "698314001",
"display": "Consultation for treatment"
}
],
"direct_transition": "End_Consultation"
},

"End_Consultation": {
"type": "EncounterEnd",
"direct_transition": "Delay_For_Procedure"
},

"Delay_For_Procedure": {
"type": "Delay",
"range": {
"low": 1,
"high": 3,
"unit": "weeks"
},
"direct_transition": "Tubal_Ligation_Surgery_Encounter"
},

"Tubal_Ligation_Surgery_Encounter": {
"type": "Encounter",
"encounter_class": "inpatient",
"codes": [
{
"system": "SNOMED-CT",
"code": "305408004",
"display": "Admission to surgical department"
}
],
"direct_transition": "Tubal_Ligation_Procedure"
},

"Tubal_Ligation_Procedure": {
"type": "Procedure",
"codes": [
{
"system": "SNOMED-CT",
"code": "287664005",
"display": "Bilateral tubal ligation"
}
],
"duration": {
"low": 2,
"high": 3,
"unit": "hours"
},
"direct_transition": "Become_Infertile"
},

"Become_Infertile": {
"type": "SetAttribute",
"attribute": "infertile",
"value": true,
"direct_transition": "Post_Surgery_Care"
},

"Post_Surgery_Care": {
"type": "CarePlanStart",
"codes": [
{
"system": "SNOMED-CT",
"code": "787301000000101",
"display": "Surgery care management"
}
],
"activities": [
{
"system": "SNOMED-CT",
"code": "183051005",
"display": "Recommendation to rest"
},
{
"system": "SNOMED-CT",
"code": "243077000",
"display": "Recommendation to limit sexual activity"
}
],
"direct_transition": "End_Surgery_Encounter"
},

"End_Surgery_Encounter": {
"type": "EncounterEnd",
"direct_transition": "Recovery_Period"
},

"Recovery_Period": {
"type": "Delay",
"range": {
"low": 2,
"high": 3,
"unit": "weeks"
},
"direct_transition": "End_Post_Surgery_Care"
},

"End_Post_Surgery_Care": {
"type": "CarePlanEnd",
"careplan": "Post_Surgery_Care",
"direct_transition": "Terminal"
},

"Terminal": {
"type": "Terminal"
}
}
}
Loading