{"id":17996156,"url":"https://github.com/027xiguapi/dicomweb-server-db","last_synced_at":"2025-04-04T06:13:04.622Z","repository":{"id":58123077,"uuid":"530109177","full_name":"027xiguapi/dicomweb-server-db","owner":"027xiguapi","description":"Lightweight DICOMweb Server with Pouchdb","archived":false,"fork":false,"pushed_at":"2022-08-29T07:21:54.000Z","size":4335,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T10:05:46.044Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/027xiguapi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-29T07:20:39.000Z","updated_at":"2023-12-12T12:27:30.000Z","dependencies_parsed_at":"2022-08-31T17:50:19.848Z","dependency_job_id":null,"html_url":"https://github.com/027xiguapi/dicomweb-server-db","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/027xiguapi%2Fdicomweb-server-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/027xiguapi%2Fdicomweb-server-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/027xiguapi%2Fdicomweb-server-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/027xiguapi%2Fdicomweb-server-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/027xiguapi","download_url":"https://codeload.github.com/027xiguapi/dicomweb-server-db/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247128753,"owners_count":20888235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-29T21:13:37.306Z","updated_at":"2025-04-04T06:13:04.604Z","avatar_url":"https://github.com/027xiguapi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dicomweb-server\nLightweight DICOMweb Server with CouchDB\n\n*Note: this is a work in progress and not intended for production or clinical use.*\n\nMore background information can found in https://na-mic.github.io/ProjectWeek/PW30_2019_GranCanaria/Projects/DICOMweb-CouchDB/\n\n## Architecture\n\nThe dicomweb-server is a fastify server that speaks DICOMweb to clients and fullfills their requests using CouchDB or other plugin services.\n![Overall design](image.png)\n\n## Authentification\n\nBy default, the authentication is none and the application mode is development.\nYou can change the authentication method by changing the auth attribute in config/development.js\nThe value you put in should be the name of a json file in the config directory. A sample config for authentication should have the following information\n\n\n`{\n    \"realm\": \"your-realm\",\n    \"authServerUrl\": \"your-auth-server-port-and-port\",\n    \"clientId\": \"your-client-id\",\n    \"clientSecret\": \"your-secret\"\n}`\n\nIf using the default authentication of couchdb with an admin account, you will need to specify the admin username and password in config/development.js in the below style:\n\n`{\n    dbServer: process.env.DB_SERVER || 'http://username:password@localhost'\n}`\n\n\n\n## Installation\n\n```\ngit clone git://github.com/dcmjs-org/dicomweb-server\n\ncd dicomweb-server\nnpm install\n```\n\nInstall [CouchDB](http://couchdb.apache.org/).\n\nInitially your CouchDB database starts empty, but dicomweb-server will set up the internal database\nand design documents so there is no need to configure it.\n\nYou can run tests by running `npm test`.\n\n## Running\n\nBe sure to have [CouchDB](http://couchdb.apache.org/) running at localhost:5984 (the default), then start the dicomweb-server:\n\n```\nnpm start\n```\n\n## Usage\n\nThe server should be ultimately compatible with any DICOMweb client library.\n\nWe test with a Python implementation [dicomweb_client](https://github.com/clindatsci/dicomweb-client).\n\nGet study list:\n\n`dicomweb_client --url http://localhost:5985 search studies`\n\nStore a DATA_DIRECTORY of DICOM image files (here with the \".IMA\" extension).  Adjust the command line to match the location and naming of your files.  (The `-n25` option to xargs is for batching files, leading to fewer calls and thus less overhead.)\n\n`find DATA_DIRECTORY -iname \\*.IMA -print0 | xargs -0 -n25 dicomweb_client --url http://localhost:5985 store instances`\n\n\n## Use with a viewer\n\nIt's possible to use this server as a backend to the [OHIF Viewer](http://ohif.org) using a configuration like this. (See [this file](https://github.com/OHIF/Viewers/blob/master/platform/viewer/public/config/default.js#L1-L31)).\n\n```\n     const dicomweb_serverConfig = {\n        routerBasename: \"/ohif\",\n        rootUrl: \"http://localhost:2016/ohif\",\n        servers: {\n          \"dicomWeb\": [\n            {\n              \"name\": \"dicomweb_server\",\n              \"wadoUriRoot\": \"http://localhost:5985\",\n              \"qidoRoot\": \"http://localhost:5985\",\n              \"wadoRoot\": \"http://localhost:5985\",\n              \"qidoSupportsIncludeField\": true,\n              \"imageRendering\": \"wadouri\",\n              \"thumbnailRendering\": \"wadors\",\n              \"requestOptions\": {\n                  \"requestFromBrowser\": true\n              }\n            },\n          ]\n        }\n      };\n```\n\nNote that currently the `imageRendering` option must be `wadouri`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F027xiguapi%2Fdicomweb-server-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F027xiguapi%2Fdicomweb-server-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F027xiguapi%2Fdicomweb-server-db/lists"}