NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Revised to be consistent.

...

The following examples find a Data Element where Public Id ID = 62 and Version=6 and display , displaying the basic metadata attributes. 

...

This method can be used to retrieve Data Elements only when you know both the Public ID and Version number. (If you have trouble with the following link into Firefox).in Firefox, copy and paste it into IE.)

Code Block
https://cdebrowser.nci.nih.gov/CDEBrowser/search?dataElementDetails=9/&cdeId=62&version=6&PageId=DataElementsGroup&queryDE=yes&FirstTimer=yes

...

Code Block
https://freestyle.nci.nih.gov/freestyle/do/cdebrowser?publicId=217869362&version=2.16

Legacy Example 1b Results Displayed in XML

...

The following example finds a Data Element with Public Id ID = 62, displaying the basic metadata attributes. Since the version is not known, this query can only be handled via a caDSR REST API query getting all versions.

...

The following example finds a Data Element with Public Id with Public ID = 62, displaying all the metadata associated with the Data Element's related components, not just the basic attributes. This is handled in the caDSR REST API using a parameter that produces expanded ("heavy") XML.

...

Code Block
https://cadsrapi.cancer.gov/invoke/caDSR/GetXML?query=DataElelemtDataElement[@publicId=62]&returnHeavyXML=true

Example 4 - Find Data Element Concept

...

Using Public ID, Display All Associated Data Elements

Find all the Data Elements associated with the Data Element Concept with Public Id with Public ID = 2178546, displaying the basic metadata of the Data Element Concept and its Data Elements.

...

The following example finds only Data Elements associated with VERSION 2.1 of Data Element Concept with Public Id ID = 2178546.

Legacy Example 5

...

Code Block
https://cadsrapi.cancer.gov/invoke/caDSR/GetXML?DataElement&DataElementConcept[@publicId=2178546,@version=2.1]

Example 6 - Find a Form

...

Using Form Public ID and Version, Display Basic Metadata Attributes

The following examples find a Form where Public Id ID = 2392775 and Version=1.0 and display , displaying the basic metadata attributes. 

...

This method can be used to retrieve Forms only when you know both the Public ID and Version number.  (If you have trouble with the following link in Firefox, cut copy and paste it into IE.)

https://formbuilder.nci.nih.gov/FormBuilder/formDetailsAction.do?method=getFormDetails&formIdSeq=FF04F699-FE6A-56AA-E034-0003BA3F9857

...

The following example finds a Form with Public Id with Public ID = 2392775, displaying the basic metadata attributes. Since the version is not known, this query can only be handled via a caDSR REST API query.

...

The following example finds a Form with Public Id with Public ID = 2392775, displaying all the metadata associated with the Data Element's related components, not just the basic attributes. This is handled in the caDSR REST API using a parameter that produces expanded ("heavy") XML.

...

The following example finds all the Forms associated with the CDE with Public Id with Public ID = 2183364, Version 1.0, displaying the basic metadata of the Form.

...

Code Block
https://cadsrapi.cancer.gov/invoke/caDSR/GetXML?query=Form,Module,Question&DataElement[@publicId=21784802183364,@version=1.0]

Example 10 - Get all Modules Associated with a Form Using Form Public ID

The following example gets all the modules for a form with publicID with Public ID = 2392775.

Legacy Example 10

...

Code Block
https://cadsrapi.nci.nih.gov/cadsrapi4/GetXML?query=gov.nih.nci.cadsr.domain.Module&gov.nih.nci.cadsr.domain.Form[@version=1.0][@publicID@publicId=2392775]

caDSR II Example 10

...

The following example gets all the questions for a module with publicID with Public ID = 2392777 and version = 1.0.

...

Code Block
https://cadsrapi.nci.nih.gov/cadsrapi4/GetXML?query=gov.nih.nci.cadsr.domain.Question&gov.nih.nci.cadsr.domain.Module[@version=1.0][@publicID@publicId=2392777]

caDSR II Example 11

...

The following example gets all the data elements for a question with publicID with Public ID = 2392779 and version = 1.0.

...

Code Block
https://cadsrapi.nci.nih.gov/cadsrapi4/GetXML?query=gov.nih.nci.cadsr.domain.DataElement&gov.nih.nci.cadsr.domain.Question[@version=1.0][@publicID@publicId=2392779]

caDSR II Example 12

...

Code Block
https://cadsrapi.nci.nih.gov/cadsrapi4/GetHTML?query=PermissibleValue,ValueDomainPermissibleValue,EnumeratedValueDomain,ValueDomain&DataElement[@publicID@publicId=106][@version=5.1]

https://cadsrapi.nci.nih.gov/cadsrapi4/GetHTML?query=PermissibleValue,ValueDomainPermissibleValue,EnumeratedValueDomain,ValueDomain&DataElement[@publicID@publicId=106][@latestVersionIndicator=Yes]

...

Code Block
https://cadsrapi.nci.nih.gov/cadsrapi4/GetHTML?query=Concept[@preferredName=C42614]

caDSR II Example

...

19

The URL for the results from the caDSR II REST API is

...