|
LexEVS CTS2 Code System Authoring API provides capability to author Code System and its contents.
Here are the authoring functions that can be performed on Associations in a Code System:
This function provides capability to create:
This function provides capability to update Status attributes:
org.lexevs.cts2.LexEvsCTS2 cts2 = org.lexevs.cts2.LexEvsCTS2Impl.defaultInstance(); org.lexevs.cts2.author.AssociationAuthoringOperation associationAuthoring = cts2.getAuthoringOperation().getAssociationAuthoringOperation(); |
Authoring requires information helping to determine whether the edited coding scheme element is new or revises an existing association. This requires not only a containing revision, but also a entry state object for each versionable element of the Association being created. A single object of each is passed into the association creating method providing mandatory information about this revision which in most use cases here is a new association.
Revision object has following attributes:
createAssociation(boolean createMappingScheme, Revision revision, EntryState entryState, AbsoluteCodingSchemeVersionReference mappingScheme, AbsoluteCodingSchemeVersionReference sourceCodeSystemIdentifier, AbsoluteCodingSchemeVersionReference targetCodeSystemIdentifier, String sourceConceptCodeIdentifier, String targetConceptCodeIdentifier, String relationsContainerName, String associationType, AssociationQualification[] associationQualifiers)
Description: |
Creates new Association |
|||||||
Input: |
|
|||||||
Output: |
org.LexGrid.relations.AssociationSource - Created Association Structure |
|||||||
Exception: |
org.LexGrid.LexBIG.Exceptions.LBException |
|||||||
Sample Call: |
|
updateAssociationStatus(Revision revision, EntryState entryState, AbsoluteCodingSchemeVersionReference scheme, String relationsContainer, String associationName, String sourceCode, String sourceNamespace, String targetCode, String targetNamespace, String instanceId, String status, boolean isActive)
Description: |
Updates Association Status |
||||||||||
Input: |
|
||||||||||
Output: |
boolean - flag for successful update |
||||||||||
Exception: |
org.LexGrid.LexBIG.Exceptions.LBException |
||||||||||
Sample Call: |
|