SnomedCtIdentifier { public long namespaceIdentifier() { if (releaseIdentifier() == 1) { int len = _id.length(); return Long.valueOf(_id.substring(len-10, len-3)); } return 0; } SnomedCtIdentifier(long id); boolean isValidConcept(); boolean isValidDescription(); boolean isValidRelationship(); int releaseIdentifier(); int partitionIdentifier(); Type partitionIdentifierType(); long namespaceIdentifier();  }
@Test public void testMiscellaneous() { assertEquals(989121L, new SnomedCtIdentifier(999999990989121104L).namespaceIdentifier()); assertEquals(1, new SnomedCtIdentifier(1290000001117L).namespaceIdentifier()); assertEquals(1, new SnomedCtIdentifier(40000001132L).namespaceIdentifier()); }