Date: Thu, 28 Mar 2024 14:01:58 -0400 (EDT) Message-ID: <1292638195.697.1711648918382@ip-10-208-26-37.ec2.internal> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_696_2073168611.1711648918373" ------=_Part_696_2073168611.1711648918373 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
= // Create a basic service object for data retrieval LexBIGService lbSvc =3D LexBIGServiceImpl.defaultInstance(); =20 // Create a concept reference list appropriate for this coding schem= e and // this concept code where the parameters are a String array consist= ing of // a single value and the name of the coding scheme where this conce= pt resides. ConceptReferenceList crefs =3D ConvenienceMethods.createConceptRefer= enceList(=20 new String[], SAMPLE_SCHEME); =20 // Initialize a coding scheme version object with a version number f= or the // sample scheme. CodingSchemeVersionOrTag csvt =3D new CodingSchemeVersionOrTag(); csvt.setVersion(VERSION); =20 // Initialize a CodedNodeSet Object with all concepts in our sample = coding // scheme. (We named the scheme we wanted and by using the Boolean v= alue, // false, retrieved both active and inactive concepts.) This method = call // ignores the version tag using the null parameter. The final=20 // restrictToCodes(crefs) method call restricts the return to the si= ngle=20 // code in the previously initialized list of one. CodedNodeSet nodes =3D lbSvc.getCodingSchemeConcepts(SAMPLE_SCHEME, = csvt). restrictToCodes(crefs); =20 // Build a list of references from the current (and already restrict= ed) set // and restrict them further to the single property of NCI_NAME and // restrict to a single answer (parameter 1)). ResolvedConceptReferenceList matches =3D nodes.resolveToList( null, ConvenienceMethods.createLocalNameList("FULL_S= YN"), 1); // Does our list of one contain the single reference we were looking= for? // If so, then initialize a ResolvedConceptReference with the result= and // initialize a Concept object by calling the getReferencedEntry() // method. The Concept object is the base information model object = and // contains, among other things, the CONCEPT_NAME value we were seek= ing. // We retrieve it with a call to the first element in the properties= list, // getting the text && it's accompanying content. if(matches.getResolvedConceptReferenceCount() <> 0) { ResolvedConceptReference ref =3D (ResolvedConceptReferen= ce)matches. enumerateResolvedConceptReference().nextElement(); Concept entry =3D ref.getReferencedEntry(); System.out.println("Matching synonym: " + entry.getPresentation(0).getValue() ); } else { System.out.println("No match found"); }=20