LogoLogo
  • Introduction
  • Features
  • Getting Started
    • Cortex User Guide
      • Organizations
      • Log in
      • Generate an API key
      • Make your first API request
      • Configure the org settings
      • Set up a data model
        • Create custom objects
        • Add custom properties
      • One-to-many relationships
      • Read and write data
      • Making a Request
      • Handling responses
      • Authentication
      • Two-factor authentication
      • Set third-party cookies
      • Connections
      • Upload files
      • Cortex iOS
      • Get started with Swift
      • Cortex service accounts
      • Cortex developer tools
      • Automated Account Notifications
  • Cortex API
    • Overview
    • Objects
      • Objects Overview
      • Organization
      • Account
      • Connections
      • Notifications
      • Stats
      • Logs
      • Export
      • Events
      • Room
    • Object Definition
      • Object Properties
        • Any
        • Binary
        • Boolean
        • Date
        • Document
        • File
        • Geometry
        • List
        • Number
        • ObjectId
        • Reference
        • String
    • Object Types
    • Access Control
    • Querying
      • Query Operators
      • Property Selection
      • Property Access
    • Aggregating
      • Aggregation Operators
    • Scripting
      • Script Types
      • Script Limits
      • ObjectId
      • CortexObject
        • Accounts
        • Views
      • Cursors
      • Operations
      • Script Modules
        • API Module
        • Base64 Module
        • Cache Module
        • Connections Module
        • Console Module
        • Consts Module
        • Counters Module
        • Crypto Module
        • HTTP Module
        • Logger Module
        • Notifications Module
        • Request Module
        • Response Module
        • SAML Module
        • Schemas Modules
        • Script Module
        • Session Module
        • Util.id Module
        • Util.ip Module
        • Util.paths Module
        • XML Module
        • Developer
        • Config
        • Renderer
        • SFTP
        • FTP
        • DB
          • Cursors
          • Driver
      • Static Methods
        • Accounts
        • Views
        • Cursors
      • Audit
      • Environments
      • HTTP Driver
      • Notifications
        • Firebase Cloud Messaging (FCM)
        • Tencent Push Notification Service Configuration
      • Televisit
      • Transforms
      • Localization
      • Available Javascript Libraries
    • Decorators
      • Runtime
        • Acl
        • As
        • Log
        • Profile
      • Static
        • Env
        • Job
        • Object
        • On
        • Policy
        • Route
        • Transform
        • Trigger
    • Expressions
      • Primer
      • Pipelines
      • Operators
      • Accumulators
      • Variables
      • Conditionals
      • Transforms
      • Triggers
      • On
      • Events
    • Faults
      • Fault Reference
  • Releases
    • Cortex Release Notes
      • Cortex API 2.28.3 (R3.4.6)
      • Cortex API 2.28.1 (R3.4.3)
      • Cortex API 2.27.2 (R3.4.1)
      • Cortex API 2.27.1 (R3.3.5)
      • SQL DB Connector 1.3.4 (R3.3.3)
      • Cortex API 2.26.2 (R3.3.1)
      • Cortex API 2.26.1 (R3.2.2)
      • Cortex API 2.26.0 (R3.2.1)
      • SQL DB Connector 1.3.3
      • Cortex API 2.25.0 (R3.1.1)
      • SQL DB Connector 1.3.2 (R3.1.0)
      • Cortex API 2.24.2 (R3.0.2)
      • SQL DB Connector 1.3.1 (R3.0.0)
      • Cortex API 2.24.1 (R2.3.3)
      • Cortex API 2.24.0 (R2.3.2)
      • SQL DB Connector 1.3.0 (R2.3.0)
      • Cortex API 2.23.0 (R2.2.4)
      • SQL DB Connector 1.2.0 (R2.2.0)
      • Cortex API 2.22.2 (R2.1.2)
      • Cortex API 2.22.1 and SQL DB Connector 1.1.1 (R2.0.1)
      • Cortex API 2.22.0
      • Cortex API 2.21.3
      • Cortex API 2.21.2
      • Cortex Web 4.16.0
      • Cortex Web 4.15.1
      • Cortex API 2.20.1
      • Cortex Web 4.14.0
      • Cortex Renderer 1.3.3
      • Cortex API 2.19.4
      • Cortex API 2.19.3 and Cortex Web 4.13.1
      • Cortex Renderer 1.3.2
      • Cortex API 2.19.1
      • Cortex API 2.18.0
      • Cortex API 2.17.6
      • Cortex API 2.17.5
      • Cortex API 2.17.4
      • Cortex API 2.17.3
      • Cortex API 2.17.2
      • Cortex API 2.17.1
      • Cortex API 2.16.0
      • Cortex API 2.15.9
      • Cortex API 2.15.8-1
      • Cortex 2.15.8
      • Cortex API 2.18.1
      • Cortex API 2.16.1
      • Cortex Renderer 1.3.1
      • Cortex Renderer 1.3.0
      • Cortex Renderer 1.2.2
      • Cortex Renderer 1.2.1
      • Cortex Renderer 1.2.0
    • Third-Party License Attribution

© 2025 Medable, Inc. All rights reserved.

On this page
  • Create custom properties
  • Create a Patient property
  • Create a Date property
  • Create an Rx property
  • Create additional properties

Was this helpful?

  1. Getting Started
  2. Cortex User Guide
  3. Set up a data model

Add custom properties

Last updated 3 years ago

Was this helpful?

Create custom properties

Custom properties can be added to standard objects (such as the Account object) and to custom objects like the Prescription object.

You can add a custom property from an object's detail view:

  1. Select Settings > Objects on the left-hand menu.

  2. Select the label of an object you'd like to view.

  3. Scroll down to the Custom Properties pane and click New Property.

  4. On the Create Property screen, you can fill out:

    • Property Label: Enter the label for your property that will be displayed in the UI.

    • Property Name: Enter the API name for your property.

    • Property Type: Select the type of property to create. For more information on property types, see primitive types in the API documentation.

    • Property Access: Select the access levels that users and roles have to this property.

  5. Click Create Property. The Create Property screen is displayed.

Since we're creating a Prescription object, we'll need to create a number of properties to represent a patient's prescription. The following table shows a few properties that we'll need to create:

Label

Name

Type

Description

Date

c_date

Date

Date of the prescription

Dispense

c_dispense

Number

Amount to dispense per refill

Patient

c_patient

Reference

Reference to the patient account

Provider

c_provider

Reference

Reference to the provider account

Refills

c_refills

Number

Number of refills

Rx

c_rx

String

Prescription details

Create a Patient property

First, we'll create the Patient property.

  1. On the Create Property screen, select Reference from the Property Type list. More options particular to the reference property type will be displayed.

  2. For Source Object, select Account. We want to relate the prescription to the patient's account record.

  3. For Required Access, select Connected. This means that whoever is creating the prescription will need to have at least that level of access to the patient's account record.

  4. For Expandable, leave it as selected.

  5. For Grant Access, select Read.

  6. Check Indexed. This will allow us to query prescriptions by patient account \_id.

  7. Click Create Property once the property has been configured.

After creating the Patient property, you will see it listed under Custom Properties of the object's detail view.

Create a Date property

Next, we'll create the Date property.

  1. On the Create Property screen, select Date as the property type.

  2. Check Date Only, as this does not need to be a date-time property.

  3. Check Indexed so that we can query prescriptions by date.

  4. Click Create Property once the date property has been configured.

Create an Rx property

Next, we'll create the Rx property. This time we will:

  1. On the Create Property screen, select String as the property type.

  2. Check Indexed.

  3. Enter a value in the Max Length field that is appropriate.

  4. Click Create Property once the property has been configured.

Create additional properties

Finally, create a few more properties to complete the object.

Create Patient Property
Reference Property