Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 8047bf9

Browse files
authored
Merge pull request #33 from philips-software/feature/dicom
DICOM Store support
2 parents c4b4d9a + 2fea860 commit 8047bf9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+2033
-47
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## v0.33.0
8+
- NEW: DICOM Config API support
9+
- Create internal package for consistent better versioning
10+
- S3Creds renaming (breaking change!)
11+
712
## v0.32.3
813
- Disable keep-alive for Cartel
914

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ The current implement covers only a subset of HSDP APIs. Basically we implement
3939
- [x] Contract management
4040
- [x] Data Item management
4141
- [x] S3 Credentials Policy management
42+
- [x] DICOM Store
43+
- [x] Config management
4244
- [x] Hosted Application Streaming (HAS) management
4345
- [x] Configuration
4446
- [x] Console settings

audit/client.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"bytes"
66
"encoding/json"
77
"fmt"
8+
"github.com/philips-software/go-hsdp-api/internal"
89
"io"
910
"io/ioutil"
1011
"net/http"
@@ -21,9 +22,8 @@ import (
2122
)
2223

2324
const (
24-
libraryVersion = "0.29.0"
25-
userAgent = "go-hsdp-api/audit/" + libraryVersion
26-
APIVersion = "2"
25+
userAgent = "go-hsdp-api/audit/" + internal.LibraryVersion
26+
APIVersion = "2"
2727
)
2828

2929
// OptionFunc is the function signature function for options

cartel/client.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"encoding/base64"
1010
"encoding/json"
1111
"fmt"
12+
"github.com/philips-software/go-hsdp-api/internal"
1213
"io"
1314
"io/ioutil"
1415
"net/http"
@@ -23,8 +24,7 @@ import (
2324
)
2425

2526
const (
26-
libraryVersion = "0.29.0"
27-
userAgent = "go-hsdp-api/cartel/" + libraryVersion
27+
userAgent = "go-hsdp-api/cartel/" + internal.LibraryVersion
2828
)
2929

3030
// Config the client

cdr/client.go

+4-6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"bytes"
66
"encoding/json"
77
"fmt"
8+
"github.com/philips-software/go-hsdp-api/internal"
89
"io"
910
"io/ioutil"
1011
"net/http"
@@ -19,9 +20,8 @@ import (
1920
)
2021

2122
const (
22-
libraryVersion = "0.29.0"
23-
userAgent = "go-hsdp-api/cdr/" + libraryVersion
24-
APIVersion = "1"
23+
userAgent = "go-hsdp-api/cdr/" + internal.LibraryVersion
24+
APIVersion = "1"
2525
)
2626

2727
// OptionFunc is the function signature function for options
@@ -48,7 +48,7 @@ type Client struct {
4848

4949
fhirStoreURL *url.URL
5050

51-
// User agent used when communicating with the HSDP IAM API.
51+
// User agent used when communicating with the HSDP CDR API
5252
UserAgent string
5353

5454
TenantSTU3 *TenantSTU3Service
@@ -187,8 +187,6 @@ func (c *Client) newCDRRequest(method, path string, bodyBytes []byte, options []
187187

188188
if method == "POST" || method == "PUT" || method == "PATCH" {
189189
bodyReader := bytes.NewReader(bodyBytes)
190-
191-
u.RawQuery = ""
192190
req.Body = ioutil.NopCloser(bodyReader)
193191
req.ContentLength = int64(bodyReader.Len())
194192
}

console/client.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"context"
77
"encoding/json"
88
"fmt"
9+
"github.com/philips-software/go-hsdp-api/internal"
910
"io"
1011
"io/ioutil"
1112
"net/http"
@@ -26,8 +27,7 @@ type tokenType int
2627
type ContextKey string
2728

2829
const (
29-
libraryVersion = "0.29.0"
30-
userAgent = "go-hsdp-api/console/" + libraryVersion
30+
userAgent = "go-hsdp-api/console/" + internal.LibraryVersion
3131
)
3232

3333
type tokenResponse struct {

0 commit comments

Comments
 (0)