Skip to content

Commit

Permalink
fix: code value Display field can be lengthy, changed to small text
Browse files Browse the repository at this point in the history
add field for url,
add index for code field,
code system and coode value - add flags
add custom check to indicate user created codes
update patch to support new fields
path to insert observation category codes
  • Loading branch information
akurungadam authored and akashkrishna619 committed Feb 8, 2024
1 parent b0da7da commit 3b63076
Show file tree
Hide file tree
Showing 5 changed files with 223 additions and 12 deletions.
34 changes: 31 additions & 3 deletions healthcare/healthcare/doctype/code_system/code_system.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"column_break_seaq",
"disabled",
"section_break_zyqx",
"code_system",
"uri",
"description",
"column_break_ijhv",
"is_fhir_defined",
"oid"
"oid",
"experimental",
"immutable",
"custom"
],
"fields": [
{
Expand All @@ -27,7 +31,6 @@
"reqd": 1
},
{
"depends_on": "eval:!doc.is_fhir_defined",
"fieldname": "oid",
"fieldtype": "Data",
"label": "OID",
Expand Down Expand Up @@ -75,6 +78,31 @@
"in_list_view": 1,
"label": "Is FHIR Defined",
"no_copy": 1
},
{
"default": "1",
"fieldname": "experimental",
"fieldtype": "Check",
"label": "Experimental ",
"read_only": 1
},
{
"default": "0",
"fieldname": "custom",
"fieldtype": "Check",
"label": "Custom",
"read_only": 1
},
{
"default": "0",
"fieldname": "immutable",
"fieldtype": "Check",
"label": "Immutable "
},
{
"default": "1",
"fieldname": "column_break_seaq",
"fieldtype": "Column Break"
}
],
"links": [
Expand All @@ -83,7 +111,7 @@
"link_fieldname": "code_system"
}
],
"modified": "2023-11-12 15:03:58.378011",
"modified": "2023-11-30 21:07:23.288897",
"modified_by": "Administrator",
"module": "Healthcare",
"name": "Code System",
Expand Down
44 changes: 38 additions & 6 deletions healthcare/healthcare/doctype/code_value/code_value.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@
"section_break_mygg",
"code_system",
"system_uri",
"experimental",
"immutable",
"code_value",
"display",
"column_break_cmkw",
"definition"
"definition",
"official_url",
"custom"
],
"fields": [
{
Expand All @@ -30,11 +34,10 @@
{
"allow_in_quick_entry": 1,
"fieldname": "display",
"fieldtype": "Data",
"fieldtype": "Small Text",
"in_list_view": 1,
"label": "Display",
"no_copy": 1,
"search_index": 1
"no_copy": 1
},
{
"fieldname": "column_break_cmkw",
Expand Down Expand Up @@ -62,7 +65,8 @@
"in_list_view": 1,
"label": "Code Value",
"no_copy": 1,
"reqd": 1
"reqd": 1,
"search_index": 1
},
{
"fetch_from": "code_system.uri",
Expand All @@ -72,10 +76,38 @@
"no_copy": 1,
"read_only": 1,
"search_index": 1
},
{
"fieldname": "official_url",
"fieldtype": "Data",
"label": "Official URL"
},
{
"default": "0",
"fetch_from": "code_system.experimental",
"fieldname": "experimental",
"fieldtype": "Check",
"label": "Experimental",
"read_only": 1
},
{
"default": "0",
"fetch_from": "code_system.custom",
"fieldname": "custom",
"fieldtype": "Check",
"label": "Custom"
},
{
"default": "0",
"fetch_from": "code_system.immutable",
"fieldname": "immutable",
"fieldtype": "Check",
"label": "Immutable",
"read_only": 1
}
],
"links": [],
"modified": "2023-11-12 23:07:41.209432",
"modified": "2023-11-30 21:09:27.550234",
"modified_by": "Administrator",
"module": "Healthcare",
"name": "Code Value",
Expand Down
1 change: 1 addition & 0 deletions healthcare/patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ healthcare.patches.v15_0.rename_field_medical_department_in_appoitment_type_serv
healthcare.patches.v15_0.set_default_dynamic_link_dt_for_appointment_type_service_item
healthcare.patches.v15_0.set_allow_booking_for_in_appointment_type
healthcare.patches.v15_0.setup_non_fhir_code_systems
healthcare.patches.v15_0.setup_diagnostic_module_codes
5 changes: 5 additions & 0 deletions healthcare/patches/v15_0/setup_diagnostic_module_codes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from healthcare.setup import setup_diagnostic_module_codes


def execute():
setup_diagnostic_module_codes()
Loading

0 comments on commit 3b63076

Please sign in to comment.