Skip to content
Crown InformaticsBook a demo

Platform

One dataset.

The entry form, its rules, its computed values, its reports and the boundary around identifiable data all read the same dataset.

Real lines, from the NELA dataset.

nela-v12.json"pulse_rate": { "kind": "number", "rules": [ … ], "title": "Pulse rate",}

Read by

  • The entry form
  • Its validation
  • The reports
  • The boundary around identifiable data

One dataset, five readers.

1

The entry form

The entry form reads the dataset.

"kind": "number",
"type": "Number",

2

Its validation

Validation runs as the clinician types, from the dataset’s own rules.

"level": "warn",
"op": "outsideRangeValue",

3

Its computed values

Values such as age on arrival are computed from other fields.

yearsBetween(root.date_of_birth, root.admission_datetime)

4

The reports

Dashboards, saved reports, metrics and pages built from your datasets.

"kind": "number",
"title": "Pulse rate",

5

The boundary around identifiable data

Fields that identify a person are flagged in the dataset, not guessed at afterwards.

"pidProtected": true

Type in the form. The dataset answers.

On the left, lines from the NELA dataset, quoted from the file, with every stretch left out marked by an ellipsis. On the right, the things that read it. Change a value and the lines that read it are marked, with their line numbers beside the field. A rule that fires turns amber.

JSON schema: nela-v12.json (EmLap v12), excerpt

  1. {
  2. "admission_datetime": {
  3. "kind": "datetime",
  4. "rules": [
  5. {
  6. "level": "critical",
  7. "message": "Admission date and time is required",
  8. "op": "required",
  9. "type": "builtin"
  10. },
  11. {
  12. "level": "critical",
  13. "message": "Admission date must be on or after 1 April 2025",
  14. "op": "gte",
  15. "other": "2025-04-01",
  16. "type": "builtin"
  17. },
  18. {
  19. "level": "critical",
  20. "message": "Admission date must be before 1 April 2026",
  21. "op": "lt",
  22. "other": "2026-04-01",
  23. "type": "builtin"
  24. },
  25. {
  26. "level": "error",
  27. "message": "Admission date cannot be in the future",
  28. "op": "notFutureDate",
  29. "type": "builtin"
  30. }
  31. ],
  32. …
  33. },
  34. …
  35. "date_of_birth": {
  36. "kind": "date",
  37. "rules": [
  38. {
  39. "level": "error",
  40. "message": "Date of Birth is required",
  41. "op": "required",
  42. "type": "builtin"
  43. },
  44. {
  45. "level": "error",
  46. "message": "Date of Birth must be on or before today",
  47. "op": "notFutureDate",
  48. "type": "builtin"
  49. },
  50. {
  51. "expression": "!root.admission_datetime || yearsBetween(root.date_of_birth, root.admission_datetime) >= 18",
  52. "level": "error",
  53. "message": "Patient must be 18 years or older on arrival",
  54. "type": "expr"
  55. },
  56. …
  57. ],
  58. "title": "Date of Birth",
  59. "ui": {
  60. "type": "Date",
  61. "props": {
  62. "suffix": {
  63. "expression": "yearsBetween(root.date_of_birth, root.admission_datetime) != null ? 'Age on arrival: ' + yearsBetween(root.date_of_birth, root.admission_datetime) + ' years' : ''",
  64. "type": "expr"
  65. }
  66. }
  67. },
  68. "pidProtected": true
  69. },
  70. …
  71. "pulse_rate": {
  72. "kind": "number",
  73. "rules": [
  74. {
  75. "level": "error",
  76. "message": "Pulse is required",
  77. "op": "required",
  78. "type": "builtin"
  79. },
  80. {
  81. "level": "error",
  82. "max": 200,
  83. "message": "Pulse must be between 10 and 200 bpm",
  84. "min": 10,
  85. "op": "rangeValue",
  86. "type": "builtin"
  87. },
  88. {
  89. "level": "warn",
  90. "max": 145,
  91. "message": "BPM is usually between 55 and 145.",
  92. "min": 55,
  93. "op": "outsideRangeValue",
  94. "type": "builtin"
  95. },
  96. …
  97. ],
  98. "title": "Pulse rate",
  99. "ui": {
  100. "type": "Number",
  101. "props": {
  102. "inputAffixes": {
  103. "suffix": {
  104. "text": "bpm"
  105. }
  106. },
  107. …
  108. }
  109. }
  110. },
  111. …
  112. }

Entry form

Age on arrival: 77 years

Read by lines 40 to 41, 46 to 47, 51, 53, 63.

Age on arrival is computed by line 63.

Read by lines 7 to 8, 13 to 15, 20 to 22, 27 to 28.

WarningBPM is usually between 55 and 145.

Read by lines 76 to 77, 82 to 85, 90 to 93.

Firing now: lines 90 to 93.

Illustrative readings

Report

A chart of the pulse field, drawn from records as they arrive.

1055100145200Usual range 55 to 145Your reading: 38

Drawn from the number field declared on line 72.

Identifiable fields

Fields flagged pidProtected stay out of what the assistant is given.

What the team sees

Date of birth
1948-06-02
Pulse rate
38 bpm

What the assistant is given

Date of birth
withheld
Pulse rate
38 bpm

Flagged in this dataset, and withheld from the assistant

  • date_of_birth
  • forename
  • local_patient_id
  • nhs_number
  • postcode
  • surname

Read by line 68.

The excerpt was checked with the Crown dataset validator, which reported it valid. The values you type are not stored. The 140 pulse readings in the chart are illustrative.

Delta

Data collection. Team members create and edit records against the dataset.

Each record gets a record number. Access follows organisation, workspace and team.

  • Create and edit records
  • A record number for each record
  • Access by organisation, workspace and team
  • Validation as the clinician types

Collect data, in detail

Illustrative records

Records, as they arrive

  • R-2620Unit K, Complete
  • R-2197Unit I, Complete
  • R-2076Unit I, Complete
  • R-2648Unit G, Needs review
  • R-2815Unit D, Complete
  • R-2701Unit K, Complete
Illustrative records

Records by value

01020304050Lower valueHigher valueRecords

Pulse

Dashboards, saved reports, metrics and pages built from your datasets.

Reports can be published for people who do not sign in. Ask for a dashboard in plain English.

  • Dashboards and saved reports
  • Metrics and pages
  • Published for people who do not sign in

Report on it, in detail

Ask, without the identifiers.

Ask a question in plain English and get an answer from your own records, within your permissions. Every AI answer streams as it is produced.

Your question

In plain English

Say what you want to know about your records.

The boundary

Identifiable fields stay out

Identifiable fields, as flagged in the dataset, stay out of model prompts, tool results and logs.

The answer

From your own records

Within your permissions, and streamed as it is produced.

Guarded in the database.

Organisation, workspace and team boundaries are enforced by row-level security in the database itself.

A route that forgets a check cannot hand over data, because the database applies the rule as the calling user.

More on trust

Illustrative records

Who is asking

  • R-3831Team A, our organisation
  • R-3299Team A, our organisation
  • R-3199Team A, our organisation
  • R-3073Team A, our organisation
  • R-3210Team A, our organisation
  • R-3457Team B, our organisation
  • R-3069Team B, our organisation
  • R-3876Team B, our organisation
  • R-3559Team B, our organisation
  • R-3621Team C, other organisation
  • R-3691Team C, other organisation
  • R-3332Team C, other organisation

5 of 12 records are returned. A route that forgets a check still cannot hand over the rest.

Audit or survey.

The dataset is the same. The wording changes.

What surrounds it

Bring us your dataset.

Tell us what you collect today.