public class ClassificationFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
protected OMRSAPIHelper |
omrsapiHelper |
| Constructor and Description |
|---|
ClassificationFactory(OMRSAPIHelper omrsapiHelper) |
| Modifier and Type | Method and Description |
|---|---|
Classification |
getOMASClassification(String name,
Classification omrsClassification)
Get an OMAS Classification based on the name and then map the supplied omrs classificaiton to the omas one.
|
Classification |
getOMRSClassification(Classification omasClassification)
Get an OMRS Classification based on the the supplied omas classification.
|
protected final OMRSAPIHelper omrsapiHelper
public ClassificationFactory(OMRSAPIHelper omrsapiHelper)
public Classification getOMASClassification(String name, Classification omrsClassification)
name - name of the classification. Note this may not match the classification name if the classification is a sub type of the supplied name.omrsClassification - the supplied omrs classification to mappublic Classification getOMRSClassification(Classification omasClassification)
omasClassification - the supplied omas classification to mapCopyright © 2018–2019 ODPi. All rights reserved.