# Loading archetypes referenced by ArchetypeSlots

**URL:** https://discourse.openehr.org/t/loading-archetypes-referenced-by-archetypeslots/16202
**Category:** Technical (archive)
**Created:** [11 August 2009 19:31 UTC](https://discourse.openehr.org/t/loading-archetypes-referenced-by-archetypeslots/16202 "2009-08-11T19:31:39Z")
**Posts on this page:** 1
**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: [11 August 2009 19:31 UTC](https://discourse.openehr.org/t/loading-archetypes-referenced-by-archetypeslots/16202/1 "2009-08-11T19:31:39Z")

</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.
