RE: Wrong assumed value for DvBoolean in Java
|
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, --
Windows Live™: Keep your life in sync. Check it out! |
Attachment:
openEHR-EHR-EVALUATION.columna_vertebral.v1.adl
Description: Binary data