예제 #1
0
파일: views.py 프로젝트: cens-chile/oclapi2
    def get_related_mappings_with_version_information(expressions):
        related_mappings = []

        for expression in expressions:
            if is_concept(expression):
                concepts = CollectionReference.get_concept_heads_from_expression(expression)
                for concept in concepts:
                    related_mappings += concept.get_latest_unidirectional_mappings()

        return [mapping.uri for mapping in related_mappings]
예제 #2
0
    def get_related_mappings_with_version_information(self, instance,
                                                      expressions):
        related_mappings = []

        for expression in expressions:
            if is_concept(expression):
                concepts = CollectionReference.get_concept_heads_from_expression(
                    expression)
                for concept in concepts:
                    related_mappings += concept.get_unidirectional_mappings()

        return self.get_version_information_of_related_mappings(
            instance, related_mappings)