Commit e6b7b909 authored by vpodpecan's avatar vpodpecan

added G-DEE widgets

parent 983f3579
......@@ -185,5 +185,44 @@ def MUSE_PG_event_temprel_detection(input_dict):
#end
def MUSE_PG_GDEE_text(input_dict):
url = input_dict['url']
text = input_dict['text']
lang = input_dict['lang']
import socket
socket.setdefaulttimeout(None)
cli = JSONWSPClient(url)
result = cli.PG_GDEE_text(text=text, lang=lang)
result = result.response_dict['result']
return {'xml': result}
#end
def PG_GDEE_path(input_dict):
url = input_dict['url']
path = input_dict['path']
lang = input_dict['lang']
import socket
socket.setdefaulttimeout(None)
cli = JSONWSPClient(url)
result = cli.PG_GDEE_path(path=path, lang=lang)
result = result.response_dict['result']
return {'xml': result}
#end
[
{
"model": "workflows.abstractwidget",
"fields": {
"category": "3b5afcdf-231b-4484-8d0e-6a23852e0e95",
"treeview_image": "",
"uid": "90fcbd7f-f046-4c28-8313-5d2df237bad0",
"windows_queue": false,
"package": "MUSE_v3",
"interaction_view": "",
"has_progress_bar": false,
"image": "",
"description": "This function calls the command line version of G-DEE (a document engineering environment for clinical guidelines).",
"static_image": "",
"action": "PG_GDEE_path",
"visualization_view": "",
"streaming_visualization_view": "",
"post_interact_action": "",
"wsdl_method": "",
"wsdl": "",
"interactive": false,
"is_streaming": false,
"order": 1,
"name": "G-DEE (url)"
}
},
{
"model": "workflows.abstractinput",
"fields": {
"widget": "90fcbd7f-f046-4c28-8313-5d2df237bad0",
"name": "Service url",
"short_name": "url",
"default": "http://grom.ijs.si:8001/MUSE_services_V3/jsonwsp/description",
"description": "URL of the MUSE service",
"required": true,
"multi": false,
"parameter_type": "text",
"variable": "url",
"parameter": true,
"order": 1,
"uid": "04c44a3c-8370-4bed-988f-ed49406181b1"
}
},
{
"model": "workflows.abstractinput",
"fields": {
"widget": "90fcbd7f-f046-4c28-8313-5d2df237bad0",
"name": "URL",
"short_name": "url",
"default": "",
"description": "URL of the medical guidelines document",
"required": true,
"multi": false,
"parameter_type": null,
"variable": "path",
"parameter": false,
"order": 1,
"uid": "93cba747-47ba-42b2-a2f3-1631918a9553"
}
},
{
"model": "workflows.abstractinput",
"fields": {
"widget": "90fcbd7f-f046-4c28-8313-5d2df237bad0",
"name": "Language",
"short_name": "lng",
"default": "en",
"description": "Language (en or fr)",
"required": true,
"multi": false,
"parameter_type": "select",
"variable": "lang",
"parameter": true,
"order": 1,
"uid": "e692430c-d5fc-4ee6-890a-c8195673ae29"
}
},
{
"model": "workflows.abstractoutput",
"fields": {
"widget": "90fcbd7f-f046-4c28-8313-5d2df237bad0",
"name": "Annotations",
"short_name": "xml",
"description": "XML document with anotations",
"variable": "xml",
"order": 1,
"uid": "901ddbc5-2819-4577-87f9-535387c04402"
}
},
{
"model": "workflows.abstractoption",
"fields": {
"name": "English",
"uid": "",
"value": "en",
"abstract_input": "e692430c-d5fc-4ee6-890a-c8195673ae29"
}
},
{
"model": "workflows.abstractoption",
"fields": {
"name": "French",
"uid": "",
"value": "fr",
"abstract_input": "e692430c-d5fc-4ee6-890a-c8195673ae29"
}
}
]
\ No newline at end of file
[
{
"model": "workflows.abstractwidget",
"fields": {
"category": "3b5afcdf-231b-4484-8d0e-6a23852e0e95",
"treeview_image": "",
"uid": "b36cca2e-6a88-43c6-b16d-dc63d3283078",
"windows_queue": false,
"package": "MUSE_v3",
"interaction_view": "",
"has_progress_bar": false,
"image": "",
"description": "This function calls the command line version of G-DEE (a document engineering environment for clinical guidelines).",
"static_image": "",
"action": "MUSE_PG_GDEE_text",
"visualization_view": "",
"streaming_visualization_view": "",
"post_interact_action": "",
"wsdl_method": "",
"wsdl": "",
"interactive": false,
"is_streaming": false,
"order": 1,
"name": "G-DEE (text)"
}
},
{
"model": "workflows.abstractinput",
"fields": {
"widget": "b36cca2e-6a88-43c6-b16d-dc63d3283078",
"name": "Service url",
"short_name": "url",
"default": "http://grom.ijs.si:8001/MUSE_services_V3/jsonwsp/description",
"description": "URL of the MUSE service",
"required": true,
"multi": false,
"parameter_type": "text",
"variable": "url",
"parameter": true,
"order": 1,
"uid": "3e208a4b-e5cc-4477-a4b7-cc317ef23266"
}
},
{
"model": "workflows.abstractinput",
"fields": {
"widget": "b36cca2e-6a88-43c6-b16d-dc63d3283078",
"name": "Language",
"short_name": "lng",
"default": "en",
"description": "Language (en or fr)",
"required": true,
"multi": false,
"parameter_type": "select",
"variable": "lang",
"parameter": true,
"order": 1,
"uid": "5544f7e8-0d51-4317-9e68-91e51a6cc7af"
}
},
{
"model": "workflows.abstractinput",
"fields": {
"widget": "b36cca2e-6a88-43c6-b16d-dc63d3283078",
"name": "Text",
"short_name": "str",
"default": "",
"description": "Medical guidelines text as string",
"required": true,
"multi": false,
"parameter_type": null,
"variable": "text",
"parameter": false,
"order": 1,
"uid": "ede3f033-948b-4090-8089-22fb9bb8bba7"
}
},
{
"model": "workflows.abstractoutput",
"fields": {
"widget": "b36cca2e-6a88-43c6-b16d-dc63d3283078",
"name": "Annotations",
"short_name": "xml",
"description": "XML document with anotations",
"variable": "xml",
"order": 1,
"uid": "929435a1-d1de-43ea-89f6-f928859bbf7b"
}
},
{
"model": "workflows.abstractoption",
"fields": {
"name": "English",
"uid": "",
"value": "en",
"abstract_input": "5544f7e8-0d51-4317-9e68-91e51a6cc7af"
}
},
{
"model": "workflows.abstractoption",
"fields": {
"name": "French",
"uid": "",
"value": "fr",
"abstract_input": "5544f7e8-0d51-4317-9e68-91e51a6cc7af"
}
}
]
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment