use of com.b2international.snowowl.snomed.core.domain.SnomedConcept in project snow-owl by b2ihealthcare.
the class Rf2QueryRefSetContentType method resolve.
@Override
public void resolve(SnomedReferenceSetMember component, String[] values) {
component.setType(SnomedRefSetType.QUERY);
component.setRefsetId(values[4]);
// XXX actual type is not relevant here
component.setReferencedComponent(new SnomedConcept(values[5]));
component.setProperties(ImmutableMap.of(SnomedRf2Headers.FIELD_QUERY, values[6]));
}
use of com.b2international.snowowl.snomed.core.domain.SnomedConcept in project snow-owl by b2ihealthcare.
the class Rf2SimpleMapWithDescriptionContentType method resolve.
@Override
public void resolve(SnomedReferenceSetMember component, String[] values) {
component.setType(SnomedRefSetType.SIMPLE_MAP_WITH_DESCRIPTION);
component.setRefsetId(values[4]);
// XXX actual type is not relevant here
component.setReferencedComponent(new SnomedConcept(values[5]));
component.setProperties(ImmutableMap.of(SnomedRf2Headers.FIELD_MAP_TARGET, values[6], SnomedRf2Headers.FIELD_MAP_TARGET_DESCRIPTION, values[7]));
}
use of com.b2international.snowowl.snomed.core.domain.SnomedConcept in project snow-owl by b2ihealthcare.
the class Rf2AssociationRefSetContentType method resolve.
@Override
public void resolve(SnomedReferenceSetMember component, String[] values) {
component.setType(SnomedRefSetType.ASSOCIATION);
component.setRefsetId(values[4]);
// XXX actual type is not relevant here
component.setReferencedComponent(new SnomedConcept(values[5]));
component.setProperties(ImmutableMap.of(SnomedRf2Headers.FIELD_TARGET_COMPONENT_ID, values[6]));
}
use of com.b2international.snowowl.snomed.core.domain.SnomedConcept in project snow-owl by b2ihealthcare.
the class Rf2ConcreteDomainRefSetContentType method resolve.
@Override
public void resolve(SnomedReferenceSetMember component, String[] values) {
component.setType(SnomedRefSetType.CONCRETE_DATA_TYPE);
component.setRefsetId(values[4]);
// XXX actual type is not relevant here
component.setReferencedComponent(new SnomedConcept(values[5]));
component.setProperties(ImmutableMap.of(SnomedRf2Headers.FIELD_VALUE, values[6], SnomedRf2Headers.FIELD_RELATIONSHIP_GROUP, values[7], SnomedRf2Headers.FIELD_TYPE_ID, values[8], SnomedRf2Headers.FIELD_CHARACTERISTIC_TYPE_ID, values[9]));
}
use of com.b2international.snowowl.snomed.core.domain.SnomedConcept in project snow-owl by b2ihealthcare.
the class SnomedValueSetMemberSearchRequestEvaluator method toMember.
private ValueSetMember toMember(SnomedReferenceSetMember member, ResourceURI codeSystemURI) {
final String term;
final String iconId = member.getReferencedComponent().getIconId();
String terminologyComponentId = member.getReferencedComponent().getComponentType();
switch(terminologyComponentId) {
case SnomedConcept.TYPE:
SnomedConcept concept = (SnomedConcept) member.getReferencedComponent();
term = concept.getFsn().getTerm();
break;
case SnomedDescription.TYPE:
SnomedDescription description = (SnomedDescription) member.getReferencedComponent();
term = description.getTerm();
break;
default:
term = member.getReferencedComponentId();
}
return new ValueSetMember(ComponentURI.of(codeSystemURI, terminologyComponentId, member.getReferencedComponentId()), term, iconId);
}
Aggregations