MedicalHistoryNodeData

Provide information about one node of the Medical History tree.

Properties

DataType

int

Type of data:

  • 0 = Text
  • 1 = Group (can contain child nodes)
  • 2 = HTML
  • 3 = Document
  • 4 = Graph

Label

string

Labe of the current node.

Detail

string

Detail of the current node.

Path

string

Path of the current node. Can be null or empty if it is fully loaded (Loaded property is True) and it is not possible to request this node alone. It is usually for Separator, HTML, Title or Text data types.

Loaded

bool

True if Data and Children properties are fully loaded.

The server doesn’t always return a Children and Data properties fully loaded. It happens when the response would be excessively large or for performance reasons. The server doesn’t return it so the client has a faster response. If the patient wants to see it the client must request the specific node using GetMedicalHistoryTreeNode and pass the Path property as the NodePath.

Data

object

Contains data of the node. Specific for every DataType. See all examples below to find out how data looks.

Children

MedicalHistoryNodeData[]

Children of the current node.

Only Group data type item has children.

JSON Example for Text data

{
    "DataType": 0,
    "Loaded": true,
    "Data": "Date: 01/01/2013\\r\\nSubject: Medical Examination\\r\\nRef/nr: ABC-1231243\\r\\n\\r\\nName: Mister X\\r\\nAge: 30\\r\\n\\r\\nGender: Male"
}

JSON Example for not fully loaded Group data

{
    "DataType": 1,
    "Label": "Full medical test",
    "Details": "16/4/2013",
    "Path": "/appointment/2756",
    "Loaded": false
}

JSON Example for fully loaded Group data

{
    "DataType": 1,
    "Label": "Full medical test",
    "Details": "16/4/2013",
    "Path": "/appointment/2756",
    "Loaded": true,
    "Children": [
        {
            "DataType": 0,
            "Loaded": true,
            "Data": "Dear John, there is your blood test result."
        },
        {
            "DataType": 3,
            "Label": "Blood test result",
            "Loaded": true,
            "Data": {
                "Size": "1256856", /* The file size in bytes. */
                "MIMEType": "image/jpeg",
                "Url": "https://images.meddbase.com/image.jpg"
            }
        },
        {
            "DataType": 0,
            "Loaded": true,
            "Data": "And there is your BMI graph."
        },
        {
            "DataType": 4,
            "Label": "BMI Graph",
            "Details": "",
            "Path": "/appointment/2756/bmi-graph",
            "Loaded": false
        }
    ]
}

JSON Example for HTML data

{
    "DataType": 2,
    "Loaded": true,
    "Data": "<p>Date: 01/01/2013<br/>Subject: Medical Examination<br/>Ref/nr: ABC-1231243<br/><br/>Name: Mister X<br/>Age: 30<br/>Gender: Male</p><hr/><table><tr><td>Table</td><td>Example</td></tr></table>"
}

JSON Example for Document data

{
    "DataType": 3,
    "Label": "Blood test result",
    "Loaded": true,
    "Data": {
        "Size": "48123", /* The file size in bytes. */
        "MIMEType": "image/jpeg",
        "Url": "https://images.meddbase.com/image.jpg"
    }
}

Note: The client must provide ASP.NET_SessionId key in the cookie to receive the file.

JSON Example for Document data

{
    "DataType": 3,
    "Label": "Pathology result",
    "Loaded": true,
    "Data": {
        "Size": "1256856", /* The file size in bytes. */
        "MIMEType": "application/pdf",
        "Url": "https://docs.meddbase.com/pathology-result.pdf"
    }
}

Note: The client must provide ASP.NET_SessionId key in the cookie to receive the file.

JSON Example for Graph data

{
    "DataType": 4,
    "Label": "BMI Graph",
    "Details": "",
    "Path": "/num-data/123",
    "Loaded": true,
    "Data": {
        "XAxis": {
            "Title": "Years",
            "Data": [
                2011,
                2012,
                2013
            ]
        },
        "Series": [
            {
                "Title": "John",
                "Data": [
                    25.4,
                    30.4,
                    27.6
                ],
                "Color": "Red"
            }
        ]
    }
}