-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: migrate models from watson developer core to java sdk core
Migrate ACD models from IBM Watson Developer Cloud java sdk core to IBM java sdk core. Deprecate IML java sdk methods.
- Loading branch information
Showing
120 changed files
with
2,527 additions
and
4,830 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
137 changes: 137 additions & 0 deletions
137
...-clinical-data/src/main/java/com/ibm/watson/health/acd/v1/model/AllergyMedicationInd.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
/* | ||
* Copyright 2018, 2022 IBM Corp. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | ||
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations under the License. | ||
*/ | ||
package com.ibm.watson.health.acd.v1.model; | ||
|
||
import java.util.List; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import com.google.gson.reflect.TypeToken; | ||
import com.ibm.cloud.sdk.core.service.model.DynamicModel; | ||
|
||
/** | ||
* AllergyMedicationInd. | ||
*/ | ||
public class AllergyMedicationInd extends DynamicModel<Object> { | ||
@SerializedName("id") | ||
protected String id; | ||
@SerializedName("type") | ||
protected String type; | ||
@SerializedName("uid") | ||
protected Long uid; | ||
@SerializedName("begin") | ||
protected Long begin; | ||
@SerializedName("end") | ||
protected Long end; | ||
@SerializedName("coveredText") | ||
protected String coveredText; | ||
@SerializedName("negated") | ||
protected Boolean negated; | ||
@SerializedName("hypothetical") | ||
protected Boolean hypothetical; | ||
@SerializedName("medication") | ||
protected List<MedicationAnnotation> medication; | ||
|
||
public AllergyMedicationInd() { | ||
super(new TypeToken<Object>() { }); | ||
} | ||
|
||
/** | ||
* Gets the id. | ||
* | ||
* @return the id | ||
*/ | ||
public String getId() { | ||
return this.id; | ||
} | ||
|
||
/** | ||
* Gets the type. | ||
* | ||
* @return the type | ||
*/ | ||
public String getType() { | ||
return this.type; | ||
} | ||
|
||
/** | ||
* Gets the uid. | ||
* | ||
* @return the uid | ||
*/ | ||
public Long getUid() { | ||
return this.uid; | ||
} | ||
|
||
/** | ||
* Gets the begin. | ||
* | ||
* @return the begin | ||
*/ | ||
public Long getBegin() { | ||
return this.begin; | ||
} | ||
|
||
/** | ||
* Gets the end. | ||
* | ||
* @return the end | ||
*/ | ||
public Long getEnd() { | ||
return this.end; | ||
} | ||
|
||
/** | ||
* Gets the coveredText. | ||
* | ||
* @return the coveredText | ||
*/ | ||
public String getCoveredText() { | ||
return this.coveredText; | ||
} | ||
|
||
/** | ||
* Gets the negated. | ||
* | ||
* @return the negated | ||
*/ | ||
public Boolean isNegated() { | ||
Boolean negated = this.negated; | ||
if (negated == null) { | ||
negated = false; | ||
} | ||
return negated; | ||
} | ||
|
||
/** | ||
* Gets the hypothetical. | ||
* | ||
* @return the hypothetical | ||
*/ | ||
public Boolean isHypothetical() { | ||
Boolean hypothetical = this.hypothetical; | ||
if (hypothetical == null) { | ||
hypothetical = false; | ||
} | ||
return hypothetical; | ||
} | ||
|
||
/** | ||
* Gets the medication. | ||
* | ||
* @return the medication | ||
*/ | ||
public List<MedicationAnnotation> getMedication() { | ||
return this.medication; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.