Hi,
I have another problem with assumedValue of the DvBoolean, may be you can help me out.
If I've this (I mean "no assumed value"):
DV_BOOLEAN matches {
value matches {True,
False} }
The assumed value of this node in the AOM instance is "false" and I think it must be a "null" assumed value.
Is it the spected behavior? Is correct to have a null assumed value for a CBoolean constraint? Any ideas?
Thanks a lot, Pablo Pazos Gutiérrez.
From: pazospablo@hotmail.com To: ref_impl_java@openehr.org Subject: RE: Wrong assumed value for DvBoolean in Java Date: Sat, 3 Oct 2009 13:19:33 -0300
Hi Sebastian,
Thanks for testing this issue. I have all files updated from http://www.openehr.org/svn/ref_impl_java/TRUNK/, and the maven build generates the XXX.1.0.2-SNAPSHOT.jar that I'm using. So I think this may be a new bug, because in the XXX.1.0.1.jar version of the java ref impl you get the correct value.
For now I'll grab the 1.0.1 jars to continue with my implementation.
Thanks a lot!
Cheers, Pablo Pazos Gutierrez http://pablo.swp.googlepages.com/
Date: Tue, 22 Sep 2009 10:22:25 +0200 From: sebastian.garde@oceaninformatics.com To: ref_impl_java@openehr.org Subject: Re: Wrong assumed value for DvBoolean in Java
Hi Pablo,
your archetype gives me this output below which I believe is correct.
If you are building it from the source make sure you have updated all
files before using maven.
Otherwise try to download the jar from here:
http://www.openehr.org/wiki/display/projects/Java+Project+Download
Rong, the Integration server at http://openehr.cambiosys.org/continuum
(linked from http://www.openehr.org/projects/java.html ) doesn't seem
to be available at present?
Cheers
Sebastian
org.openehr.am.archetype.constraintmodel.CComplexObject@8f4fb3[
attributes=[org.openehr.am.archetype.constraintmodel.CSingleAttribute@29428e[
rmAttributeName=value
existence=REQUIRED
children=[org.openehr.am.archetype.constraintmodel.CPrimitiveObject@1d04653[
item=org.openehr.am.archetype.constraintmodel.primitive.CBoolean@1ad77a7
assumedValue=true
rmTypeName=DvBoolean
occurrences=org.openehr.rm.support.basic.Interval@126804e[lower=1,lowerInclude
d=true,upper=1,upperIncluded=true]
nodeID=<null>
parent=<null>
anyAllowed=false
path=/data[at0001]/items[at0002]/value/value
]]
anyAllowed=false
path=/data[at0001]/items[at0002]/value/value
]]
assumedValue=<null>
rmTypeName=DV_BOOLEAN
occurrences=org.openehr.rm.support.basic.Interval@d2906a[lower=1,lowerIncluded
=true,upper=1,upperIncluded=true]
nodeID=<null>
parent=<null>
anyAllowed=false
path=/data[at0001]/items[at0002]/value
]
pablo pazos wrote:
Hi
Sebastian,
Of course, here's the archetype.
The parser I'm using is: adl-parser-1.0.2-SNAPSHOT.jar, I don't know if
it's the latest.
I'll try to parse your archetype to see what happens.
Cheers,
Pablo Pazos Gutierrez.
Date: Mon, 21 Sep 2009 18:04:53 +0200
From: sebastian.garde@oceaninformatics.com
To: ref_impl_java@openehr.org
Subject: Re: Wrong assumed value for DvBoolean in Java
Hi Pablo,
the result you get sounds wrong, but I cannot reproduce it.
I created the test archetype below and got the correct results for both
DV_BOOLEANs in it.
Can you share your archetype that fails (and also make sure you are
using the latest Parser)?
Cheers
Sebastian
org.openehr.am.archetype.constraintmodel.CComplexObject@8f4fb3[
attributes=[org.openehr.am.archetype.constraintmodel.CSingleAttribute@29428e[
rmAttributeName=value
existence=REQUIRED
children=[org.openehr.am.archetype.constraintmodel.CPrimitiveObject@1d04653[
item=org.openehr.am.archetype.constraintmodel.primitive.CBoolean@1ad77a7
assumedValue=true
rmTypeName=DvBoolean
occurrences=org.openehr.rm.support.basic.Interval@126804e[lower=1,lowerInclude
d=true,upper=1,upperIncluded=true]
nodeID=<null>
parent=<null>
anyAllowed=false
path=/data[at0001]/events[at0002]/data[at0003]/items[at0004]/value/value
]]
anyAllowed=false
path=/data[at0001]/events[at0002]/data[at0003]/items[at0004]/value/value
]]
assumedValue=<null>
rmTypeName=DV_BOOLEAN
occurrences=org.openehr.rm.support.basic.Interval@d2906a[lower=1,lowerIncluded
=true,upper=1,upperIncluded=true]
nodeID=<null>
parent=<null>
anyAllowed=false
path=/data[at0001]/events[at0002]/data[at0003]/items[at0004]/value
]
org.openehr.am.archetype.constraintmodel.CComplexObject@72ffb[
attributes=[org.openehr.am.archetype.constraintmodel.CSingleAttribute@1df38fd[
rmAttributeName=value
existence=REQUIRED
children=[org.openehr.am.archetype.constraintmodel.CPrimitiveObject@16a786[
item=org.openehr.am.archetype.constraintmodel.primitive.CBoolean@1507fb2
assumedValue=true
rmTypeName=DvBoolean
occurrences=org.openehr.rm.support.basic.Interval@1efb836[lower=1,lowerInclude
d=true,upper=1,upperIncluded=true]
nodeID=<null>
parent=<null>
anyAllowed=false
path=/data[at0001]/events[at0002]/state[at0005]/items[at0006]/value/value
]]
anyAllowed=false
path=/data[at0001]/events[at0002]/state[at0005]/items[at0006]/value/value
]]
assumedValue=<null>
rmTypeName=DV_BOOLEAN
occurrences=org.openehr.rm.support.basic.Interval@126e85f[lower=1,lowerInclude
d=true,upper=1,upperIncluded=true]
nodeID=<null>
parent=<null>
anyAllowed=false
path=/data[at0001]/events[at0002]/state[at0005]/items[at0006]/value
]
Archetype:
archetype (adl_version=1.4)
openEHR-EHR-OBSERVATION.testassumedvalue.v1
concept
[at0000] -- Test assumed value
language
original_language = <[ISO_639-1::en]>
description
original_author = <
["name"] = <"">
>
details = <
["en"] = <
language = <[ISO_639-1::en]>
purpose = <"test">
use = <"">
misuse = <"">
>
>
lifecycle_state = <"Initial">
other_contributors = <>
other_details = <
["references"] = <"">
["MD5-CAM-1.0.1"] = <"0B09C5A77713C376B458BDB09F83F018">
>
definition
OBSERVATION[at0000] matches { -- Test assumed value
data matches {
HISTORY[at0001] matches { -- Event Series
events cardinality matches {1..*; unordered} matches {
EVENT[at0002] occurrences matches {0..1} matches
{ -- Any event
data matches {
ITEM_TREE[at0003] matches { -- Tree
items cardinality matches {0..*;
unordered} matches {
ELEMENT[at0004] occurrences matches
{0..1} matches { -- New element
value matches {
DV_BOOLEAN matches {
value matches {True,
False; True}
}
}
}
}
}
}
state matches {
ITEM_TREE[at0005] matches { -- Tree
items cardinality matches {0..*;
unordered} matches {
ELEMENT[at0006] occurrences matches
{0..1} matches { -- New element
value matches {
DV_BOOLEAN matches {
value matches {True,
False; True}
}
}
}
}
}
}
}
}
}
}
}
ontology
term_definitions = <
["en"] = <
items = <
["at0000"] = <
text = <"Test assumed value">
description = <"unknown">
>
["at0001"] = <
text = <"Event Series">
description = <"@ internal @">
>
["at0002"] = <
text = <"Any event">
description = <"*">
>
["at0003"] = <
text = <"Tree">
description = <"@ internal @">
>
["at0004"] = <
text = <"New element">
description = <"*">
>
["at0005"] = <
text = <"Tree">
description = <"@ internal @">
>
["at0006"] = <
text = <"New element">
description = <"*">
>
>
>
>
pablo pazos wrote:
Hi,
I think this is a bug in the archetype parser, what do you think?
I've an archetype with this node:
ELEMENT[at0002] occurrences matches {0..1} matches
{ -- Exploracion clinica cervical anormal
value matches {
DV_BOOLEAN matches {
value matches {True, False; True}
}
}
}
So,
with the specs of ADL (adl.pdf page 70: assumed values), True is the
assumed value for the CPrimitiveObject that hodls the DV_BOOLEAN
constraint.
When I printout this node I get (assumed value "false"):
org.openehr.am.archetype.constraintmodel.CPrimitiveObject@1a4ab42[ item=org.openehr.am.archetype.constraintmodel.primitive.CBoolean@1e7aa15 assumedValue=false rmTypeName=DvBoolean occurrences=org.openehr.rm.support.basic.Interval@a7607a[lower=1,lowerIncluded=true,upper=1,upperIncluded=true] nodeID= parent= anyAllowed=false path=/data[at0001]/items[at0002]/value/value ]
Any ideas?
Cheers,
Pablo Pazos Gutierrez
www.simplewebportal.net
check out the rest of the Windows Live™.
More than mail–Windows Live™ goes way beyond your inbox. More
than messages
_______________________________________________ Ref_impl_java mailing list Ref_impl_java@openehr.org http://lists.chime.ucl.ac.uk/mailman/listinfo/ref_impl_java
--
 |
Dr
Sebastian Garde
Senior Developer
Ocean
Informatics
|
Dr. sc.
hum., Dipl.-Inform. Med, FACHI
Skype:
gardeseb
Windows Live™: Keep your life in sync. Check it out!
_______________________________________________ Ref_impl_java mailing list Ref_impl_java@openehr.org http://lists.chime.ucl.ac.uk/mailman/listinfo/ref_impl_java
--
 |
Dr
Sebastian Garde
Senior Developer
Ocean
Informatics
|
Dr. sc.
hum., Dipl.-Inform. Med, FACHI
Skype:
gardeseb
Keep your friends updated— even when you’re not signed in.
Keep your friends updated— even when you’re not signed in.
|