use of com.b2international.snowowl.snomed.core.domain.SnomedConcept in project snow-owl by b2ihealthcare.
the class Rf2MRCMModuleScopeRefSetContentType method resolve.
@Override
public void resolve(SnomedReferenceSetMember component, String[] values) {
component.setType(SnomedRefSetType.MRCM_MODULE_SCOPE);
component.setRefsetId(values[4]);
// XXX actual type is not relevant here
component.setReferencedComponent(new SnomedConcept(values[5]));
component.setProperties(ImmutableMap.of(FIELD_MRCM_RULE_REFSET_ID, values[6]));
}
use of com.b2international.snowowl.snomed.core.domain.SnomedConcept in project snow-owl by b2ihealthcare.
the class Rf2SimpleMapRefSetContentType method resolve.
@Override
public void resolve(SnomedReferenceSetMember component, String[] values) {
component.setType(SnomedRefSetType.SIMPLE_MAP);
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]));
}
use of com.b2international.snowowl.snomed.core.domain.SnomedConcept in project snow-owl by b2ihealthcare.
the class Rf2ExtendedMapRefSetContentType method resolve.
@Override
public void resolve(SnomedReferenceSetMember component, String[] values) {
component.setType(SnomedRefSetType.EXTENDED_MAP);
component.setRefsetId(values[4]);
// XXX actual type is not relevant here
component.setReferencedComponent(new SnomedConcept(values[5]));
component.setProperties(ImmutableMap.<String, Object>builder().put(FIELD_MAP_GROUP, Integer.parseInt(values[6])).put(FIELD_MAP_PRIORITY, Integer.parseInt(values[7])).put(FIELD_MAP_RULE, values[8]).put(FIELD_MAP_ADVICE, values[9]).put(FIELD_MAP_TARGET, values[10]).put(FIELD_CORRELATION_ID, values[11]).put(FIELD_MAP_CATEGORY_ID, values[12]).build());
}
use of com.b2international.snowowl.snomed.core.domain.SnomedConcept in project snow-owl by b2ihealthcare.
the class Rf2MRCMDomainRefSetContentType method resolve.
@Override
public void resolve(SnomedReferenceSetMember component, String[] values) {
component.setType(SnomedRefSetType.MRCM_DOMAIN);
component.setRefsetId(values[4]);
// XXX actual type is not relevant here
component.setReferencedComponent(new SnomedConcept(values[5]));
component.setProperties(ImmutableMap.<String, Object>builder().put(FIELD_MRCM_DOMAIN_CONSTRAINT, values[6]).put(FIELD_MRCM_PARENT_DOMAIN, values[7]).put(FIELD_MRCM_PROXIMAL_PRIMITIVE_CONSTRAINT, values[8]).put(FIELD_MRCM_PROXIMAL_PRIMITIVE_REFINEMENT, values[9]).put(FIELD_MRCM_DOMAIN_TEMPLATE_FOR_PRECOORDINATION, values[10]).put(FIELD_MRCM_DOMAIN_TEMPLATE_FOR_POSTCOORDINATION, values[11]).put(FIELD_MRCM_GUIDEURL, values[12]).build());
}
use of com.b2international.snowowl.snomed.core.domain.SnomedConcept in project snow-owl by b2ihealthcare.
the class Rf2ModuleDependencyRefSetContentType method resolve.
@Override
public void resolve(SnomedReferenceSetMember component, String[] values) {
component.setType(SnomedRefSetType.MODULE_DEPENDENCY);
component.setRefsetId(values[4]);
// XXX actual type is not relevant here
component.setReferencedComponent(new SnomedConcept(values[5]));
component.setProperties(ImmutableMap.<String, Object>of(SnomedRf2Headers.FIELD_SOURCE_EFFECTIVE_TIME, EffectiveTimes.parse(values[6], EXPECTED_DATE_FORMAT), SnomedRf2Headers.FIELD_TARGET_EFFECTIVE_TIME, EffectiveTimes.parse(values[7], EXPECTED_DATE_FORMAT)));
}
Aggregations