Introduction
This document provides a detailed mapping between the properties of the JSON response and the NextGen API schema
for the Mandate Extraction and Analysis API. The goal is to demonstrate how each property in the utilized Legacy Services API JSON
response corresponds to properties in the NextGen JSON schema, facilitating a smooth transition and integration.
General Overview
-
Legacy Services API Approach: Requires creating a Shared Authority Document List and invoking APIs using the
List ID
orAuthority Document ID
. Returns all Authority Document metadata, Citations, Mandates, and Common Controls in a single payload. -
New NextGen API Approach: Eliminates the need for Shared Authority Document Lists. Authority Document metadata, Citations, Mandates, and Common Controls are accessed through separate, dedicated endpoints.
Example:
-
Legacy Services API:
/authority-document/:id/details
(Returns all related data in one response) -
New NextGen API:
-
/authority-document/:id
(Metadata) -
/authority-document/:id/citation
(Citations) -
/authority-document/:id/mandate
(Mandates) -
/authority-document/:id/control
(Common Controls)
-
Backward Compatibility: Legacy (CCH) Authority Document IDs
You can retrieve Authority Documents using legacy IDs
via the /authority-document/legacy/:id
endpoint to fetch the new elementid
for subsequent API calls.
-
Retrieve Authority Document by Legacy ID
-
GET
/authority-document/:id
-
Path Variables:
-
:id
: The legacy CCHelementId
prefixed by “legacy”, ie. legacy-3304 (would retrieve 3304)
-
-
-
This endpoint returns the NextGen Authority Document ID and and legacy ID (in the coreMetaData object)
-
The NextGen AD ID is required for all subsequent API requests (to retrieve metadata, citations, mandates & controls)
-
Furthermore, when retrieving the metadata of an authority document from NextGen, the legacy CCH elementId will be returned as a property.
-
MetaData Example: For example:
Endpoint & Property Mapping
-
Legacy Services API: Properties from the CCH Services API JSON response.
-
New NextGen JSON: Corresponding properties in the NextGen API schema.
-
Notes: Additional information or context about the mapping.
Endpoints
Function |
Legacy Services API |
NextGen API |
Notes |
---|---|---|---|
Get Account Information |
|
|
Returns information about the account. |
Search for Authority Documents |
Not Available |
/ |
Returns documents containing the search term. Optionally remove the search parameter to retrieve all documents. |
Retrieve Authority Document |
|
|
Legacy returns the document metadata, all citations, all mandates and all controls. NextGen only returns the document metadata. |
Search for Citations in a document |
Not Available |
|
Returns citations containing the search term. Optionally remove the search parameter to retrieve all citations for the document. |
Retrieve a specific Citation |
Not Available |
|
NextGen can retrieve specific citations within a document |
Search for Mandates in a document |
Not Available |
|
Returns mandates containing the search term. Optionally remove the search parameter to retrieve all mandates for the document. |
Retrieve a specific Mandate |
Not Available |
|
NextGen can retrieve specific mandates within a document. |
Search for Controls in a document |
Not Available |
|
Returns controls containing the search term. Optionally remove the search parameter to retrieve all controls for the document. |
Retrieve a specific Common Control |
Not Available |
|
NextGen can retrieve specific controls within a document |
Retrieve all Common Controls for a list of Authority Documents |
|
|
Legacy returns all common controls for all documents in the list. For NextGen, retrieve all of the controls for one document at a time. |
Top-Level Properties
JSON Property Mapping Matrix
Legacy Services API |
New NextGen |
Notes |
---|---|---|
|
|
Indicates if the mandate is active. |
|
|
URL indicating what deprecated the mandate. |
|
|
Additional notes on deprecation. |
|
|
Timestamp when the mandate was created. |
|
|
Date when the mandate was added. |
|
|
Timestamp when the mandate was last updated. |
|
|
Date when the mandate was modified. |
|
|
Language of the mandate (e.g., "eng"). |
|
|
URL to the license terms. |
|
|
Used for sorting mandates. |
|
|
Represents the hierarchical lineage. |
|
|
Calculated value for quick sorting |
|
|
The citation reference string. |
|
|
The primary citation text the mandate is derived from. |
|
|
The mandate text (Full text of primary citation, additional citation, and additional guidance in current system). |
|
- |
- |
|
|
Unique identifier for the mandate (Not a direct mapping). |
|
|
Object representing the source document. |
|
|
Object representing the matched control. |
|
- |
- |
|
- |
Asset information related to the control. |
|
- |
- |
|
- |
- |
|
- |
Data content information. |
|
- |
Organizational function related to the control. |
|
- |
- |
|
- |
- |
|
- |
- |
|
- |
Organizational task information. |
|
- |
- |
|
- |
- |
|
|
Main text of the mandate with annotations. |
|
|
Parent mandates in the hierarchy. |
|
|
Used for validation of response data (Not a direct mapping). |
Nested Objects
Authority Document
JSON Path
-
Legacy Services API:
authority_document
-
New NextGen:
authorityDocument
JSON Property Mapping Matrix
Legacy Services API |
New NextGen |
Notes |
---|---|---|
|
|
Identifier for the document (Not a direct mapping). |
|
|
URL to the document details (Not a direct mapping). |
Control
JSON Path
-
Legacy Services API:
control
-
New NextGen:
matchedControl.control
JSON Property Mapping Matrix
Legacy Services API |
New NextGen |
Notes |
---|---|---|
|
|
Indicates if the control is active. |
|
|
URL indicating what deprecated the control. |
|
|
Notes on deprecation. |
|
|
Creation timestamp. |
|
|
Last update timestamp. |
|
|
Language of the control. |
|
|
License information URL. |
|
|
Name of the control. |
|
|
Impact zone classification. |
|
|
Type of the control. |
|
|
Classification of the control. |
|
|
Control's text with annotations. |
|
|
Parent controls in the hierarchy. |
|
|
Unique identifier for the control (Not a direct mapping). |
|
|
URL to the control details (Not a direct mapping). |
Sentence
JSON Path
-
JSON Path:
sentence
-
NextGen JSON Path:
taggedText
JSON Property Mapping Matrix
Legacy Services API |
New NextGen |
Notes |
---|---|---|
|
|
The raw text of the mandate. |
|
|
Annotated terms within the text. |
|
|
Indicates if the sentence is active. |
|
|
Creation timestamp. |
|
|
Last update timestamp. |
|
|
Unique identifier for the tagged text (Not a direct mapping). |
|
- |
- |
Tagged Phrases
JSON Path
-
Legacy Services API:
sentence.tagged_phrases
-
New NextGen:
taggedText.taggedTerms
JSON Property Mapping Matrix
Legacy Services API |
New NextGen |
Notes |
---|---|---|
|
Derived from |
Start index of the term in the text. |
|
Derived from |
End index of the term in the text. |
|
|
Indicates if the term is nonstandard. |
|
|
Unique identifier for the tagged term (Not a direct mapping). |
|
|
Unique identifier for the tagged text (Not a direct mapping). |
|
|
Classification of the term (e.g., "Primary Noun"). |
|
|
Contains term details such as name and lemma. |
|
|
Textual definition of the term. |
|
|
Language of the term. |
|
|
License information URL. |