Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation of OpenMRS in local system #1

Open
sajankos opened this issue Apr 2, 2019 · 11 comments
Open

Installation of OpenMRS in local system #1

sajankos opened this issue Apr 2, 2019 · 11 comments
Assignees

Comments

@sajankos
Copy link
Contributor

sajankos commented Apr 2, 2019

Need to install a later version of OpenMRS on my local system , to check if resources can be created by passing uuid

@sajankos sajankos self-assigned this Apr 2, 2019
@sajankos
Copy link
Contributor Author

sajankos commented Apr 2, 2019

Tried to upgrade webservices rest on local system.However when going to API documentation getting "No spec provided".
Tried installing 2.2.0 and putting the mod files into modules directory , getting an error with regard to legacy ui.
Trying to install 2.8 openmrs.Getting error
org.apache.jasper.JasperException: /WEB-INF/view/module/legacyui/login.jsp (line: 1, column: 1) Unable to find taglib "c" for URI: /WEB-INF/view/module/legacyui/taglibs/c-rt.tld

Trying to install latest legacy ui .legacyui-1.5.0

@sajankos
Copy link
Contributor Author

sajankos commented Apr 2, 2019

Tried to install the standalone also .That was also giving No spec provided, when we navigate to REST API documentation

@sajankos
Copy link
Contributor Author

sajankos commented Apr 4, 2019

Installed 2.2.0 , but when checked swagger documentation .The model was still showing as before , there is no option in the model to create a visit based on uuid from the client.

{
"patient": "uuid",
"visitType": "uuid",
"startDatetime": "2019-04-03",
"location": "uuid",
"indication": "string",
"stopDatetime": "2019-04-03",
"encounters": [
"uuid"
],
"attributes": [
{
"attributeType": "uuid",
"value": "string"
}
]
}

Created an issue in openmrs to get further clarification on this.

@sajankos
Copy link
Contributor Author

sajankos commented Apr 5, 2019

Got reply.
https://issues.openmrs.org/browse/RESTWS-729
but mentioning fix for 2.23.0.Does it mean that fix is available only for openmrs 2.23 ?

@sajankos
Copy link
Contributor Author

sajankos commented Apr 5, 2019

It could be REST Web services OMOD 2.23.0 , but swagger documentation not indicating that.Without the documentation , cannot not know exactly what parameter to pass.

@sajankos
Copy link
Contributor Author

sajankos commented Apr 5, 2019

@sajankos
Copy link
Contributor Author

sajankos commented Apr 5, 2019

Although not present in the documentation.It seems it accepts .I tried creating a person with

{
"uuid":"42237477-0c0d-4661-9dfe-8265faacfabc",
"gender": "M",
"names": [
{
"givenName": "John",
"middleName": "",
"familyName": "Kumar1"
}
],
"birthdate": "1996-02-06",
"attributes": [

],
"addresses": [
{
"address1": "",
"address2": "",
"cityVillage": "Benipathar",
"stateProvince": "Odisha",
"country": "India",
"postalCode": ""
}
]
}

Passed uuid 42237477-0c0d-4661-9dfe-8265faacfabc. Got response

{
"uuid": "42237477-0c0d-4661-9dfe-8265faacfabc",
"display": "John Kumar1",
"gender": "M",
"age": 23,
"birthdate": "1996-02-06T00:00:00.000+0000",
"birthdateEstimated": false,
"dead": false,
"deathDate": null,
"causeOfDeath": null,
"preferredName": {
"uuid": "16108b57-f44f-42ad-a4ec-c35e008385f3",
"display": "John Kumar1",
"links": [
{
"rel": "self",
"uri": "http://uat-refapp.openmrs.org/openmrs/ws/rest/v1/person/42237477-0c0d-4661-9dfe-8265faacfabc/name/16108b57-f44f-42ad-a4ec-c35e008385f3"
}
]
},
"preferredAddress": {
"uuid": "0f24bacc-8dbe-411b-a31a-9fed4ce51235",
"display": null,
"links": [
{
"rel": "self",
"uri": "http://uat-refapp.openmrs.org/openmrs/ws/rest/v1/person/42237477-0c0d-4661-9dfe-8265faacfabc/address/0f24bacc-8dbe-411b-a31a-9fed4ce51235"
}
]
},
"attributes": [],
"voided": false,
"deathdateEstimated": false,
"birthtime": null,
"links": [
{
"rel": "self",
"uri": "http://uat-refapp.openmrs.org/openmrs/ws/rest/v1/person/42237477-0c0d-4661-9dfe-8265faacfabc"
},
{
"rel": "full",
"uri": "http://uat-refapp.openmrs.org/openmrs/ws/rest/v1/person/42237477-0c0d-4661-9dfe-8265faacfabc?v=full"
}
],
"resourceVersion": "1.11"
}

Could also get person details with the uuid 42237477-0c0d-4661-9dfe-8265faacfabc.

@sajankos
Copy link
Contributor Author

sajankos commented Apr 5, 2019

Tried in our development droplet.The module for webservices should be updated to webservices.rest-2.23.0.omod .Tried to create patient with uuid.It seems to work.Will proceed with the other resources.

@sherrif10
Copy link

sajankos , are you still having issues with the problem of webservices.rest

@sajankos
Copy link
Contributor Author

sajankos commented Jul 9, 2019 via email

@sherrif10
Copy link

post it on openmrs talk including the above link for more help and dont worry to ping some core developers for help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants