1 Towards a Unified Representation: Representing HL7 and SNOMED in OWL Alan Rector 1 & Tom Marley 2...

24
Towards a Unified Representation: Towards a Unified Representation: Representing HL7 and SNOMED in OWL Representing HL7 and SNOMED in OWL Alan Rector Alan Rector 1 & Tom Marley & Tom Marley 2 1 Information Management Group / Bio Health Informatics Information Management Group / Bio Health Informatics Forum Forum Department of Computer Science, University of Manchester Department of Computer Science, University of Manchester 2 Salford Health Informatics Research, University of Salford Health Informatics Research, University of Salford Salford With the support of NHS Connecting for Health With the support of NHS Connecting for Health [email protected] [email protected] [email protected] [email protected] www.co-ode.org., protege.stanford.org www.co-ode.org., protege.stanford.org www.clinical-escience.org www.clinical-escience.org Open GALEN

Transcript of 1 Towards a Unified Representation: Representing HL7 and SNOMED in OWL Alan Rector 1 & Tom Marley 2...

Page 1: 1 Towards a Unified Representation: Representing HL7 and SNOMED in OWL Alan Rector 1 & Tom Marley 2 1 Information Management Group / Bio Health Informatics.

1

Towards a Unified Representation:Towards a Unified Representation:Representing HL7 and SNOMED in OWLRepresenting HL7 and SNOMED in OWL

Alan RectorAlan Rector11 & Tom Marley & Tom Marley22

11Information Management Group / Bio Health Informatics ForumInformation Management Group / Bio Health Informatics ForumDepartment of Computer Science, University of ManchesterDepartment of Computer Science, University of Manchester

22Salford Health Informatics Research, University of SalfordSalford Health Informatics Research, University of Salford

With the support of NHS Connecting for HealthWith the support of NHS Connecting for Health

[email protected] [email protected] [email protected]@cs.man.ac.uk

www.co-ode.org., protege.stanford.orgwww.co-ode.org., protege.stanford.orgwww.clinical-escience.orgwww.clinical-escience.org

OpenGALEN

Page 2: 1 Towards a Unified Representation: Representing HL7 and SNOMED in OWL Alan Rector 1 & Tom Marley 2 1 Information Management Group / Bio Health Informatics.

2

interface

interface

interface

Concept Model(Ontology)

Information Model(Patient Data Model)

Inference Model(Guideline Model)

Dynamic Guideline Knowledge (2b)

Static Domain Knowledge (2a)

Patient Specific Records (1)

Page 3: 1 Towards a Unified Representation: Representing HL7 and SNOMED in OWL Alan Rector 1 & Tom Marley 2 1 Information Management Group / Bio Health Informatics.

3

Two Related GoalsTwo Related Goals• A uniform representation with for SNOMED nested in HL7 RIM

– Sound and sufficiently expressive• Supports the constraints in the specified RMIMs (by NHS not us)

– All those formally expressed in UML/RMIM– The “Grey Boxes”

– Allows RMIMs/CMETs to be factored into reusable submodels • Support uniform policies across domains

– Closely related to Template / Archetype

– Includes a principled account of negation & flavours of NULL– Leads to suitable standard forms for querying for decision support

• Supports the development process & provides basis for tooling– Allows natural transformation to MIF/XML formats– Allows arbitrary indexing of reusable submodelss

• Lets developers find the appropriate submodels / “Recipes”

– Supports validation and conformance testing– Supports automatic documentation– Is scalable and extensible

Page 4: 1 Towards a Unified Representation: Representing HL7 and SNOMED in OWL Alan Rector 1 & Tom Marley 2 1 Information Management Group / Bio Health Informatics.

4

HypothesesHypotheses

• By the use of a flexible and expressive formalism, it will be possible to publish constraints from multiple sources in a single artefact/document, and in a common form.

• A single publication in a common form will support– Concept development

– Message & submessage development

– Maintaining policies / Prevention of inconsistencies

– Testing & automated production of test tools

– Documentation & automated generation of documentation

– The rules can be used by message generation systems to ensure messages are correctly formed

Page 5: 1 Towards a Unified Representation: Representing HL7 and SNOMED in OWL Alan Rector 1 & Tom Marley 2 1 Information Management Group / Bio Health Informatics.

5

ExperimentsExperiments

• Represent Request for Medication Administration & related messages from NHS “Connecting for Health” set ( MIM )– Capturing all information in the “Grey Boxes” on

the RMIMs• Literal interpretation of CfH documentation• Plus some potential additional demonstration constraints• Plus additional experiments in ‘factoring’

• All performed with generic tools (Protégé/OWL)– Aim to identify requirements for specialised tools

Page 6: 1 Towards a Unified Representation: Representing HL7 and SNOMED in OWL Alan Rector 1 & Tom Marley 2 1 Information Management Group / Bio Health Informatics.

6

Summary of ResultsSummary of Results• Captured combined HL7 and SNOMED

– (within the framework of the CfM templates)

• Captured all of the information in the ‘grey boxes’ constraints on the RMIMs– Except for one ill defined constraint including “elsewhere”

• Factoring into consistent submodels successful technically

• Representation appears scalable– Required capturing the context model from SNOMED

• but only headings from domain model

– Appears that most message/submodel domains could be handled separately– Classification time modest

• Were able to take advantage of generic tools– Although extensive specialisation would be required to make it easy

• Hypertext report (here)

Page 7: 1 Towards a Unified Representation: Representing HL7 and SNOMED in OWL Alan Rector 1 & Tom Marley 2 1 Information Management Group / Bio Health Informatics.

7

The Hypertext ReportThe Hypertext Report

• NotNot NHS policy– A feasibility study only

• A draft– Still evolving with discussions

• A specific experiment against Connecting for Health specifications (formally National Programme for IT NPfIT)

– Some oddities with respect to current HL7/SNOMED/Terminfo practice

– Deliberately literal as fixed point for an experiment

• To be available RSN

here

Page 8: 1 Towards a Unified Representation: Representing HL7 and SNOMED in OWL Alan Rector 1 & Tom Marley 2 1 Information Management Group / Bio Health Informatics.

8

MethodsMethods

Page 9: 1 Towards a Unified Representation: Representing HL7 and SNOMED in OWL Alan Rector 1 & Tom Marley 2 1 Information Management Group / Bio Health Informatics.

9

Representing HL7 in OWL:Representing HL7 in OWL:Basic IntuitionsBasic Intuitions

• Use the property hierarchy – all links in one direction in both HL7 and SNOMED have a

common super-property (demo:has_item)

• Represent required relations as existential restrictions– “Unfold” along the existential restrictions to get MIF/XML type

view

• Represent ‘clones’ as subclasses

• Use namespaces to modularise– e.g. “npfit:”, “snct:”, “demo:”, etc.

• Represent HL7 data structures for SNOMED rather than SNOMED per se

• Use ‘existential tree’ to show class hierarchy and XML-like containment hierarchy simultaneously

Page 10: 1 Towards a Unified Representation: Representing HL7 and SNOMED in OWL Alan Rector 1 & Tom Marley 2 1 Information Management Group / Bio Health Informatics.

10

Subclass & Containment HierarchiesSubclass & Containment Hierarchies

Page 11: 1 Towards a Unified Representation: Representing HL7 and SNOMED in OWL Alan Rector 1 & Tom Marley 2 1 Information Management Group / Bio Health Informatics.

11

Or as editable graphic Or as editable graphic

Page 12: 1 Towards a Unified Representation: Representing HL7 and SNOMED in OWL Alan Rector 1 & Tom Marley 2 1 Information Management Group / Bio Health Informatics.

12

Or as Generated Documentation (1)Or as Generated Documentation (1)

Page 13: 1 Towards a Unified Representation: Representing HL7 and SNOMED in OWL Alan Rector 1 & Tom Marley 2 1 Information Management Group / Bio Health Informatics.

13

Property hierarchy RequiredProperty hierarchy RequiredCommonsuper-propertyfor expansion

RIM Associations

RIM Attributes

CD Value type /SNOMED attributes

Page 14: 1 Towards a Unified Representation: Representing HL7 and SNOMED in OWL Alan Rector 1 & Tom Marley 2 1 Information Management Group / Bio Health Informatics.

14

Other Details in reportOther Details in report

• Associations & attributes

• Domain, ranges, and value sets

• Optional/Required/Mandatory

Page 15: 1 Towards a Unified Representation: Representing HL7 and SNOMED in OWL Alan Rector 1 & Tom Marley 2 1 Information Management Group / Bio Health Informatics.

15

Simple RulesSimple RulesDefinitions + Constraints = RuleDefinitions + Constraints = Rule

Definition/Premise: IF mood code RQO

THEN Constraint: Must have status code from these

necessary necessary

& sufficient& sufficient

necessary necessary

Page 16: 1 Towards a Unified Representation: Representing HL7 and SNOMED in OWL Alan Rector 1 & Tom Marley 2 1 Information Management Group / Bio Health Informatics.

16

Full version of a Defined Class as a Full version of a Defined Class as a rulerule

IF a request for administration has an Act code fitting the npfit stopped pattern

THEN it must satisfy these constraints

Page 17: 1 Towards a Unified Representation: Representing HL7 and SNOMED in OWL Alan Rector 1 & Tom Marley 2 1 Information Management Group / Bio Health Informatics.

17

Mutual constraint rulesMutual constraint rulesA medication Act must have a Medication A medication Act must have a Medication

Consumable & vice versaConsumable & vice versa

Any class indexed by medication

Any class with a participation Medication_consumable (participation)

Is is the same as & vice versa

Page 18: 1 Towards a Unified Representation: Representing HL7 and SNOMED in OWL Alan Rector 1 & Tom Marley 2 1 Information Management Group / Bio Health Informatics.

18

Also serve for factoring into Also serve for factoring into submodelssubmodels

Page 19: 1 Towards a Unified Representation: Representing HL7 and SNOMED in OWL Alan Rector 1 & Tom Marley 2 1 Information Management Group / Bio Health Informatics.

19

Put the factors together, classify, andPut the factors together, classify, andall the key constraints are inheritedall the key constraints are inherited

Indexing factorsWhat the developerneeds to know to search

Inherited constraints(DL syntax)

Page 20: 1 Towards a Unified Representation: Representing HL7 and SNOMED in OWL Alan Rector 1 & Tom Marley 2 1 Information Management Group / Bio Health Informatics.

20

Run classifier to get a list of all the Run classifier to get a list of all the existing CMETsexisting CMETs

to be used as examples/templatesto be used as examples/templates

Page 21: 1 Towards a Unified Representation: Representing HL7 and SNOMED in OWL Alan Rector 1 & Tom Marley 2 1 Information Management Group / Bio Health Informatics.

21

Unit TestsUnit TestsChecks on what should or should not workChecks on what should or should not work

• Test whether constraints work– unsatisfiable ‘probe classes’

• Ensure that constraints are not too stringent – Satisfiable ‘probe classes’

• Run report that all probe classes come out as expected

Page 22: 1 Towards a Unified Representation: Representing HL7 and SNOMED in OWL Alan Rector 1 & Tom Marley 2 1 Information Management Group / Bio Health Informatics.

22

Strengths & WeaknessesStrengths & Weaknesses

• Strengths– A single representation for HL7 and SNOMED

• Based on widely used standard - natural links to Semantic Web

– Automatic organising, indexing & merging of submodels– “Rules” can be mutual constraints– Expressed all of the constraints in the examples– A style that captures both meaning and expansion– Clearly defined semantics

• Weaknesses– Potential complex constraints require additional rule language

• … but no cases encountered in feasibility study

– Generic tooling cumbersome - specialist tooling, debuggers required– Handing of numbers and strings poor but under revision– Relatively unfamiliar technology

• But becoming widely used

Page 23: 1 Towards a Unified Representation: Representing HL7 and SNOMED in OWL Alan Rector 1 & Tom Marley 2 1 Information Management Group / Bio Health Informatics.

23

What’s special about OWLWhat’s special about OWL

• A standard syntax for generic Description logic technology– Widely used for schema unification & harmonisation

• Defined classes and automatic classification– Automatic organisation / indexing of submodels– Constraints/Rules of the form:

Any submodel including a fragment of this form MUST satisfy these constraints

– Strong semantics - lack of ambiguity

• More expressive constraints than XMLSchema or RDF(S), UML, etc.

Page 24: 1 Towards a Unified Representation: Representing HL7 and SNOMED in OWL Alan Rector 1 & Tom Marley 2 1 Information Management Group / Bio Health Informatics.

24

SummarySummary

• A uniform representation is possible– A recipe for translation is available\– Almost certainly scalable

• But further confirmation needed

• Most constraints/rules including mutual constraints can be represented naturally– Complexities possible in theory did not arise in practice

• But will probably need to be dealt with eventually

• Factoring into submodels effective– Indexing and checking of submodels natural

• A major tooling effort is required to make it easy– But tied into a broader standards effort where tools are being

produced