Constraining coded values

pazospablo@hotmail.com pazospablo at hotmail.com
Wed Jan 14 19:56:27 EST 2015





<!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } -->

    Hi Richard,
Did you considered to create plain codes from  code + subcode? You can use just one data point in the archetype and on the ui keep the parts separared.
Sent from my LG Mobile


------ Original message------From: Kavanagh Richard (HEALTH AND SOCIA...Date: Wed, Jan 14, 2015 8:22 AMTo: For openEHR clinical discussions;Subject:RE: Constraining coded valuesWe are attempting to create an archetype to represent an existing information structure that we use within our Child Screening messages, for BloodSpot results. Consider the following table (abbreviated).  We have a "Status Code" which can take on values of "01"-"09" We then have a "Subcode" which depending on the "Status Code" is either not required, or has a specified set of values it can take on. This only represents one of the "tests" from a collection of 9 possible tests that are part of the English BloodSpot Status codeSuggested term used in child health systemSubcodeDescriptionIDFSN01Specimen received in laboratoryN/ASame value applies to all screening tests (ie relates to the blood spot card)

Additional data items to be provided with this status code and entered into Child Health systems. electronically or by manual means:

• Date sample taken
• Date sample received in laboratory
• Laboratory identifier509581000000105Newborn blood spot specimen received (finding)02(condition screened for) declinedN/A 947891000000100Glutaric aciduria type 1 screening declined (situation)  0201Declined, no history of being screened951861000000101Glutaric aciduria type 1 screening declined, no history of being screened (situation)  0202Declined, screened in UK (as reported by parents) with no evidence of result951881000000105Glutaric aciduria type 1 screening declined, screened in United Kingdom (as reported by parents) with no evidence of result (situation)  0203Declined, screened outside UK with evidence of result951901000000108Glutaric aciduria type 1 screening declined, screened outside United Kingdom with evidence of result (situation)  0204Declined, screened outside UK with no evidence of result951921000000104Glutaric aciduria type 1 screening declined, screened outside United Kingdom with no evidence of result (situation)03(Condition screened for) Repeat/Further sample required  951941000000106Glutaric aciduria type 1 screening, repeat screening with further sample required (finding)  0301Too young for reliable screening951961000000107Glutaric aciduria type 1 screening, too young for reliable screening (finding)  0302Too soon after transfusion (<72 hours)951981000000103Glutaric aciduria type 1 screening, sample taken too soon after blood transfusion (less than 72 hours) (finding)  0303Insufficient sample952001000000103Glutaric aciduria type 1 screening, insufficient sample (finding)  0304Unsuitable sample (blood quality): incorrect blood application952021000000107Glutaric aciduria type 1 screening, unsuitable sample (blood quality): incorrect blood application (finding)  0305Unsuitable sample (blood quality): compressed/damaged952041000000100Glutaric aciduria type 1 screening, unsuitable sample (blood quality): compressed/damaged (finding)  0306Unsuitable sample: day 0 and day 5 on same card952061000000104Glutaric aciduria type 1 screening, unsuitable sample: day 0 and day 5 on same card (finding)  0308Unsuitable sample: NHS number missing/not accurately recorded952081000000108Glutaric aciduria type 1 screening, unsuitable sample: National Health Service number missing/not accurately recorded (finding)  0309Unsuitable sample: Date of sample missing/not accurately recorded952101000000102Glutaric aciduria type 1 screening, unsuitable sample: date of sample missing/not accurately recorded (finding)  0310Unsuitable sample: Date of birth not accurately matched952121000000106Glutaric aciduria type 1 screening, unsuitable sample: date of birth not accurately matched (finding)  0311Unsuitable sample: Expired card used952141000000104Glutaric aciduria type 1 screening, unsuitable sample: expired card used (finding)  0312Unsuitable sample:  > 14 days in transit, too old for analysis952161000000103Glutaric aciduria type 1 screening, unsuitable sample: more than 14 days in transit, too old for analysis (finding)  0313Unsuitable sample: Damaged in transit952181000000107Glutaric aciduria type 1 screening, unsuitable sample: damaged in transit (finding)04(Condition screened for) Not suspectedN/A 951781000000101Glutaric aciduria type 1 not suspected (situation)07(Condition screened for) Not suspected, other disorders follow upN/A 951801000000100Glutaric aciduria type 1 not suspected and other disorders follow up required (situation)08(Condition screened for) Suspected N/A 951831000000106Suspected glutaric aciduria type 1 (situation)09(Condition screened for) Not screened/screening incompleteN/A 952201000000106Glutaric aciduria type 1 not screened for or screening incomplete (finding)  0902All screens: >1 year, too old for screening952221000000102Glutaric aciduria type 1 not screened for or screening incomplete: over 1 year old, too old for screening (finding)  0903Moved out of area952241000000109Glutaric aciduria type 1 not screened for or screening incomplete, moved out of area (finding)  0904Not contactable, reasonable efforts made952261000000105Glutaric aciduria type 1 not screened for or screening incomplete, not contactable, reasonable efforts made (finding)  0905Baby died952281000000101Glutaric aciduria type 1 not screened for or screening incomplete, baby died (finding)  0906Not required, previous  valid result952301000000100Glutaric aciduria type 1 not screened for or screening incomplete, not required, previous valid result (finding)  Regards Richard Kavanagh
Head of Data Standards
Architecture, Standards & InnovationHealth and Social Care Information Centre
Tel : 0113 397 4398
Mob : 07770 644449
Richard.Kavanagh at hscic.gov.uk
http://www.hscic.gov.uk    -----Original Message-----
From: openEHR-clinical [mailto:openehr-clinical-bounces at lists.openehr.org] On Behalf Of Ian McNicoll
Sent: 14 January 2015 10:07
To: For openEHR clinical discussions
Subject: Re: Constraining coded values Hi Richard, Are you able to flesh out the use-case a little more? As Diego has said, cross element constraint is supported by the ADL spec but not by any of the editing tools at the moment.This is not really my field but I think part of the problem is coming up with a rules formalism that can be interpreted by downstream systems In practice I have found that most of the cross-element constraint rules issues are actually required at template level and are cross-archetype ( The classic BMI calculation). This is an area where GDL (http://www.openehr.org/downloads/ds_and_guidelines)is seen as the best solution by most implementers. I am not too familiar with GDL but it might well be possible to use GDL for your purpose IanDr Ian McNicollmobile +44 (0)775 209 7859office +44 (0)1536 414994skype: ianmcnicollemail: ian at freshehr.comtwitter: @ianmcnicoll Director, freshEHR Clinical InformaticsDirector, openEHR FoundationDirector, HANDIHealth CICHon. Senior Research Associate, CHIME, UCL  On 14 January 2015 at 09:31, Kavanagh Richard (HEALTH AND SOCIAL CARE INFORMATION CENTRE) <richard.kavanagh at hscic.gov.uk> wrote:> Hello all,>>>> Within an openEHR archetype we have a scenario where we have two > elements that need to be coded. Element01 and Element02>>>> Element01 can take on values “01”,”02”,”03”,04”>> Element02 can take on a subset of values from superset “A” thru “Z”, > depending on the value of Element01>>>> How do we express this in an Observation archetype? Is it possible>>>> thanks>> Richard Kavanagh> Head of Data Standards> Architecture, Standards & Innovation>> Health and Social Care Information Centre > Richard.Kavanagh at hscic.gov.uk http://www.hscic.gov.uk>>>>> **********************************************************************> **********************************************>> This message may contain confidential information. If you are not the > intended recipient please inform the sender that you have received the > message in error before deleting it.> Please do not disclose, copy or distribute information in this e-mail > or take any action in reliance on its contents:> to do so is strictly prohibited and may be unlawful.>> Thank you for your co-operation.>> NHSmail is the secure email and directory service available for all > NHS staff in England and Scotland NHSmail is approved for exchanging > patient data and other sensitive information with NHSmail and GSi > recipients NHSmail provides an email address for your career in the > NHS and can be accessed anywhere>> **********************************************************************> **********************************************>> _______________________________________________> openEHR-clinical mailing list> openEHR-clinical at lists.openehr.org> http://lists.openehr.org/mailman/listinfo/openehr-clinical_lists.opene> hr.org _______________________________________________openEHR-clinical mailing listopenEHR-clinical at lists.openehr.orghttp://lists.openehr.org/mailman/listinfo/openehr-clinical_lists.openehr.org 
********************************************************************************************************************

This message may contain confidential information. If you are not the intended recipient please inform the
sender that you have received the message in error before deleting it.
Please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents:
to do so is strictly prohibited and may be unlawful.

Thank you for your co-operation.

NHSmail is the secure email and directory service available for all NHS staff in England and Scotland
NHSmail is approved for exchanging patient data and other sensitive information with NHSmail and GSi recipients
NHSmail provides an email address for your career in the NHS and can be accessed anywhere

********************************************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openehr.org/pipermail/openehr-clinical_lists.openehr.org/attachments/20150115/471151ef/attachment-0002.html>


More information about the openEHR-clinical mailing list