[(master)] Renamed files in wrong casing.
This commit is contained in:
parent
bdb15f57e0
commit
5e9f88df2d
|
@ -29,36 +29,40 @@ package org.hl7.fhir.dstu3.model.codesystems;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Mon, Jan 16, 2017 12:12-0500 for FHIR v1.9.0
|
||||
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
|
||||
|
||||
|
||||
import org.hl7.fhir.dstu3.model.EnumFactory;
|
||||
|
||||
public class DevicestatusEnumFactory implements EnumFactory<Devicestatus> {
|
||||
public class DeviceStatusEnumFactory implements EnumFactory<DeviceStatus> {
|
||||
|
||||
public Devicestatus fromCode(String codeString) throws IllegalArgumentException {
|
||||
public DeviceStatus fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("available".equals(codeString))
|
||||
return Devicestatus.AVAILABLE;
|
||||
if ("not-available".equals(codeString))
|
||||
return Devicestatus.NOTAVAILABLE;
|
||||
if ("active".equals(codeString))
|
||||
return DeviceStatus.ACTIVE;
|
||||
if ("inactive".equals(codeString))
|
||||
return DeviceStatus.INACTIVE;
|
||||
if ("entered-in-error".equals(codeString))
|
||||
return Devicestatus.ENTEREDINERROR;
|
||||
throw new IllegalArgumentException("Unknown Devicestatus code '"+codeString+"'");
|
||||
return DeviceStatus.ENTEREDINERROR;
|
||||
if ("unknown".equals(codeString))
|
||||
return DeviceStatus.UNKNOWN;
|
||||
throw new IllegalArgumentException("Unknown DeviceStatus code '"+codeString+"'");
|
||||
}
|
||||
|
||||
public String toCode(Devicestatus code) {
|
||||
if (code == Devicestatus.AVAILABLE)
|
||||
return "available";
|
||||
if (code == Devicestatus.NOTAVAILABLE)
|
||||
return "not-available";
|
||||
if (code == Devicestatus.ENTEREDINERROR)
|
||||
public String toCode(DeviceStatus code) {
|
||||
if (code == DeviceStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == DeviceStatus.INACTIVE)
|
||||
return "inactive";
|
||||
if (code == DeviceStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
if (code == DeviceStatus.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
|
||||
public String toSystem(Devicestatus code) {
|
||||
public String toSystem(DeviceStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
Loading…
Reference in New Issue