Indivo Data Model: ClinicalNote¶
Model Definition¶
As a Django Model Class:
from indivo.models import Fact
from indivo.fields import ProviderField
from django.db import models
class ClinicalNote(Fact):
date = models.DateTimeField()
title = models.CharField(max_length=255, null=True)
format = models.CharField(max_length=255, null=True)
value = models.CharField(max_length=255, null=True)
provider = ProviderField()
Examples¶
As SDMJ:
{
"__modelname__": "ClinicalNote",
"date": "2012-05-17",
"title": "Telephone note",
"format": "http://purl.org/NET/mediatypes/text/plain",
"value": "Patient's mother telephoned to say that he no longer needs documentation of a sports physical for school",
"provider_name_given": "Josuha",
"provider_name_family": "Mandel",
}
As SDMX:
<Models xmlns="http://indivo.org/vocab/xml/documents#">
<Model name="ClinicalNote">
<Field name="date">2012-05-17</Field>
<Field name="title">Telephone note</Field>
<Field name="format">http://purl.org/NET/mediatypes/text/plain</Field>
<Field name="value">Patient's mother telephoned to say that he no longer needs documentation of a sports physical for school</Field>
<Field name="provider_name_given">Josuha</Field>
<Field name="provider_name_family">Mandel</Field>
</Model>
</Models>
As a Fact object:
from indivo.models import ClinicalNote
social_history_fact = ClinicalNote(
date="2012-05-17",
title="Telephone note",
format="http://purl.org/NET/mediatypes/text/plain",
value="Patient's mother telephoned to say that he no longer needs documentation of a sports physical for school",
provider_name_given="Josuha",
provider_name_family="Mandel",
)