public Model getGETModel(Representation rep) { return ((ModelImpl) super.getGETModel(rep)) .property("uuid", new StringProperty()) .property("display", new StringProperty()) .property("name", new StringProperty()) .property("description", new StringProperty()) .property("hl7Code", new StringProperty()) .property("retired", new BooleanProperty()); }
@Override public Model getCREATEModel(Representation rep) { return ((ModelImpl) super.getCREATEModel(rep)) .property("datatypeClassname", new StringProperty()) .property("minOccurs", new IntegerProperty()) .property("maxOccurs", new IntegerProperty()) .property("datatypeConfig", new StringProperty()) .property("preferredHandlerClassname", new StringProperty()) .property("handlerConfig", new StringProperty()) .required("datatypeClassname"); }
@Override public Model getGETModel(Representation rep) { ModelImpl model = (ModelImpl) super.getGETModel(rep); if (rep instanceof DefaultRepresentation || rep instanceof FullRepresentation) { model .property("uuid", new StringProperty()) .property("handlerClassname", new StringProperty()) .property("display", new StringProperty()); //FIXME delegate property name } 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 getUPDATEModel(Representation rep) { return new ModelImpl().property("visitType", new RefProperty("#/definitions/VisittypeCreate")) .property("startDatetime", new DateProperty()) .property("location", new RefProperty("#/definitions/LocationCreate")) .property("indication", new RefProperty("#/definitions/ConceptCreate")) .property("stopDatetime", new DateProperty()) .property("encounters", new ArrayProperty(new RefProperty("#/definitions/EncounterCreate"))) .property("attributes", new ArrayProperty(new StringProperty())); //FIXME type }
@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"); }
@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 getUPDATEModel(Representation representation) { return new ModelImpl() .property("name", new StringProperty()); //FIXME missing props }
@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 getCREATEModel(Representation representation) { return new ModelImpl() .property("conceptReferenceTerm", new RefProperty("#/definitions/ConceptreferencetermCreate")) .property("conceptMapType", new RefProperty("#/definitions/ConceptmaptypeCreate")) .required("conceptReferenceTerm").required("conceptMapType"); }
@Override public Model getUPDATEModel(Representation rep) { return new ModelImpl() .property("description", new StringProperty()) .property("privileges", new ArrayProperty(new RefProperty("#/definitions/PrivilegeCreate"))) .property("inheritedRoles", new ArrayProperty(new RefProperty("#/definitions/RoleCreate"))); }
@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("name", new StringProperty()) .property("description", new StringProperty()) .property("memberIds", new ArrayProperty(new IntegerProperty())) //FIXME .required("name").required("description").required("memberIds"); }
@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("allergen", new ObjectProperty()) //FIXME type .property("severity", new ObjectProperty() .property("uuid", new StringProperty())) .property("comment", new StringProperty()) .property("reactions", new ArrayProperty(new ObjectProperty() .property("allergy", new ObjectProperty().property("uuid", new StringProperty())) .property("reaction", new ObjectProperty().property("uuid", new StringProperty())))) .required("allergen"); }