Attribute Types

This page explains the different attribute types and the settings available for each.

Attributes

A template is a list of attributes, where each attribute holds one value. For example, a Caregiver template might have Name, ID, Medical Specialty, Date of Birth and Phone. Entities created from that template would look like this:

NameIDMedical SpecialtyDate of BirthPhone
Dr. John Smith92541813Cardiology25-Aug-19721-033-555-9876
Dr. Jane Doe62182388Neurology10-Dec-19831-031-555-1234

Every template starts with a set of built-in attributes, which differ per entity type: the built-in attributes of a Device are not the same as those of a Patient. You can add your own attributes, called custom attributes, to any template.

Each attribute has a type, which decides what the value can hold and how it is shown in the portals.

Attribute names in the API

BioT communicates with devices and applications over APIs that use JSON. Each attribute therefore has a JSON name as well as a display name. BioT creates the JSON name from the display name, and you can also set it yourself.

Built-in attributes have a JSON name starting with an underscore, which is how you can tell them apart from custom attributes:

{
  _connected: false,
  _lastModifiedTime: "11-10-21T13:45:00",
  jsonNameOfSomeCustomAttribute: <value>
}

Attribute characteristics

Every attribute, built-in or custom, has the following characteristics in the BioT Console.

CharacteristicDescriptionAvailable for
Display NameThe name of the attribute in the portals. BioT uses it to create the JSON name, which you can also set yourself.All types
Attribute TypeThe type of the value, selected when the attribute is created. See Attribute types below.All types
RequiredWhether a value must be given when an entity is created from this template.All types
PHIWhether the value is protected health information under HIPAA.All types
UniqueNo two entities of the same template in the same organization can have the same value. BioT enforces this on the platform.Label, Integer, Decimal
DefaultA value that fills the attribute when it is left empty on create. It is not reapplied on update, so clearing the field later leaves it empty.Label, Paragraph, Integer, Decimal, Boolean, Single Select, Multi Select, Address, Name, Phone, Email, Date Time, Date, Timezone and Locale

Notes

  • Unique: an attribute cannot be set as unique on a template that already has entities with duplicate values for it, and an attribute that has a default value cannot be set as unique.
  • Required: if you make an attribute that is already in use Required, every existing entity with an empty value is updated with the default value.

Attribute types

TypeDescription
LabelA short text, up to 256 characters
ParagraphA long text, up to 5,000 characters, over several lines
Single SelectOne option out of a list you define
Multi SelectOne or more options out of a list you define
IntegerA whole number
DecimalA number with a decimal point
BooleanTrue or false, shown in the portals as Yes or No. Defaults to False when no default value is set
DateA date
Date TimeA date and a time
AddressCountry, State, City, Zip Code, Street and Additional Info
PhoneA phone number
EmailAn email address
NameFirst Name and Last Name
TimezoneOne time zone, selected from a list
LocaleOne locale, selected from a list
EntityA reference to another entity
FileAn uploaded file, offered as a download
ImageAn uploaded image, previewed as a thumbnail
WaveformA waveform measurement, available only on observation fields in the Patient template
LinkedA value that takes its structure from a measurement, available only on Usage Type summary fields

The types that have settings of their own are described below.

Label

A short text, up to 256 characters. You can define a regular expression that the value must match. For example, NER_* means every value must begin with NER_.

Single Select and Multi Select

Both hold options that you define. A Single Select accepts one option, a Multi Select accepts one or more.

Integer and Decimal

Integer holds a whole number, Decimal holds a number with a decimal point. Both have the same settings:

  • Value range: the range of valid values, as a minimum and a maximum.
  • Normal range: the range outside which BioT may consider the value alert-able. It must be within the value range.
  • Unit: the unit of measurement, as free text.

Date and Date Time

You can choose how the value is displayed: its date format, and for Date Time its time format as well. A live preview is shown as you choose. This changes only how the value is shown in the portals, not the value that is stored, and the actual rendering still depends on the locale of the person viewing it.

Entity

A reference to another entity. Select the entity type and the template, or * for any template of that entity type. For example, a Patient record can reference a Caregiver.

  • Referenced side attribute name (RSAN): the name by which the referenced entity refers back to this one. For example, in a template of a heart rate wristband you might have an Entity attribute called Patient, which refers to the patient the wristband belongs to. Setting its RSAN to My HR Wristband makes the wristband available under that name when viewing the patient in the organization portal.
  • Reference Uniquely: the referenced entity can be referenced by only one entity of this kind. In a Device template, selecting it on a Patient attribute means the device can only be used by a single patient.

File and Image

File and image attributes hold an uploaded file. They behave the same way, with one difference: BioT previews an image attribute as a thumbnail, while a file attribute is offered as a download.

In the portals, users upload the file directly from the field. Through the API, uploading a file is a three step flow, described in File Upload.

Both types have three settings in addition to the common attribute characteristics.

Max size

The largest file the attribute accepts, as a number and a unit. It is required. BioT measures the real size of the uploaded file, so a file over the limit is rejected when the entity is saved.

In the portals, the maximum is shown next to the field, and a file larger than the maximum is refused as soon as it is picked, before it is uploaded.

Allowed file types

Which file types the attribute accepts. By default all types are allowed.

The setting holds any combination of:

  • All types: every file type. On an image attribute, this means every image type and files with no extension. It cannot be combined with anything else.
  • A category: Images, Documents, Spreadsheets, Data, Video, Audio, Archives or Medical. A category can be added and then narrowed by removing individual extensions from it.
  • Files without extension.
  • An individual extension, typed into the field. An extension that is not valid is shown in red and the attribute cannot be saved.

A new attribute must allow at least one type.

BioT checks the last extension of the file name, in lower case. A file named photo.png.exe is treated as an exe file, and PHOTO.JPG as a jpg file. Saving an entity with a file whose extension is not allowed fails with INVALID_FILE_TYPE, and the error names both the extension and the allowed list.

In the portals, the allowed types are shown next to the field, the file picker offers only those types, and a file of another type is refused as soon as it is picked.

Notes

  • Narrowing the list applies only to files added from that point on. Files already saved on the attribute are not affected, and the entity can still be saved.
  • Attributes that existed before version 2.4.4 allow all types, so nothing changes for them until the list is narrowed.
  • The allowed types do not replace the check on the content of the file. BioT compares the content of every uploaded file with the file type it was declared as, see File Security Scans.

Archive after

How long a file stays in standard storage before it is moved to lower cost archive storage: Never (the default), Immediately, 1 week, 30 days, 90 days or 180 days, counted from the time the file was uploaded.

Archived files remain available. They are not deleted, and the file APIs do not change. Once a file has been archived it stays in archive storage, even if the setting is later changed or set to Never. In the portals, an archived image is not loaded automatically: a placeholder is shown with Show and Download.

Archiving is best suited for attributes whose files are large and rarely opened, and can help lower storage costs when large volumes of files are stored. Viewing or downloading archived files may involve additional costs. For more information, please contact BioT Support.

Notes

  • Archiving applies only to files attached after the setting was saved. Files already on the attribute stay in standard storage and are not archived later.
  • Files smaller than 128 KB are never archived.

Did this page help you?