Skip to content

Commit

Permalink
EventGrid - AzureHealthcareApis swagger update for GA (Azure#20918)
Browse files Browse the repository at this point in the history
* add new dicom event types

* Remove dicom prefix

* serviceSequence -> sequenceNumber

* fix prettier errors

* Add example files to main swagger
  • Loading branch information
jnlycklama authored and anandanthony committed Dec 16, 2022
1 parent 464e1db commit bedeb6f
Show file tree
Hide file tree
Showing 8 changed files with 135 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,76 @@
}
}
},
"HealthcareDicomImageCreatedEventData": {
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.HealthcareApis.DicomImageCreated event.",
"type": "object",
"properties": {
"imageStudyInstanceUid": {
"description": "Unique identifier for the Study",
"type": "string"
},
"imageSeriesInstanceUid": {
"description": "Unique identifier for the Series",
"type": "string"
},
"imageSopInstanceUid": {
"description": "Unique identifier for the DICOM Image",
"type": "string"
},
"serviceHostName": {
"description": "Domain name of the DICOM account for this image.",
"type": "string"
},
"sequenceNumber": {
"description": "Sequence number of the DICOM Service within Azure Health Data Services. It is unique for every image creation and deletion within the service.",
"type": "integer",
"format": "int64"
}
},
"x-ms-examples": {
"DicomImageCreatedCloudEventsSchema": {
"$ref": "./examples/cloud-events-schema/dicom_image_created.json"
},
"DicomImageCreatedEventGridSchema": {
"$ref": "./examples/event-grid-schema/dicom_image_created.json"
}
}
},
"HealthcareDicomImageDeletedEventData": {
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.HealthcareApis.DicomImageDeleted event.",
"type": "object",
"properties": {
"imageStudyInstanceUid": {
"description": "Unique identifier for the Study",
"type": "string"
},
"imageSeriesInstanceUid": {
"description": "Unique identifier for the Series",
"type": "string"
},
"imageSopInstanceUid": {
"description": "Unique identifier for the DICOM Image",
"type": "string"
},
"serviceHostName": {
"description": "Host name of the DICOM account for this image.",
"type": "string"
},
"sequenceNumber": {
"description": "Sequence number of the DICOM Service within Azure Health Data Services. It is unique for every image creation and deletion within the service.",
"type": "integer",
"format": "int64"
}
},
"x-ms-examples": {
"DicomImageDeletedCloudEventsSchema": {
"$ref": "./examples/cloud-events-schema/dicom_image_deleted.json"
},
"DicomImageDeletedEventGridSchema": {
"$ref": "./examples/event-grid-schema/dicom_image_deleted.json"
}
}
},
"HealthcareFhirResourceType": {
"description": "Schema of FHIR resource type enumeration.",
"type": "string",
Expand Down Expand Up @@ -907,4 +977,3 @@
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"source": "/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.HealthcareApis/workspaces/{workspace-name}",
"subject": "{dicom-account}.dicom.azurehealthcareapis.com/v1/studies/1.2.3.4.3/series/1.2.3.4.3.9423673/instances/1.3.6.1.4.1.45096.2.296485376.2210.1633373143.864442",
"type": "Microsoft.HealthcareApis.DicomImageCreated",
"time": "2022-09-15T01:14:04.5613214Z",
"id": "d621839d-958b-4142-a638-bb966b4f7dfd",
"data": {
"imageStudyInstanceUid": "1.2.3.4.3",
"imageSeriesInstanceUid": "1.2.3.4.3.9423673",
"imageSopInstanceUid": "1.3.6.1.4.1.45096.2.296485376.2210.1633373143.864442",
"serviceHostName": "{dicom-account}.dicom.azurehealthcareapis.com",
"sequenceNumber": 1
},
"specVersion": "1.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"source": "/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.HealthcareApis/workspaces/{workspace-name}",
"subject": "{dicom-account}.dicom.azurehealthcareapis.com/v1/studies/1.2.3.4.3/series/1.2.3.4.3.9423673/instances/1.3.6.1.4.1.45096.2.296485376.2210.1633373143.864442",
"type": "Microsoft.HealthcareApis.DicomImageDeleted",
"time": "2022-09-15T01:14:04.5613214Z",
"id": "eac1c1a0-ffa8-4b28-97cc-1d8b9a0a6021",
"data": {
"imageStudyInstanceUid": "1.2.3.4.3",
"imageSeriesInstanceUid": "1.2.3.4.3.9423673",
"imageSopInstanceUid": "1.3.6.1.4.1.45096.2.296485376.2210.1633373143.864442",
"serviceHostName": "{dicom-account}.dicom.azurehealthcareapis.com",
"sequenceNumber": 2
},
"specVersion": "1.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
"resourceVersionId": 1
},
"specVersion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
"resourceVersionId": 3
},
"specVersion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
"resourceVersionId": 2
},
"specVersion": "1.0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"id": "d621839d-958b-4142-a638-bb966b4f7dfd",
"topic": "/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.HealthcareApis/workspaces/{workspace-name}",
"subject": "{dicom-account}.dicom.azurehealthcareapis.com/v1/studies/1.2.3.4.3/series/1.2.3.4.3.9423673/instances/1.3.6.1.4.1.45096.2.296485376.2210.1633373143.864442",
"data": {
"imageStudyInstanceUid": "1.2.3.4.3",
"imageSeriesInstanceUid": "1.2.3.4.3.9423673",
"imageSopInstanceUid": "1.3.6.1.4.1.45096.2.296485376.2210.1633373143.864442",
"serviceHostName": "{dicom-account}.dicom.azurehealthcareapis.com",
"sequenceNumber": 1
},
"eventType": "Microsoft.HealthcareApis.DicomImageCreated",
"dataVersion": "1",
"metadataVersion": "1",
"eventTime": "2022-09-15T01:14:04.5613214Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"id": "eac1c1a0-ffa8-4b28-97cc-1d8b9a0a6021",
"topic": "/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.HealthcareApis/workspaces/{workspace-name}",
"subject": "{dicom-account}.dicom.azurehealthcareapis.com/v1/studies/1.2.3.4.3/series/1.2.3.4.3.9423673/instances/1.3.6.1.4.1.45096.2.296485376.2210.1633373143.864442",
"data": {
"imageStudyInstanceUid": "1.2.3.4.3",
"imageSeriesInstanceUid": "1.2.3.4.3.9423673",
"imageSopInstanceUid": "1.3.6.1.4.1.45096.2.296485376.2210.1633373143.864442",
"serviceHostName": "{dicom-account}.dicom.azurehealthcareapis.com",
"sequenceNumber": 2
},
"eventType": "Microsoft.HealthcareApis.DicomImageDeleted",
"dataVersion": "1",
"metadataVersion": "1",
"eventTime": "2022-09-15T01:16:07.5692209Z"
}

0 comments on commit bedeb6f

Please sign in to comment.