Module gmMacro
source code
GNUmed macro primitives.
This module implements functions a macro can legally use.
Author:
K.Hilbert <karsten.hilbert@gmx.net>
Imports:
sys,
time,
random,
types,
logging,
os,
io,
datetime,
urllib,
codecs,
regex,
wx,
gmI18N,
gmGuiBroker,
gmTools,
gmBorg,
gmExceptions,
gmCfg2,
gmDateTime,
gmMimeLib,
gmShellAPI,
gmPerson,
gmStaff,
gmDemographicRecord,
gmMedication,
gmPathLab,
gmPersonSearch,
gmVaccination,
gmKeywordExpansion,
gmPraxis,
gmGuiHelpers,
gmNarrativeWorkflows,
gmPatSearchWidgets,
gmPersonContactWidgets,
gmPlugin,
gmEMRStructWidgets,
gmEncounterWidgets,
gmListWidgets,
gmDemographicsWidgets,
gmDocumentWidgets,
gmKeywordExpansionWidgets,
gmPraxisWidgets,
gmAddressWidgets
known_injectable_placeholders
- Value:
['form_name_long', 'form_name_short', 'form_version', 'form_version_in
ternal', 'form_last_modified']
|
|
default_placeholder_regex
- Value:
r'\$<[^<:]+::.*?::\d*?>\$|\$<[^<:]+::.*?::\d+-\d+>\$'
|
|
first_pass_placeholder_regex
- Value:
r'|'.join([r'\$<[^<:]+::.*?(?=::\d*?>\$)::\d*?>\$', r'\$<[^<:]+::.*?(?
=::\d+-\d+>\$)::\d+-\d+>\$'])
|
|
second_pass_placeholder_regex
- Value:
r'|'.join([r'\$<<[^<:]+?::.*?(?=::\d*?>>\$)::\d*?>>\$', r'\$<<[^<:]+?:
:.*?(?=::\d+-\d+>>\$)::\d+-\d+>>\$'])
|
|
third_pass_placeholder_regex
- Value:
r'|'.join([r'\$<<<[^<:]+?::.*?(?=::\d*?>>>\$)::\d*?>>>\$', r'\$<<<[^<:
]+?::.*?(?=::\d+-\d+>>>\$)::\d+-\d+>>>\$'])
|
|