Skip to content

Commit

Permalink
healthcare first import jdl design
Browse files Browse the repository at this point in the history
  • Loading branch information
cevheri committed May 1, 2020
1 parent 72ed2bd commit 4797ce7
Show file tree
Hide file tree
Showing 184 changed files with 11,010 additions and 18 deletions.
52 changes: 52 additions & 0 deletions .jhipster/Department.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"name": "Department",
"fields": [
{
"fieldName": "name",
"fieldType": "String",
"fieldValidateRules": [
"maxlength",
"required"
],
"fieldValidateRulesMaxlength": "200"
},
{
"fieldName": "type",
"fieldType": "DepartmentType",
"fieldValues": "SERVICE,POLYCLINIC"
},
{
"fieldName": "description",
"fieldType": "String",
"fieldValidateRules": [
"maxlength"
],
"fieldValidateRulesMaxlength": "1000"
},
{
"fieldName": "active",
"fieldType": "Boolean"
}
],
"relationships": [
{
"relationshipType": "many-to-many",
"otherEntityName": "doctor",
"otherEntityRelationshipName": "department",
"relationshipName": "doctor",
"otherEntityField": "id",
"ownerSide": false
}
],
"changelogDate": "20200501230500",
"entityTableName": "department",
"dto": "mapstruct",
"pagination": "pagination",
"service": "serviceImpl",
"jpaMetamodelFiltering": false,
"fluentMethods": true,
"readOnly": false,
"embedded": false,
"clientRootFolder": "",
"applications": "*"
}
47 changes: 47 additions & 0 deletions .jhipster/Doctor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"name": "Doctor",
"fields": [
{
"fieldName": "name",
"fieldType": "String",
"fieldValidateRules": [
"maxlength",
"required"
],
"fieldValidateRulesMaxlength": "100"
},
{
"fieldName": "phone",
"fieldType": "String",
"fieldValidateRules": [
"maxlength"
],
"fieldValidateRulesMaxlength": "20"
},
{
"fieldName": "salary",
"fieldType": "Long"
}
],
"relationships": [
{
"relationshipType": "many-to-many",
"otherEntityName": "department",
"otherEntityRelationshipName": "doctor",
"relationshipName": "department",
"otherEntityField": "name",
"ownerSide": true
}
],
"changelogDate": "20200501230600",
"entityTableName": "doctor",
"dto": "mapstruct",
"pagination": "pagination",
"service": "serviceImpl",
"jpaMetamodelFiltering": false,
"fluentMethods": true,
"readOnly": false,
"embedded": false,
"clientRootFolder": "",
"applications": "*"
}
47 changes: 47 additions & 0 deletions .jhipster/Patient.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"name": "Patient",
"fields": [
{
"fieldName": "name",
"fieldType": "String",
"fieldValidateRules": [
"maxlength",
"required"
],
"fieldValidateRulesMaxlength": "100"
},
{
"fieldName": "phone",
"fieldType": "String",
"fieldValidateRules": [
"maxlength"
],
"fieldValidateRulesMaxlength": "20"
},
{
"fieldName": "birthDate",
"fieldType": "LocalDate"
},
{
"fieldName": "citizenNumber",
"fieldType": "String",
"fieldValidateRules": [
"maxlength",
"required"
],
"fieldValidateRulesMaxlength": "11"
}
],
"relationships": [],
"changelogDate": "20200501230400",
"entityTableName": "patient",
"dto": "mapstruct",
"pagination": "pagination",
"service": "serviceImpl",
"jpaMetamodelFiltering": false,
"fluentMethods": true,
"readOnly": false,
"embedded": false,
"clientRootFolder": "",
"applications": "*"
}
56 changes: 56 additions & 0 deletions .jhipster/Visit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"name": "Visit",
"fields": [
{
"fieldName": "date",
"fieldType": "Instant"
},
{
"fieldName": "type",
"fieldType": "VisitType",
"fieldValues": "EXAMINATION,ANALYSIS"
}
],
"relationships": [
{
"relationshipType": "many-to-one",
"otherEntityName": "patient",
"otherEntityRelationshipName": "visit",
"relationshipName": "patient",
"otherEntityField": "name"
},
{
"relationshipType": "many-to-one",
"otherEntityName": "doctor",
"otherEntityRelationshipName": "visit",
"relationshipName": "doctor",
"otherEntityField": "name"
},
{
"relationshipType": "many-to-one",
"otherEntityName": "department",
"otherEntityRelationshipName": "visit",
"relationshipName": "department",
"otherEntityField": "name"
},
{
"relationshipType": "many-to-many",
"otherEntityName": "visitService",
"otherEntityRelationshipName": "visit",
"relationshipName": "visitService",
"otherEntityField": "name",
"ownerSide": true
}
],
"changelogDate": "20200501230800",
"entityTableName": "visit",
"dto": "mapstruct",
"pagination": "pagination",
"service": "serviceImpl",
"jpaMetamodelFiltering": false,
"fluentMethods": true,
"readOnly": false,
"embedded": false,
"clientRootFolder": "",
"applications": "*"
}
51 changes: 51 additions & 0 deletions .jhipster/VisitService.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"name": "VisitService",
"fields": [
{
"fieldName": "name",
"fieldType": "String",
"fieldValidateRules": [
"maxlength",
"required"
],
"fieldValidateRulesMaxlength": "200"
},
{
"fieldName": "description",
"fieldType": "String",
"fieldValidateRules": [
"maxlength"
],
"fieldValidateRulesMaxlength": "1000"
},
{
"fieldName": "active",
"fieldType": "Boolean"
},
{
"fieldName": "price",
"fieldType": "Double"
}
],
"relationships": [
{
"relationshipType": "many-to-many",
"otherEntityName": "visit",
"otherEntityRelationshipName": "visitService",
"relationshipName": "visit",
"otherEntityField": "id",
"ownerSide": false
}
],
"changelogDate": "20200501230700",
"entityTableName": "visit_service",
"dto": "mapstruct",
"pagination": "pagination",
"service": "serviceImpl",
"jpaMetamodelFiltering": false,
"fluentMethods": true,
"readOnly": false,
"embedded": false,
"clientRootFolder": "",
"applications": "*"
}
32 changes: 14 additions & 18 deletions jhipster-jdl-1.jh
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ entity Patient {
/*
* Hasta Adi
*/
name String max(100) required,
name String maxlength(100) required,
/*
* Telefon Numarasi
*/
phone String max(20),
phone String maxlength(20),
/*
* Dogum Tarihi
*/
birthDate LocalDate,
/*
* Kimlik numarasi
*/
citizenNumber String max(11) required
citizenNumber String maxlength(11) required

}

/*
Expand All @@ -35,15 +35,15 @@ entity Department{
/*
* Bolum Adi
*/
name String max(200) required,
name String maxlength(200) required,
/*
* Bolum Tipi
*/
type DepartmentType,
/*
* Acciklama
*/
description String max(1000),
description String maxlength(1000),
/*
* Aktiflik durumu
*/
Expand All @@ -56,11 +56,11 @@ entity Doctor{
/*
* Doktor Adi
*/
name String max(100) required,
name String maxlength(100) required,
/*
* Telefon Numarasi
*/
phone String max(20),
phone String maxlength(20),
/*
* Maas bilgisi
*/
Expand All @@ -70,7 +70,7 @@ entity Doctor{
* Hastanin basvuru
*/
enum VisitType{
EXAMINATION, ANALYSIS
EXAMINATION, ANALYSIS
}
/*
* Hastaya verilebilecek Hizmet listesi
Expand All @@ -79,11 +79,11 @@ entity VisitService{
/*
* Hizmet Adi
*/
name String max(200) required,
name String maxlength(200) required,
/*
* Aciklama
*/
description String max(1000),
description String maxlength(1000),
/*
* Aktiflik durumu
*/
Expand Down Expand Up @@ -121,15 +121,15 @@ relationship ManyToOne{
* Hastanin basvurdugu bolum
*/
Visit{department(name)} to Department,

}

relationship ManyToMany{

/*
* Hasta ve basvuru iliskisi
*/
Visit{service(name)} to VisitService,
Visit{visitService(name)} to VisitService{visit},
/*
* Hasta ve basvuru iliskisi
*/
Expand All @@ -143,7 +143,3 @@ dto * with mapstruct

// Set service options to all except few
service all with serviceImpl




Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ public JCacheManagerCustomizer cacheManagerCustomizer() {
createCache(cm, tr.com.aurora.hbys.healthcare.domain.User.class.getName());
createCache(cm, tr.com.aurora.hbys.healthcare.domain.Authority.class.getName());
createCache(cm, tr.com.aurora.hbys.healthcare.domain.User.class.getName() + ".authorities");
createCache(cm, tr.com.aurora.hbys.healthcare.domain.Patient.class.getName());
createCache(cm, tr.com.aurora.hbys.healthcare.domain.Department.class.getName());
createCache(cm, tr.com.aurora.hbys.healthcare.domain.Department.class.getName() + ".doctors");
createCache(cm, tr.com.aurora.hbys.healthcare.domain.Doctor.class.getName());
createCache(cm, tr.com.aurora.hbys.healthcare.domain.Doctor.class.getName() + ".departments");
createCache(cm, tr.com.aurora.hbys.healthcare.domain.VisitService.class.getName());
createCache(cm, tr.com.aurora.hbys.healthcare.domain.VisitService.class.getName() + ".visits");
createCache(cm, tr.com.aurora.hbys.healthcare.domain.Visit.class.getName());
createCache(cm, tr.com.aurora.hbys.healthcare.domain.Visit.class.getName() + ".visitServices");
// jhipster-needle-ehcache-add-entry
};
}
Expand Down
Loading

0 comments on commit 4797ce7

Please sign in to comment.