# Loading archetypes referenced by ArchetypeSlots

**URL:** <https://discourse.openehr.org/t/loading-archetypes-referenced-by-archetypeslots/16655>\
**Category:** Reference Implementation: Java (archive)\
**Created:** [10 August 2009 19:48 UTC](https://discourse.openehr.org/t/loading-archetypes-referenced-by-archetypeslots/16655 "2009-08-10T19:48:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pablo](https://discourse.openehr.org/user_avatar/discourse.openehr.org/pablo/32/3505_2.png) [@pablo](https://discourse.openehr.org/u/pablo)\
**Post date:** [10 August 2009 19:48 UTC](https://discourse.openehr.org/t/loading-archetypes-referenced-by-archetypeslots/16655/1 "2009-08-10T19:48:03Z")

</div>

Hi,

I'm doing some archetype modeling and loading tests with Java Ref Impl.  
I have two ACTION archetypes and a COMPOSITION archetype that references the  
two ACTION archetypes:

content cardinality matches {0..\*; unordered} matches {  
&nbsp;&nbsp;&nbsp;allow\_archetype ACTION occurrences matches {0..1} matches {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;include  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;archetype\_id/value matches {/via\_venosa\_central\.v1/}  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;archetype\_id/value matches {/via\_venosa\_periferica\.v1/}  
&nbsp;&nbsp;&nbsp;}  
}

If a load the COMPOSITION archetype with the ADL parser, how can I load all  
the archetypes that matches the "allow\_archetype" assertion?  
I need to have a full archetype structure loaded but I don't know if the ADL  
parser can do this automatically.

Thanks a lot!

Cheers,  
Pablo Pazos Gutierez.

---

<div class="post-metadata">

**Author:** ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)\
**Post date:** [12 August 2009 13:33 UTC](https://discourse.openehr.org/t/loading-archetypes-referenced-by-archetypeslots/16655/2 "2009-08-12T13:33:17Z")

</div>

Hi Pablo,

The ADL parser should faithfully return ArchetypeSlot according to the  
ADL/AOM specs. So for your question, the java ADL parser doesn't load  
included archetypes automatically.

Cheers,  
Rong
