Skip to content
Skills Library
Data & analytics · Learning & explanation

lsc-data-model

/lsc-data-model

Expert knowledge of the Life Sciences Cloud (LSC) data model concepts. Use when user asks about LSC objects, relationships, or needs help understanding the data architecture. Always verify actual API names with describe_sobject.

Licence
Apache-2.0
Last repository change
27.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Expert knowledge of the Life Sciences Cloud (LSC) data model concepts. Use when user asks about LSC objects, relationships, or needs help understanding the data architecture. Always verify actual API names with describe_sobject.

Original author description

Expert knowledge of the Life Sciences Cloud (LSC) data model concepts. Use when user asks about LSC objects, relationships, or needs help understanding the data architecture. Always verify actual API names with describe_sobject.

How it works

  1. Important Note
  2. Core Data Model Concepts
  3. Key Relationships
  4. OmniStudio Components (Web Only)
  5. Using Tools to Explore
  6. Objects That Require Tooling API or Metadata API (NOT SOQL)
  7. Best Practice
Original SKILL.md headings · 102 lines, 540 words
SKILL.md preview
---
name: lsc-data-model
description: Expert knowledge of the Life Sciences Cloud (LSC) data model concepts. Use when user asks about LSC objects, relationships, or needs help understanding the data architecture. Always verify actual API names with describe_sobject.
---

# LSC Data Model Expert

You are an expert on LSC data model concepts and architecture.

## Important Note

LSC is built on Salesforce Health Cloud and Industry Cloud foundations. Object API names vary by:
- LSC package version
- Customer customizations
- Implementation choices

**Always use `describe_sobject` to verify actual object and field API names in the connected org.**

## Core Data Model Concepts

### Account Hierarchy
- **Accounts** - HCPs (Healthcare Professionals) and HCOs (Healthcare Organizations)
  - Often uses PersonAccount for individuals
- **HealthcareProvider** - **1:1 with Account (PersonAccount).** Each HCP Account has exactly one `HealthcareProvider` record linked via `HealthcareProvider.AccountId`. Do NOT describe this as 1:many.
- **Addresses** - Multiple addresses per account (`ContactPointAddress`)
- **Affiliations** - Relationships between accounts (e.g., doctor to hospital)
- **Account Ratings** - Segmentation and scoring
- **Business Licenses** - Professional licenses and certifications

### Territory Structure
- Uses Salesforce Enterprise Territory Management
- **Territory2** - Territory definitions
- **Territory2Model** - Territory hierarchy model
- Account-to-territory assignments
- User-to-territory assignments

### Visit/Call Model
- **Visit records** - HCP/HCO interactions
- **Product discussions** - Products detailed during visits
- **Samples dropped** - Sample distribution records
- **Attendees** - Additional visit participants

### Sample Management
- **Sample Limits** - Distribution limits per product/template
- **Provider Sample Limits** - Limits applied to specific accounts
- **Sample transactions** - Movement/distribution records
- **Sample inventory** - Rep inventory levels

### Content & Engagement
- **Consent records** - Consent capture and tracking
- **Content/Presentations** - CLM content
- **Activity Plans** - Planning and goals

## Key Relationships

### Account to HealthcareProvider (1:1)
- Each `Account` (PersonAccount / HCP) has exactly **one** `HealthcareProvider` record
- `HealthcareProvider.AccountId` is a lookup back to the Account
- This is a **1:1 relationship** — never 1:many

### Account to Territory
- Accounts assigned to territories
- Users see accounts based on territory membership
- Territory hierarchy controls rollup reporting

### Visit to Account
- Visits link to Account
- Products discussed via junction object
- Samples recorded via junction object

## OmniStudio Components (Web Only)

LSC uses OmniStudio on the **web app only**. OmniStudio components (FlexCards, OmniScripts, DataRaptors, Integration Procedures) are **NOT available in the LSC Mobile app (iPad)**.

- **FlexCards** - Provider Card, Visit Summary (web only)
- **DataRaptors** - Data extraction and transformation
- **OmniScripts** - Multi-step guided processes (web only)
- **Integration Procedures** - Complex orchestrations

## Using Tools to Explore

1. `describe_sobject` - Get actual field names for any object
2. `run_soql` - Query relationships and data
3. `search_lsc_knowledge` - Find documentation on specific features
4. `get_lsc_module_docs` - Get module-specific guidance

## Objects That Require Tooling API or Metadata API (NOT SOQL)

**NEVER use `run_soql` for these — it will fail:**

| Feature | Correct approach |
|---------|-----------------|
| **Compact Layouts** | Tooling API (`sf data query --use-tooling-api`) or `retrieve_metadata` |
| Admin Console settings (`LifeSciConfigRecord`) | `list_admin_settings`, `update_admin_setting` |
| DB Schema records (`LifeSciConfigFieldValue`) | `list_db_schema`, `update_db_schema` |
| Quick Actions / Custom Actions | `list_lsc_actions`, `create_quick_action`, etc. |
| Page Layouts | `retrieve_metadata` / `deploy_metadata` |

## Best Practice

When helping with data model questions:
1. Explain the conceptual model from documentation
2. Use `describe_sobject` to find actual API names
3. Help construct queries with verified field names

Versions

The database has no other skills named lsc-data-model.

Database snapshot: 13.11.2026 · package version 6577b890a896 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100salesforce-query
    Helps construct and execute SOQL queries against Life Sciences Cloud (LSC) orgs. Use when user needs to query data, check configurations, or explore the LSC data model in their Salesforce org.
  • 95lsc-demo-data-loading
    Guides loading demo data into Life Sciences Cloud (LSC) orgs. Covers territory hierarchies, accounts (HCO/HCP), healthcare providers, contact points, business licenses, territory assignments, PATI/PATS records, and therapy-area scenarios. Use when user asks about creating demo…
  • 100life-sciences-fieldsalesrep-coordinate
    Use this skill to run the full end-to-end Life Sciences Cloud setup workflow for field sales rep in sequence. Trigger when the user says 'set up Life Sciences Cloud end to end', 'run the full LSC setup', 'orchestrate Life Sciences Cloud configuration', 'complete LSC setup',…
  • 100life-sciences-territory-configure
    Use this skill to create and activate a Territory Type, Territory Model, and Territories for Life Sciences Cloud. Trigger when the user says 'set up territories', 'create territory model', 'configure territory hierarchy for Life Sciences', 'territory setup for LSC', or 'create…
  • 94life-mean
    Use when working on the Life_mean synthetic data lab.
  • 100snowflake-expert
    Expert-level Snowflake data warehouse platform, virtual warehouses, data sharing, streams, tasks, and SQL optimization. Use when the user mentions data warehouse, SQL, analytics, or cloud, or when the task involves Architecture and Virtual Warehouses, Database Objects and…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.