Skip to content

Instantly share code, notes, and snippets.

[
'{{ repeat(200) }}',
{
atendimento:'AN{{ integer(100, 999) }}{{ integer(100, 999) }}{{ integer(100, 999) }}{{ integer(100, 999) }}{{ integer(10, 99) }}',
unidade: '{{ random("Israelita", "RiosDOR", "QuintaDOR", "Assunção", "Caxias", "Vivalle", "CopaDOR") }}',
dataPedido: "{{ integer(1, 28) }}/{{ integer(1, 12) }}/{{ integer(2016, 2017) }} {{ integer(0, 23) }}:{{ integer(0, 59) }}",
dataRealizacao: "{{ integer(1, 28) }}/{{ integer(1, 12) }}/{{ integer(2016, 2017) }} {{ integer(0, 23) }}:{{ integer(0, 59) }}",
dataLaudo: "{{ integer(1, 28) }}/{{ integer(1, 12) }}/{{ integer(2016, 2017) }} {{ integer(0, 23) }}:{{ integer(0, 59) }}",
dataLiberacao: "{{ integer(1, 28) }}/{{ integer(1, 12) }}/{{ integer(2016, 2017) }} {{ integer(0, 23) }}:{{ integer(0, 59) }}",
paciente: "{{ firstName() }} {{ surname() }}",
@oziresrds
oziresrds / Remove all blocks in rtf code
Last active June 28, 2017 15:36
Remove all blocks in rtf fonttbl code
function removeAllBlocksInRtfFonttblCode(rtf) {
let newRtf = '', firstIndex, lastIndex, count, tagOpen = 1;
firstIndex = rtf.indexOf('\\fonttbl');
count = firstIndex;
while(count < rtf.length && tagOpen > 0) {
if(rtf[count] == '{')
tagOpen++;
else if(rtf[count] == '}') {
if(tagOpen > 1)