doc_remark_insert ( session, case, text xml {,position})

doc_remark_insert ( session, case, text xml {,position})

doc_remark_insert ( session, case, text xml {,position})

Input

session: Identify the session toke returned by session_login()

case: a case reference

speciality: specialty identifier

text: content of the clinical course

position: It indicates the position of the last message. It is optional. If it already exist it will try to eliminate it

Output

position

Request Sample

<?xml version="1.0" encoding="UTF-8"?>

<tracking>

<case>ALGO0700606006</case>

<speciality>0022</speciality>

<text>

    Jordi Alfonso Gonzales

    Sex: Masculino

    Birth Date: 06/06/1970    Age: -

    Address: -    CP: -

    City: -       Telephone: s

    As: -   CIP: ALGO0700606006     ABS: -

    Nº epis: -    Type: -     Start: 14/09/2010

    Serv.: -      UO Enf.: -  Time: 12:17

    Caregiver of reference: -

    Proced.: -    Dest.: -

    Date: - Discharge date: - Time: -

    Diagnostic: -

    Proc.: -

    Evaluation:

    Work Plan:

</text>

<position>31</position>

</tracking>

Response Sample

<?xml version="1.0" encoding="UTF-8"?>

<clinicNoteTransfer>

  <xmlType>1</xmlType>

  <position>4</position>

</clinicNoteTransfer>