# Can I import and OCL concept set whose members are in another source?

**URL:** https://talk.openmrs.org/t/can-i-import-and-ocl-concept-set-whose-members-are-in-another-source/14634
**Category:** Terminology
**Tags:** ocl, bahmni
**Created:** [December 16, 2017, 6:14pm UTC](https://talk.openmrs.org/t/can-i-import-and-ocl-concept-set-whose-members-are-in-another-source/14634 "2017-12-16T18:14:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![darius](https://talk.openmrs.org/user_avatar/talk.openmrs.org/darius/32/8082_2.png) [@darius](https://talk.openmrs.org/u/darius)
#### Post date: [December 16, 2017, 6:14pm UTC](https://talk.openmrs.org/t/can-i-import-and-ocl-concept-set-whose-members-are-in-another-source/14634/1 "2017-12-16T18:14:25Z")

</div>

I’m exploring the scenario where:

1. there are CIEL concepts representing common encounter dispositions (Admit, Discharge, Transfer, etc)
2. I have a “Bahmni default dispositions” concept (in a Bahmni source) whose set members are those CIEL concepts (i.e. the set members are in a _different source_).
3. I include the “Bahmni default dispositions” concept in my “Bahmni starter set” collection, and import it using the OCL subscription module. This should pull both my set concept, and also the CIEL members.

Is this possible? I know that I can create a concept that way in CIEL, but will the subscription module handle it? (I haven’t been able to actually test this yet due to [OCL (and connector) annoyances and problems](https://talk.openmrs.org/t/ocl-and-connector-annoyances-and-problems/14633))

---

<div class="post-metadata">

### Author: ![paynejd](https://talk.openmrs.org/user_avatar/talk.openmrs.org/paynejd/32/20809_2.png) [@paynejd](https://talk.openmrs.org/u/paynejd)
#### Post date: [December 20, 2017, 12:27pm UTC](https://talk.openmrs.org/t/can-i-import-and-ocl-concept-set-whose-members-are-in-another-source/14634/2 "2017-12-20T12:27:27Z")

</div>

Hi @darius, #1 and #2 are correct. #3 is not quite, because exports only include the concepts and mappings from the repository you are requesting. You could do this by creating a collection that contains both the Bahmni concepts, the CIEL concepts, and the concept set mappings (since OpenMRS concept sets are represented as mappings inside OCL).

---

<div class="post-metadata">

### Author: ![darius](https://talk.openmrs.org/user_avatar/talk.openmrs.org/darius/32/8082_2.png) [@darius](https://talk.openmrs.org/u/darius)
#### Post date: [January 3, 2018, 8:58pm UTC](https://talk.openmrs.org/t/can-i-import-and-ocl-concept-set-whose-members-are-in-another-source/14634/3 "2018-01-03T20:58:07Z")

</div>

Indeed this works as long as I manually add the CIEL concepts to my own source.

(We’ll need to have this be handled automatically either on the back-end or in the UI.)
