Data model
These are the concepts you meet in the API and in exports. Finnish names are the ones the app shows.
| Concept | In Finnish | Identity | Key fields |
|---|---|---|---|
| Account | organisaatio | UUID | type (personal, organization), gs1_company_prefix |
| Project | projekti | UUID | name, owning account |
| Model | malli | UUID | filename, status (pending, processing, complete, failed), asset_count |
| Element | rakennusosa | Project and IFC GlobalId |
name, ifc_type, predefined_type, storey, building, type_name, properties (IFC property sets) |
| QR code | QR-koodi | UUID, unique giai |
asset_global_id, status (see below), scan_count |
| Inspection | tarkastus | UUID | Element, template, plan, status (not_started, in_progress, completed, failed) |
| Step result | vaiheen tulos | UUID | status (pending, ok, failed, na), fail_reason, inspector, time |
| Inspection plan | tarkastussuunnitelma | UUID | Template, start and due date, status (draft, active, completed, archived) |
| Finding | havainto | UUID (guid) |
BCF topic fields; see the BCF page |
| Photo | kuva | UUID (guid) |
snapshot_key, camera data |
How they connect
Section titled “How they connect”- A project belongs to one account. Users of other accounts can be members of it.
- A model belongs to a project and yields its elements. An element is identified by its IFC
GlobalIdwithin the project. - A QR code is tied to one element at a time, and one element has at most one QR code.
- An inspection is one element’s run through a template. It has a step result per step, and may belong to a plan.
- An inspection and each of its steps are published as BCF topics. See inspections as topics.
Things to keep in mind
Section titled “Things to keep in mind”- QR code status. Inside the app the values are
unassigned,assigned,activeandretired, where a code becomesactiveon its first scan. The public scan URL reports bothassignedandactiveasactive. See QR codes. - The IFC
GlobalIdis not the GIAI. Keep the two apart:GlobalIdidentifies the element in the model and the GIAI identifies the printed label. - Inspections CSV. Its
workflow_statusis the inspection’sstatusabove.not_startedalso marks an element with a QR code and no inspection yet. See Exports.