Skip to content

Commit

Permalink
fixes for snippets and text
Browse files Browse the repository at this point in the history
  • Loading branch information
meyertst-aws authored and ford-at-aws committed Oct 16, 2023
1 parent 406aadb commit 540a99a
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 61 deletions.
127 changes: 72 additions & 55 deletions .doc_gen/metadata/medical-imaging_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ medical-imaging_CreateDatastore:
- sdk_version: 2
github: javav2/example_code/medicalimaging
excerpts:
- snippet_tags:
- description:
snippet_tags:
- medicalimaging.java2.create_datastore.main
JavaScript:
versions:
Expand Down Expand Up @@ -123,7 +124,8 @@ medical-imaging_ListDatastores:
- sdk_version: 2
github: javav2/example_code/medicalimaging
excerpts:
- snippet_tags:
- description:
snippet_tags:
- medicalimaging.java2.list_datastores.main
JavaScript:
versions:
Expand Down Expand Up @@ -163,7 +165,8 @@ medical-imaging_GetDatastore:
- sdk_version: 2
github: javav2/example_code/medicalimaging
excerpts:
- snippet_tags:
- description:
snippet_tags:
- medicalimaging.java2.get_datastore.main
JavaScript:
versions:
Expand Down Expand Up @@ -202,7 +205,8 @@ medical-imaging_StartDICOMImportJob:
- sdk_version: 2
github: javav2/example_code/medicalimaging
excerpts:
- snippet_tags:
- description:
snippet_tags:
- medicalimaging.java2.start_dicom_import_job.main
services:
medical-imaging: {StartDICOMImportJob}
Expand Down Expand Up @@ -233,7 +237,8 @@ medical-imaging_GetDICOMImportJob:
- sdk_version: 2
github: javav2/example_code/medicalimaging
excerpts:
- snippet_tags:
- description:
snippet_tags:
- medicalimaging.java2.get_dicom_import_job.main
services:
medical-imaging: {GetDICOMImportJob}
Expand Down Expand Up @@ -264,7 +269,8 @@ medical-imaging_ListDICOMImportJobs:
- sdk_version: 2
github: javav2/example_code/medicalimaging
excerpts:
- snippet_tags:
- description:
snippet_tags:
- medicalimaging.java2.list_dicom_import_jobs.main
services:
medical-imaging: {ListDICOMImportJobs}
Expand Down Expand Up @@ -307,8 +313,18 @@ medical-imaging_SearchImageSets:
- sdk_version: 2
github: javav2/example_code/medicalimaging
excerpts:
- snippet_tags:
- description: The utility function for searching image sets.
snippet_tags:
- medicalimaging.java2.search_imagesets.main
- description: "Use case #1: EQUAL operator."
snippet_tags:
- medicalimaging.java2.search_imagesets.use_case1
- description: "Use case #2: BETWEEN operator using DICOMStudyDate and DICOMStudyTime."
snippet_tags:
- medicalimaging.java2.search_imagesets.use_case2
- description: "Use case #3: BETWEEN operator using createdAt. Time studies were previously persisted."
snippet_tags:
- medicalimaging.java2.search_imagesets.use_case3
services:
medical-imaging: {SearchImageSets}
medical-imaging_GetImageSet:
Expand Down Expand Up @@ -338,7 +354,8 @@ medical-imaging_GetImageSet:
- sdk_version: 2
github: javav2/example_code/medicalimaging
excerpts:
- snippet_tags:
- description:
snippet_tags:
- medicalimaging.java2.get_imageset.main
services:
medical-imaging: {GetImageSet}
Expand Down Expand Up @@ -375,7 +392,8 @@ medical-imaging_GetImageSetMetadata:
- sdk_version: 2
github: javav2/example_code/medicalimaging
excerpts:
- snippet_tags:
- description:
snippet_tags:
- medicalimaging.java2.get_imageset.main
services:
medical-imaging: {GetImageSetMetadata}
Expand Down Expand Up @@ -406,7 +424,8 @@ medical-imaging_GetImageFrame:
- sdk_version: 2
github: javav2/example_code/medicalimaging
excerpts:
- snippet_tags:
- description:
snippet_tags:
- medicalimaging.java2.get_image_frame.main
services:
medical-imaging: {GetImageFrame}
Expand All @@ -432,6 +451,14 @@ medical-imaging_ListImageSetVersions:
- description:
snippet_tags:
- medical-imaging.JavaScript.imageset.listImageSetVersionsV3
Java:
versions:
- sdk_version: 2
github: javav2/example_code/medicalimaging
excerpts:
- description:
snippet_tags:
- medicalimaging.java2.list_imageset_versions.main
services:
medical-imaging: {ListImageSetVersions}
medical-imaging_UpdateImageSetMetadata:
Expand Down Expand Up @@ -464,7 +491,8 @@ medical-imaging_UpdateImageSetMetadata:
- sdk_version: 2
github: javav2/example_code/medicalimaging
excerpts:
- snippet_tags:
- description:
snippet_tags:
- medicalimaging.java2.update_image_set_metadata.main
services:
medical-imaging: {UpdateImageSetMetadata}
Expand Down Expand Up @@ -501,7 +529,8 @@ medical-imaging_CopyImageSet:
- sdk_version: 2
github: javav2/example_code/medicalimaging
excerpts:
- snippet_tags:
- description:
snippet_tags:
- medicalimaging.java2.copy_imageset.main
services:
medical-imaging: {CopyImageSet}
Expand Down Expand Up @@ -532,7 +561,8 @@ medical-imaging_DeleteImageSet:
- sdk_version: 2
github: javav2/example_code/medicalimaging
excerpts:
- snippet_tags:
- description:
snippet_tags:
- medicalimaging.java2.delete_imageset.main
services:
medical-imaging: {DeleteImageSet}
Expand Down Expand Up @@ -563,7 +593,8 @@ medical-imaging_TagResource:
- sdk_version: 2
github: javav2/example_code/medicalimaging
excerpts:
- snippet_tags:
- description:
snippet_tags:
- medicalimaging.java2.tag_resource.main
services:
medical-imaging: {TagResource}
Expand Down Expand Up @@ -594,7 +625,8 @@ medical-imaging_UntagResource:
- sdk_version: 2
github: javav2/example_code/medicalimaging
excerpts:
- snippet_tags:
- description:
snippet_tags:
- medicalimaging.java2.untag_resource.main
services:
medical-imaging: {UntagResource}
Expand Down Expand Up @@ -625,7 +657,8 @@ medical-imaging_ListTagsForResource:
- sdk_version: 2
github: javav2/example_code/medicalimaging
excerpts:
- snippet_tags:
- description:
snippet_tags:
- medicalimaging.java2.list_tags_for_resource.main
services:
medical-imaging: {ListTagsForResource}
Expand Down Expand Up @@ -658,45 +691,6 @@ medical-imaging_tagging_datastores:
- description: The utility function for untagging a resource.
snippet_tags:
- medical-imaging.JavaScript.resource.unTagResourceV3
services:
medical-imaging: {TagResource, UntagResource, ListTagsForResource}
medical-imaging_tagging_imagesets:
title: Tagging a &AHI; image set using an &AWS; SDK
title_abbrev: Tagging an image set
synopsis: tag a &AHI; image set.
category: Scenarios
languages:
JavaScript:
versions:
- sdk_version: 3
github: javascriptv3/example_code/medical-imaging
excerpts:
- description: To tag an image set.
snippet_tags:
- medical-imaging.JavaScript.imageset.tagging.V3
- description: The utility function for tagging a resource.
snippet_tags:
- medical-imaging.JavaScript.resource.tagResourceV3
- description: To list tags for an image set.
snippet_tags:
- medical-imaging.JavaScript.imageset.list_tags.V3
- description: The utility function for listing a resource's tags.
snippet_tags:
- medical-imaging.JavaScript.resource.listTagsForResourceV3
- description: To untag an image set.
snippet_tags:
- medical-imaging.JavaScript.imageset.untag.V3
- description: The utility function for untagging a resource.
snippet_tags:
- medical-imaging.JavaScript.resource.unTagResourceV3
services:
medical-imaging: {TagResource, UntagResource, ListTagsForResource}
medical-imaging_tagging_datastores:
title: Tagging a &AHI; data store using an &AWS; SDK
title_abbrev: Tagging a data store
synopsis: tag a &AHI; data store.
category: Scenarios
languages:
Java:
versions:
- sdk_version: 2
Expand Down Expand Up @@ -731,6 +725,29 @@ medical-imaging_tagging_imagesets:
synopsis: tag a &AHI; image set.
category: Scenarios
languages:
JavaScript:
versions:
- sdk_version: 3
github: javascriptv3/example_code/medical-imaging
excerpts:
- description: To tag an image set.
snippet_tags:
- medical-imaging.JavaScript.imageset.tagging.V3
- description: The utility function for tagging a resource.
snippet_tags:
- medical-imaging.JavaScript.resource.tagResourceV3
- description: To list tags for an image set.
snippet_tags:
- medical-imaging.JavaScript.imageset.list_tags.V3
- description: The utility function for listing a resource's tags.
snippet_tags:
- medical-imaging.JavaScript.resource.listTagsForResourceV3
- description: To untag an image set.
snippet_tags:
- medical-imaging.JavaScript.imageset.untag.V3
- description: The utility function for untagging a resource.
snippet_tags:
- medical-imaging.JavaScript.resource.unTagResourceV3
Java:
versions:
- sdk_version: 2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//snippet-sourcedescription:[StartDicomImportJob.java demonstrates how to import bulk data into in an AWS HealthImaging data store.]
//snippet-sourcedescription:[StartDicomImportJob.java demonstrates how to get an import job's properties.]
//snippet-keyword:[AWS SDK for Java v2]
//snippet-keyword:[AWS HealthImaging]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//snippet-sourcedescription:[StartDicomImportJob.java demonstrates how to import bulk data into in an AWS HealthImaging data store.]
//snippet-sourcedescription:[StartDicomImportJob.java demonstrates how to list import jobs in AWS HealthImaging.]
//snippet-keyword:[AWS SDK for Java v2]
//snippet-keyword:[AWS HealthImaging]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
SPDX-License-Identifier: Apache-2.0
*/

//snippet-start:[medicalimaging.java2.get_imageset_versions.import]
//snippet-start:[medicalimaging.java2.list_imageset_versions.import]

import software.amazon.awssdk.auth.credentials.ProfileCredentialsProvider;
import software.amazon.awssdk.regions.Region;
Expand All @@ -22,7 +22,7 @@
import java.util.ArrayList;
import java.util.List;

//snippet-end:[medicalimaging.java2.get_imageset_versions.import]
//snippet-end:[medicalimaging.java2.list_imageset_versions.import]

/**
* Before running this Java V2 code example, set up your development environment, including your credentials.
Expand Down Expand Up @@ -63,7 +63,7 @@ public static void main(String[] args) {
medicalImagingClient.close();
}

//snippet-start:[medicalimaging.java2.get_imageset_versions.main]
//snippet-start:[medicalimaging.java2.list_imageset_versions.main]
public static List<ImageSetProperties> listMedicalImageSetVersions(MedicalImagingClient medicalImagingClient,
String datastoreId,
String imagesetId) {
Expand All @@ -85,5 +85,5 @@ public static List<ImageSetProperties> listMedicalImageSetVersions(MedicalImagin

return null;
}
//snippet-end:[medicalimaging.java2.get_imageset_versions.main]
//snippet-end:[medicalimaging.java2.list_imageset_versions.main]
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public static void main(String[] args) {
.build();

// Use case #1: EQUAL operator.
//snippet-start:[medicalimaging.java2.search_imagesets.use_case1]
List<SearchFilter> searchFilters = Collections.singletonList(SearchFilter.builder()
.operator(Operator.EQUAL)
.values(SearchByAttributeValue.builder()
Expand All @@ -71,8 +72,10 @@ public static void main(String[] args) {
System.out.println("The image sets for patient " + patientId + " are:\n" + imageSetsMetadataSummaries);
System.out.println();
}
//snippet-end:[medicalimaging.java2.search_imagesets.use_case1]

// Use case #2: BETWEEN operator using DICOMStudyDate and DICOMStudyTime.
//snippet-start:[medicalimaging.java2.search_imagesets.use_case2]
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd");
searchFilters = Collections.singletonList(SearchFilter.builder()
.operator(Operator.BETWEEN)
Expand All @@ -97,8 +100,10 @@ public static void main(String[] args) {
imageSetsMetadataSummaries);
System.out.println();
}
//snippet-end:[medicalimaging.java2.search_imagesets.use_case2]

// Use case #3: BETWEEN operator using createdAt. Time studies were previously persisted.
//snippet-start:[medicalimaging.java2.search_imagesets.use_case3]
searchFilters = Collections.singletonList(SearchFilter.builder()
.operator(Operator.BETWEEN)
.values(SearchByAttributeValue.builder()
Expand All @@ -115,6 +120,7 @@ public static void main(String[] args) {
System.out.println("The image sets searched with BETWEEN operator using createdAt are:\n " + imageSetsMetadataSummaries);
System.out.println();
}
//snippet-end:[medicalimaging.java2.search_imagesets.use_case3]

medicalImagingClient.close();
}
Expand Down

0 comments on commit 540a99a

Please sign in to comment.