Skip to content
Partner Developer Portal

What is changing in V2?

The transition to v2 is built around four key themes designed to improve the quality of your analysis:

  • Reduced duplication: Information previously repeated across multiple models has been consolidated into dedicated models, including Patient, Organisation, User In Role and Codeable Concept. Some information must therefore be obtained through joins rather than directly from individual models.

  • Improved traceability and linking: Additional identifiers, UUIDs, relationship fields and audit information make it easier to link related records and understand their origin and lifecycle.

  • Consistent lifecycle and deletion handling: Deletion indicators, lifecycle metadata and historical record handling have been standardised across the models.

  • Data quality and processing improvements: Processing logic has been updated in areas including patient status, registration, merged-patient handling, record inclusion, timestamps and record linking.

These changes may result in differences to data structures, processing behaviour and analytical outputs when compared with V1. Customers should review the relevant domain documentation to understand the impact on the models they use.

This section covers changes common across all iPCV v2 models, with applicable exceptions and customer actions noted below. Model-specific changes are covered in this documentation for each individual model.

The daily data ingestion process now starts at 11 pm rather than midnight, making updated EMIS Web data available earlier.

A consolidated table shows what changed and when, helping customers track updates.

Action: Customers should review any schedules, pipelines, reports or downstream processes that depend on data refresh timings and update them where required to align with the new ingestion schedule.

Customers should also monitor data availability, validate that systems receive the earlier refresh as expected, and inform relevant teams about the change.

To provide a more consistent experience across iPCV v2 and simplify time-based filtering, metadata and datetime information is now standardised across all flavours.

  • New datetime fields, including transform_datetime and load_datetime, make it easier to identify when data was made available and improve query performance.

  • Ingest time, deletion status and execution date are now consistently represented using _ingest_time, is_deleted and _execution_date, where those columns are exposed.

The transform_datetime column is available across views to show when data was made available in the model. Bulk views that contain _ingest_time also provide an additional formatted load_datetime column for faster filtering and query response, except for MKB-related models. Delta views and MKB-related models have the column removals described below.

Action: Customers should update any queries that rely on previous column names and use the new datetime fields where appropriate, including in filters for improved query performance.

Delta views in iPCV v2 have been simplified to improve ingestion and processing:

  • Delta views now contain a single record representing the latest change within the last 28 days.

  • Additions and updates are both represented as update, while event_type now contains only update or deletion.

  • _ingest_time and is_deleted have been removed from delta views.

  • Delta data is generated at the point of ingestion, making it available sooner.

Action: Customers should:

  • Treat update records as upserts and deletion records as deletes, using event_type. This includes records that are new or missing in the destination.

  • Remove any de-duplication logic previously used for delta processing.

  • Note that delta views contain the latest processed state rather than a complete change history.

  • Use the main incremental tables for access to changes older than 28 days.

To provide a single source of truth for organisation information and reduce maintenance overhead, ODS Code is now managed centrally through the Organisation model.

ODS Code has been removed from all other models. Previously, an ODS Code update required re-modelling millions of rows across multiple models and re-running ETL processes. Centralising the code means only the relevant Organisation record needs updating, reducing data movement, compute costs and Explorer minute consumption.

Action: If ODS Code is required, customers should join the relevant model to Organisation using the organisation key and update any queries, ETL processes or reports that previously referenced ODS Code directly from other models.

Customers should also validate that reports and dashboards now retrieve ODS Code from Organisation.

Example - retrieving ODS Code for a patient:

SELECT
p.emis_patient_id,
p.registration_organisation_id,
o.ods_code
FROM
hive.explorer_ipcv_vanilla.patient_v2 p
JOIN hive.explorer_ipcv_vanilla.organisation_v2 o ON p.registration_organisation_id = o.emis_organisation_id
AND p.organisation = o.organisation;

Timestamp Standardisation and Change Tracking

Section titled “Timestamp Standardisation and Change Tracking”

To improve consistency across iPCV v2 and support more accurate change tracking, datetime fields now use the TIMESTAMP(6) WITH TIME ZONE format. A new transform_datetime column is available across models to indicate when a record was last updated in the model and should be used for change tracking in place of _execution_date where appropriate.

Action: Customers should review downstream datetime parsing and storage to ensure support for TIMESTAMP(6) WITH TIME ZONE.

To improve traceability and preserve relationships between records, deleted records now retain key identifiers and relationship keys while non-key attributes are removed. Deletions can be identified using the is_deleted column in incremental models or event_type = 'deletion' in delta models. This allows customers to continue linking deleted records to related entities while clearly identifying records that have been removed from the source system. For example, if an observation is deleted, consultation_id is still retained to identify the consultation that the observation was linked to.

Action: No customer action is required.

Fields derived from FHIR specifications, such as fhir_patient_active and fhir_registration_type, have been removed from the relevant models.

The FHIR 3.0 mappings used in iPCV were outdated relative to FHIR 5.0 and could misrepresent EMIS Web data, for example by marking acute medication as completed. Removing these fields reduces mapping and governance complexity and keeps integrations and analysis aligned with EMIS-native logic rather than legacy FHIR mappings.

Action: Update ETL pipelines, queries and transformations to remove references to these fields. Use EMIS-native identifiers and the alternatives below. Column names may vary by flavour.

Data Model FHIR fields (column names as they appear in your flavors) Alternate EMIS Field
Patient fhir_patient_active Customers should use the EMIS is_registered and is_active flags, as these provide the relevant registration and active status information.
Patient fhir_registration_type Customers should use the EMIS patient_type field, as this contains the same information and was the source for the FHIR registration type.
Allergy fhir_status No alternate field is provided, as this was a hard-coded field and did not add value. Customers do not need to replace it
Allergy fhir_category Use category field instead as it serves the same purpose as the one being deprecated
Allergy fhir_episodicity There is no direct alternate for fhir_episodicity field. Customers should use the existing emis_episodicity field, as fhir_episodicity was derived from it
Medication intent / fhir_medication_intent Replacement guidance is not yet documented.
Medication agency / nhs_prescribing_agency No alternate EMIS field is available for these, as they were hard coded and not adding value. Customers do not need to use a replacement field
Medication type / nhs_prescription_type Customers should use the emis_prescription_type field, as the FHIR prescription type was derived from this field
Medication status / fhir_medication_status Customers should use the emis_drug_status field, as FHIR medication status was derived from this. If issue record status is needed, it can be derived from the cancellation flag in EMIS records
Observation interpretation_code / fhir_interpretation_code Customers should use the EMIS abnormal_flag field, as the FHIR interpretation code was derived from this field and there is no direct replacement
Problem fhir_problem_significance_description / fhir_significance Customers should use the EMIS significance column, as this provides the same information and was the source for the FHIR significance fields
Problem relation / fhir_relation Customers should use the EMIS relation field, as it provides the same information and was the source for the FHIR relation fields
Problem status / fhir_status Customers should use the EMIS problem_status field, as it provides the same information and was the source for the FHIR status field
Referral nhs_priority_description Customers should use the EMIS urgency field, which provides the same information and was the source for the NHS priority description
Referral priority / nhs_priority Customers should use the EMIS urgency field, as both priority and NHS priority were derived from urgency and it provides the same information
Referral source / nhs_source Customers should use the EMIS direction field, as source was derived from direction and provides the same information

For details on patient registration and active status, see the Patient model documentation.

Only the latest version of drug codes is displayed in iPCV v2. MKB version information is managed internally, and queries automatically use the current authoritative version.

The mkb_version, _record_version, _mkb_version and _ingest_time columns have been removed from the affected MKB-related models. In iPCV v1, only the latest version was provided, but the mkb_version column also indicated which version that was. In v2 this information is no longer exposed, which simplifies the schema.

Action: Review queries and applications that reference these removed columns and remove their version-selection logic.

Consolidation of patient filter and opt-out columns

Section titled “Consolidation of patient filter and opt-out columns”

All patient-level filter and opt-out flags are now held exclusively in the Patient model, rather than being duplicated across clinical event models.

Affected models:

  • Observation
  • Allergy
  • Immunisation
  • Consultation (Encounter)
  • Medication
  • Recall (Diary)

The Observation Opt-Out view, available in some iPCV v1 flavours, is no longer available in any iPCV v2 flavour. Its equivalent filtering behaviour is now achieved by joining to Patient.

Columns removed from clinical models:

  • confidential_patient_flag
  • dummy_patient_flag
  • opt_out_93c1_flag
  • opt_out_9nd19nu09nu4_flag
  • opt_out_9nd19nu0_flag
  • opt_out_9nu0_flag
  • non_regular_and_current_active_flag
  • regular_and_current_active_flag
  • regular_current_active_and_inactive_flag
  • regular_patient_flag
  • sensitive_patient_flag

Record-level confidential_flag and sensitive_flag are retained in clinical models because they describe individual records, not patient-level status.

Centralising patient flags provides one authoritative source, reduces processing costs and schema complexity, and avoids conflicting filter data when a patient’s opt-out status changes. Patient flags use current-state columns, such as is_regular rather than was_regular. Join to Patient for filtering instead of maintaining duplicate patient attributes in each model.

Action: Customers should:

  • Update queries and ETL processes that previously read patient filter columns directly from clinical models to join to patient_v2 instead.
  • Keep the distinction between patient-level flags and the retained record-level confidential_flag and sensitive_flag.
  • Refer to the Patient model documentation for details of patient opt-out flags and their meanings.

Note: The Patient model in v2 does not include patients that are not in scope. Only the Patient Scope model in v2 will provide patients that are not in scope. Replace any use of the Observation Opt-Out view with Patient Scope joins. The Patient Scope model uses the action_to_take column, with the values include and exclude, to identify patients that are in and out of scope. See the Patient Scope model for more information.