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

Update two common encounter codes for relevancy #1540

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions src/main/java/org/mitre/synthea/export/FhirDstu2.java
Original file line number Diff line number Diff line change
Expand Up @@ -535,8 +535,8 @@ private static Entry encounter(Person person, Entry personEntry,
encounterResource.setStatus(EncounterStateEnum.FINISHED);
if (encounter.codes.isEmpty()) {
// wellness encounter
encounterResource.addType().addCoding().setCode("185349003")
.setDisplay("Encounter for check up").setSystem(SNOMED_URI);
encounterResource.addType().addCoding().setCode("86013001")
.setDisplay("Periodic reevaluation and management of healthy individual (procedure)").setSystem(SNOMED_URI);
} else {
Code code = encounter.codes.get(0);
encounterResource.addType(mapCodeToCodeableConcept(code, SNOMED_URI));
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/mitre/synthea/export/FhirR4.java
Original file line number Diff line number Diff line change
Expand Up @@ -900,8 +900,8 @@ private static BundleEntryComponent encounter(Person person, BundleEntryComponen
encounterResource.setStatus(EncounterStatus.FINISHED);
if (encounter.codes.isEmpty()) {
// wellness encounter
encounterResource.addType().addCoding().setCode("185349003")
.setDisplay("Encounter for check up").setSystem(SNOMED_URI);
encounterResource.addType().addCoding().setCode("86013001")
.setDisplay("Periodic reevaluation and management of healthy individual (procedure)").setSystem(SNOMED_URI);
} else {
Code code = encounter.codes.get(0);
encounterResource.addType(mapCodeToCodeableConcept(code, SNOMED_URI));
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/mitre/synthea/export/FhirStu3.java
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,8 @@ private static BundleEntryComponent encounter(Person person, BundleEntryComponen
encounterResource.setStatus(EncounterStatus.FINISHED);
if (encounter.codes.isEmpty()) {
// wellness encounter
encounterResource.addType().addCoding().setCode("185349003")
.setDisplay("Encounter for check up").setSystem(SNOMED_URI);
encounterResource.addType().addCoding().setCode("86013001")
.setDisplay("Periodic reevaluation and management of healthy individual (procedure)").setSystem(SNOMED_URI);

} else {
Code code = encounter.codes.get(0);
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/mitre/synthea/export/TextExporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@
* 2017-11-01 : Body Height 181.6 cm
* --------------------------------------------------------------------------------
* ENCOUNTERS:
* 2017-11-01 : Encounter for check up (procedure)
* 2017-11-01 : Periodic reevaluation and management of healthy individual (procedure)
* 2016-12-28 : Encounter for Viral sinusitis (disorder)
* 2016-10-26 : Encounter for check up (procedure)
* 2016-10-26 : Periodic reevaluation and management of healthy individual (procedure)
* </pre>

* Exporter for a simple human-readable text format per encounter.
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/mitre/synthea/modules/EncounterModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public final class EncounterModule extends Module {
public static final int EMERGENCY_SYMPTOM_THRESHOLD = 500;
public static final String LAST_VISIT_SYMPTOM_TOTAL = "last_visit_symptom_total";

public static final Code ENCOUNTER_CHECKUP = new Code("SNOMED-CT", "185349003",
"Encounter for check up (procedure)");
public static final Code ENCOUNTER_CHECKUP = new Code("SNOMED-CT", "86013001",
"Periodic reevaluation and management of healthy individual (procedure)");
public static final Code ENCOUNTER_EMERGENCY = new Code("SNOMED-CT", "50849002",
"Emergency room admission (procedure)");
public static final Code WELL_CHILD_VISIT = new Code("SNOMED-CT", "410620009",
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/costs/encounters.csv
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
CODE,MIN,MODE,MAX,COMMENTS
185317003,75,75,75,Telephone encounter (procedure) - Prior costs update source
185345009,75,75,75,Encounter for symptom - Prior costs update source
185347001,75,75,75,Encounter for problem - Prior costs update source
185349003,75,75,75,Encounter for 'check-up' - Prior costs update source
281036007,75,75,75,Follow-up consultation (procedure) - Prior costs update source
86013001,75,75,75,Periodic reevaluation and management of healthy individual (procedure) - Prior costs update source
185389009,75,75,75,Follow-up visit (encounter) - Prior costs update source
183452005,75,75,75,Encounter Inpatient - Prior costs update source
270427003,75,75,75,Patient-initiated encounter - Prior costs update source
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/modules/acute_myeloid_leukemia.json
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185347001",
"display": "Encounter for problem (procedure)"
"code": "281036007",
"display": "Follow-up consultation (procedure)"
}
],
"direct_transition": "Wait for Treatment"
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/modules/allergies.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185347001",
"display": "Encounter for problem (procedure)"
"code": "281036007",
"display": "Follow-up consultation (procedure)"
}
],
"conditional_transition": [
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/modules/anemia/anemia_sub.json
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185347001",
"display": "Encounter for problem (procedure)"
"code": "281036007",
"display": "Follow-up consultation (procedure)"
}
],
"conditional_transition": [
Expand Down Expand Up @@ -1010,8 +1010,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185347001",
"display": "Encounter for problem (procedure)"
"code": "281036007",
"display": "Follow-up consultation (procedure)"
}
],
"conditional_transition": [
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/modules/appendicitis.json
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185347001",
"display": "Encounter for problem (procedure)"
"code": "281036007",
"display": "Follow-up consultation (procedure)"
}
],
"direct_transition": "Appendectomy"
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/modules/attention_deficit_disorder.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185347001",
"display": "Encounter for problem (procedure)"
"code": "281036007",
"display": "Follow-up consultation (procedure)"
}
],
"direct_transition": "ADD_Symptom1"
Expand Down Expand Up @@ -194,8 +194,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185347001",
"display": "Encounter for problem (procedure)"
"code": "281036007",
"display": "Follow-up consultation (procedure)"
}
],
"direct_transition": "Behavior_Treatment_Procedure"
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/modules/breast_cancer.json
Original file line number Diff line number Diff line change
Expand Up @@ -1522,8 +1522,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185347001",
"display": "Encounter for problem (procedure)"
"code": "281036007",
"display": "Follow-up consultation (procedure)"
}
],
"direct_transition": "Chemotherapy Drugs",
Expand Down Expand Up @@ -1768,8 +1768,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185347001",
"display": "Encounter for problem (procedure)"
"code": "281036007",
"display": "Follow-up consultation (procedure)"
}
],
"direct_transition": "Chemotherapy Drugs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185347001",
"display": "Encounter for problem (procedure)"
"code": "281036007",
"display": "Follow-up consultation (procedure)"
}
],
"direct_transition": "Choose Chemo Drug"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185347001",
"display": "Encounter for problem (procedure)"
"code": "281036007",
"display": "Follow-up consultation (procedure)"
}
],
"conditional_transition": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185347001",
"display": "Encounter for problem (procedure)"
"code": "281036007",
"display": "Follow-up consultation (procedure)"
}
],
"conditional_transition": [
Expand Down Expand Up @@ -500,8 +500,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185347001",
"display": "Encounter for problem (procedure)"
"code": "281036007",
"display": "Follow-up consultation (procedure)"
}
],
"complex_transition": [
Expand Down Expand Up @@ -677,8 +677,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185347001",
"display": "Encounter for problem (procedure)"
"code": "281036007",
"display": "Follow-up consultation (procedure)"
}
],
"complex_transition": [
Expand Down Expand Up @@ -972,8 +972,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185347001",
"display": "Encounter for problem (procedure)"
"code": "281036007",
"display": "Follow-up consultation (procedure)"
}
],
"direct_transition": "Advanced_drugs"
Expand Down Expand Up @@ -1038,8 +1038,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185347001",
"display": "Encounter for problem (procedure)"
"code": "281036007",
"display": "Follow-up consultation (procedure)"
}
],
"conditional_transition": [
Expand Down
36 changes: 18 additions & 18 deletions src/main/resources/modules/colorectal_cancer.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185349003",
"display": "Encounter for check up (procedure)"
"code": "86013001",
"display": "Periodic reevaluation and management of healthy individual (procedure)"
}
],
"direct_transition": "Routine_Colonoscopy_Procedure",
Expand Down Expand Up @@ -421,8 +421,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185347001",
"display": "Encounter for problem (procedure)"
"code": "281036007",
"display": "Follow-up consultation (procedure)"
}
],
"direct_transition": "End_Biopsy_Followup"
Expand Down Expand Up @@ -467,8 +467,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185349003",
"display": "Encounter for check up (procedure)"
"code": "86013001",
"display": "Periodic reevaluation and management of healthy individual (procedure)"
}
],
"direct_transition": "Followup_Colonoscopy_Procedure",
Expand Down Expand Up @@ -714,8 +714,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185349003",
"display": "Encounter for check up (procedure)"
"code": "86013001",
"display": "Periodic reevaluation and management of healthy individual (procedure)"
}
],
"direct_transition": "Diagnostic_Colonoscopy_Procedure",
Expand Down Expand Up @@ -1039,8 +1039,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185347001",
"display": "Encounter for problem (procedure)"
"code": "281036007",
"display": "Follow-up consultation (procedure)"
}
],
"direct_transition": "Colorectal_Cancer_CarePlan"
Expand Down Expand Up @@ -1192,8 +1192,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185347001",
"display": "Encounter for problem (procedure)"
"code": "281036007",
"display": "Follow-up consultation (procedure)"
}
],
"direct_transition": "Partial_Colectomy_Procedure"
Expand Down Expand Up @@ -1325,8 +1325,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185347001",
"display": "Encounter for problem (procedure)"
"code": "281036007",
"display": "Follow-up consultation (procedure)"
}
],
"direct_transition": "Diverting_Colostomy_Procedure"
Expand Down Expand Up @@ -1455,8 +1455,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185347001",
"display": "Encounter for problem (procedure)"
"code": "281036007",
"display": "Follow-up consultation (procedure)"
}
],
"direct_transition": "Pain_Vital_4"
Expand Down Expand Up @@ -1550,8 +1550,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185349003",
"display": "Encounter for check up (procedure)"
"code": "86013001",
"display": "Periodic reevaluation and management of healthy individual (procedure)"
}
],
"direct_transition": "End_Colorectal_Cancer_CarePlan"
Expand Down
12 changes: 6 additions & 6 deletions src/main/resources/modules/congestive_heart_failure.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185347001",
"display": "Encounter for problem (procedure)"
"code": "281036007",
"display": "Follow-up consultation (procedure)"
}
],
"direct_transition": "Recorded Symptom 1"
Expand Down Expand Up @@ -183,8 +183,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185347001",
"display": "Encounter for problem (procedure)"
"code": "281036007",
"display": "Follow-up consultation (procedure)"
}
],
"direct_transition": "Oxygen_Saturation",
Expand Down Expand Up @@ -938,8 +938,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185347001",
"display": "Encounter for problem (procedure)"
"code": "281036007",
"display": "Follow-up consultation (procedure)"
}
],
"direct_transition": "Echocardiography"
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/modules/cystic_fibrosis.json
Original file line number Diff line number Diff line change
Expand Up @@ -736,8 +736,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185349003",
"display": "Encounter for check up (procedure)"
"code": "86013001",
"display": "Periodic reevaluation and management of healthy individual (procedure)"
}
],
"conditional_transition": [
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/modules/dental_and_oral_examination.json
Original file line number Diff line number Diff line change
Expand Up @@ -851,8 +851,8 @@
"codes": [
{
"system": "SNOMED-CT",
"code": "185349003",
"display": "Encounter for check up (procedure)"
"code": "86013001",
"display": "Periodic reevaluation and management of healthy individual (procedure)"
}
],
"direct_transition": "Dental consultation and report"
Expand Down
Loading
Loading