/
evistarpc_util.html
95 lines (81 loc) · 5.26 KB
/
evistarpc_util.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Module evistarpc_util</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc">
</head>
<body bgcolor="white">
<div class="navbar"><a name="#navbar_top"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
<hr>
<h1>Module evistarpc_util</h1>
<ul class="index"><li><a href="#description">Description</a></li><li><a href="#index">Function Index</a></li><li><a href="#functions">Function Details</a></li></ul>A collection of utilities to manipulate VistA data structures.
<p>Copyright © (C) 2010-2012, Wally Cash</p>
<p><b>Authors:</b> Wally Cash (<a href="mailto:wally.cash@gmail.com"><tt>wally.cash@gmail.com</tt></a>).</p>
<h2><a name="description">Description</a></h2>A collection of utilities to manipulate VistA data structures.
<h2><a name="index">Function Index</a></h2>
<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#encode_ovid_params-1">encode_ovid_params/1</a></td><td>Encode parameters for use with OVID.</td></tr>
<tr><td valign="top"><a href="#from_fm_datetime-1">from_fm_datetime/1</a></td><td>Converts a fileman datetime string to a datetime tuple.</td></tr>
<tr><td valign="top"><a href="#piece-2">piece/2</a></td><td>Extracts an element from a '^' delimited list specified
by its position.</td></tr>
<tr><td valign="top"><a href="#piece-3">piece/3</a></td><td>Extracts an element from a delimited list specified
by its position and delimiter.</td></tr>
<tr><td valign="top"><a href="#to_fm_date-1">to_fm_date/1</a></td><td>Converts an Erlang date tuple to fileman format.</td></tr>
<tr><td valign="top"><a href="#to_fm_datetime-1">to_fm_datetime/1</a></td><td>Converts an Erlang datetime tuple to fileman format.</td></tr>
<tr><td valign="top"><a href="#to_json-1">to_json/1</a></td><td>Parses a '\r\n' delimited string to JSON using the default
conversion.</td></tr>
<tr><td valign="top"><a href="#to_json-2">to_json/2</a></td><td>Parses a '\r\n' delimited string to JSON with arguments specifying
the conversion.</td></tr>
<tr><td valign="top"><a href="#to_record-2">to_record/2</a></td><td>Parses a \r\n delimited string to a key value record.</td></tr>
</table>
<h2><a name="functions">Function Details</a></h2>
<h3 class="function"><a name="encode_ovid_params-1">encode_ovid_params/1</a></h3>
<div class="spec">
<p><tt>encode_ovid_params(A) -> any()</tt></p>
</div><p>Encode parameters for use with OVID.
Returns a list of key,value tuples of the form [{index, parameters}, ...].</p>
<h3 class="function"><a name="from_fm_datetime-1">from_fm_datetime/1</a></h3>
<div class="spec">
<p><tt>from_fm_datetime(DateTime) -> any()</tt></p>
</div><p>Converts a fileman datetime string to a datetime tuple.</p>
<h3 class="function"><a name="piece-2">piece/2</a></h3>
<div class="spec">
<p><tt>piece(Str, Pos) -> any()</tt></p>
</div><p>Extracts an element from a '^' delimited list specified
by its position.</p>
<h3 class="function"><a name="piece-3">piece/3</a></h3>
<div class="spec">
<p><tt>piece(Str, Pos, Sep) -> any()</tt></p>
</div><p>Extracts an element from a delimited list specified
by its position and delimiter.</p>
<h3 class="function"><a name="to_fm_date-1">to_fm_date/1</a></h3>
<div class="spec">
<p><tt>to_fm_date(Date) -> any()</tt></p>
</div><p>Converts an Erlang date tuple to fileman format.</p>
<h3 class="function"><a name="to_fm_datetime-1">to_fm_datetime/1</a></h3>
<div class="spec">
<p><tt>to_fm_datetime(DateTime) -> any()</tt></p>
</div><p>Converts an Erlang datetime tuple to fileman format.</p>
<h3 class="function"><a name="to_json-1">to_json/1</a></h3>
<div class="spec">
<p><tt>to_json(Str) -> any()</tt></p>
</div><p>Parses a '\r\n' delimited string to JSON using the default
conversion. The array id will be set to "data" and elements will
be parsed as 'key'-'value' pairs, with key parsed from the second
position and value from the first.</p>
<h3 class="function"><a name="to_json-2">to_json/2</a></h3>
<div class="spec">
<p><tt>to_json(Str, X2) -> any()</tt></p>
</div><p>Parses a '\r\n' delimited string to JSON with arguments specifying
the conversion. Arguments are passed as a tuple. The first
element of the tuple is a string identifying the array and the second
is a list of tuples specifying the element identifier and position.</p>
<h3 class="function"><a name="to_record-2">to_record/2</a></h3>
<div class="spec">
<p><tt>to_record(Rec, Str) -> any()</tt></p>
</div><p>Parses a \r\n delimited string to a key value record. Intended
to populate Nitrogen combo/list boxes via the record syntax.</p>
<hr>
<div class="navbar"><a name="#navbar_bottom"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
<p><i>Generated by EDoc, Feb 10 2012, 18:39:56.</i></p>
</body>
</html>