public EmailProperty example(String example) { super.example(example); return this; }
@Override public Model getCREATEModel(Representation rep) { return ((ModelImpl) super.getCREATEModel(rep)) .property("javaClassName", new StringProperty()) .property("parent", new StringProperty().example("uuid")) //FIXME type .property("conceptClasses", new ArrayProperty(new StringProperty().example("uuid"))) .required("javaClassName"); } }
@Override public Model getCREATEModel(Representation rep) { ModelImpl model = ((ModelImpl) super.getCREATEModel(rep)) .property("outcomesConcept", new StringProperty().example("uuid")); if (rep instanceof FullRepresentation) { model .property("outcomesConcept", new RefProperty("#/definitions/ConceptCreate")); } return model; }
@Override public Model getCREATEModel(Representation rep) { ModelImpl model = new ModelImpl() .property("concept", new StringProperty().example("uuid")) .property("field", new StringProperty().example("uuid")) .required("field").required("concept"); if (rep instanceof FullRepresentation) { model .property("concept", new RefProperty("#/definitions/ConceptCreate")) .property("field", new RefProperty("#/definitions/FieldCreate")); } return model; }
@Override public Model getCREATEModel(Representation rep) { ModelImpl model = new ModelImpl() .property("patient", new StringProperty().example("uuid")) .required("patient"); if (rep instanceof FullRepresentation) { model .property("patient", new RefProperty("#/definitions/PatientCreate")); } return model; }
@Override public Model getCREATEModel(Representation rep) { return new ModelImpl() .property("value", new StringProperty()) .property("locale", new StringProperty().example("en")) .required("value"); }
@Override public Model getCREATEModel(Representation rep) { OrderResource1_10 orderResource = (OrderResource1_10) Context.getService(RestService.class) .getResourceBySupportedClass(Order.class); ModelImpl orderModel = (ModelImpl) orderResource.getCREATEModel(rep); return orderModel .property("specimenSource", new StringProperty().example("uuid")) .property("laterality", new EnumProperty(TestOrder.Laterality.class)) .property("clinicalHistory", new StringProperty()) .property("frequency", new StringProperty().example("uuid")) .property("numberOfRepeats", new IntegerProperty()); }
@Override public Model getCREATEModel(Representation representation) { return new ModelImpl() .property("description", new StringProperty()) .property("locale", new StringProperty().example("fr")) .required("description").required("locale"); }
@Override public Model getCREATEModel(Representation rep) { return new ModelImpl() .property("attributeType", new StringProperty().example("uuid")) .property("value", new StringProperty()) .required("attributeType").required("value"); }
@Override public Model getCREATEModel(Representation rep) { ModelImpl model = ((ModelImpl) super.getCREATEModel(rep)) .property("concept", new StringProperty().example("uuid")) .property("retired", new BooleanProperty()) .required("concept").required("description"); if (rep instanceof FullRepresentation) { model .property("concept", new RefProperty("#/definitions/ConceptCreate")); } return model; }
@Override public Model getGETModel(Representation rep) { ModelImpl modelImpl = ((ModelImpl) super.getGETModel(rep)) .property("uuid", new StringProperty()) .property("display", new StringProperty()); if (rep instanceof DefaultRepresentation || rep instanceof FullRepresentation) { modelImpl .property("value", new StringProperty()) .property("locale", new StringProperty().example("en")); //FIXME type } return modelImpl; }
@Override public Model getCREATEModel(Representation rep) { ModelImpl model = new ModelImpl() .property("person", new StringProperty().example("uuid")) .property("identifiers", new ArrayProperty(new RefProperty("#/definitions/PatientIdentifierCreate"))) .required("person").required("identifiers"); if (rep instanceof FullRepresentation) { model .property("person", new RefProperty("#/definitions/PersonCreate")); } return model; }
@Override public Model getCREATEModel(Representation rep) { return new ModelImpl() .property("orderType", new ObjectProperty() .property("uuid", new StringProperty())) .property("orderTemplate", new StringProperty()) .property("concept", new StringProperty().example("uuid")) .property("retired", new BooleanProperty()); }
@Override public Model getCREATEModel(Representation rep) { return new ModelImpl() .property("name", new StringProperty()) .property("locale", new StringProperty().example("en")) .property("localePreferred", new BooleanProperty()._default(false)) .property("conceptNameType", new EnumProperty(ConceptNameType.class)) .required("name").required("locale"); }
@Override public Model getCREATEModel(Representation rep) { return new ModelImpl() .property("modules", new ArrayProperty(new StringProperty().example("moduleId"))) .property("allModules", new BooleanProperty()) .property("action", new EnumProperty(ModuleAction.Action.class)) .property("installUri", new StringProperty()) .required("action"); }
@Override public Model getCREATEModel(Representation rep) { return ((ModelImpl) super.getCREATEModel(rep)) .property("format", new StringProperty().example("java.lang.String")) .property("foreignKey", new IntegerProperty()) .property("sortWeight", new DoubleProperty()) .property("searchable", new BooleanProperty()._default(false)) .property("editPrivilege", new RefProperty("#/definitions/PrivilegeCreate")) .required("description"); }
/** * @see org.openmrs.module.webservices.rest.web.resource.impl.DelegatingResourceHandler#getCREATEModel(Representation) */ @Override public Model getCREATEModel(Representation rep) { return new ModelImpl() .property("diagnosis", new StringProperty()) .property("encounter", new StringProperty()) .property("condition", new StringProperty()) .property("certainty", new StringProperty()) .property("patient", new StringProperty().example("uuid")) .property("rank", new IntegerProperty()); }
@Override public Model getCREATEModel(Representation rep) { return new ModelImpl() .property("patient", new StringProperty().example("uuid")) .property("concept", new StringProperty().example("uuid")) .property("startDate", new DateProperty()) .property("autoExpireDate", new DateProperty()) .property("standardRegimenCode", new StringProperty()) .property("instructions", new StringProperty()) .required("patient").required("concept"); }
@Override public Model getCREATEModel(Representation rep) { return new ModelImpl().property("person", new StringProperty().example("uuid")) .property("obsDatetime", new DateTimeProperty()).property("concept", new StringProperty().example("uuid")) .property("location", new StringProperty()).property("order", new StringProperty()) .property("encounter", new StringProperty()).property("accessionNumber", new StringProperty()) .property("groupMembers", new ArrayProperty(new StringProperty())) .property("valueCodedName", new StringProperty()).property("comment", new StringProperty()) .property("voided", new BooleanProperty()).property("value", new StringProperty()) .property("valueModifier", new StringProperty()) .required("person").required("obsDatetime").required("concept"); }