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

Dependency New Resource azurerm_healthcare_fhir_service #15913

Merged
merged 35 commits into from
May 20, 2022

Conversation

xiaxyi
Copy link
Contributor

@xiaxyi xiaxyi commented Mar 21, 2022

Adding FHIR service (Fast Healthcare Interoperability Resources) for the azure healthcare api2.0

The healthcare industry is rapidly transforming health data to the emerging standard of FHIR

FHIR service in Azure Health Data Services (hereby called the FHIR service) enables rapid exchange of data through Fast Healthcare Interoperability Resources (FHIR®) APIs, backed by a managed Platform-as-a Service (PaaS) offering in the cloud.

Dependency of pr #15759
acc tests:

--- PASS: TestAccHealthCareFhirServiceDataSource_basic (903.25s)
PASS
ok      github.com/hashicorp/terraform-provider-azurerm/internal/services/healthcare    903.940s

--- PASS: TestAccHealthcareApiFhirService_basic (875.40s)
--- PASS: TestAccHealthcareApiFhirService_requiresImport (923.26s)
--- PASS: TestAccHealthcareApiFhirService_complete (978.85s)
--- PASS: TestAccHealthcareApiFhirService_updateIdentity (1177.58s)
--- PASS: TestAccHealthcareApiFhirService_updateAcrLoginServer (2527.39s)
--- PASS: TestAccHealthcareApiFhirService_updateCors (2618.35s)
PASS
ok      github.com/hashicorp/terraform-provider-azurerm/internal/services/healthcare    2619.134s

@xiaxyi xiaxyi marked this pull request as ready for review March 22, 2022 06:40
@xiaxyi xiaxyi changed the title New Resource Fhir service for Healthcare workspace Dependency New Resource Fhir service for Healthcare workspace Mar 29, 2022
@JameySteinmann

This comment was marked as off-topic.

internal/services/healthcare/healthcare_fhir_resource.go Outdated Show resolved Hide resolved
Comment on lines 160 to 161
},
"max_age_in_seconds": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

etc

Comment on lines 182 to 190
kind = "fhir-R4"
authentication {
authority = "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47"
audience = "https://acctestfhir.fhir.azurehealthcareapis.com"
}
identity {
type = "SystemAssigned"
}
depends_on = [azurerm_healthcare_workspace.test]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how come we need a depends on here? this is often a sign of poor design

* `allowed_headers` - (Required) A set of headers to be allowed via CORS.
* `allowed_methods` - (Required) The methods to be allowed via CORS.
* `max_age_in_seconds` - (Required) The max age to be allowed via CORS.
* `allow_credentials` - (Boolean) If credentials are allowed via CORS.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we make this

Suggested change
* `allow_credentials` - (Boolean) If credentials are allowed via CORS.
* `credentials_allowed` - (Boolean) If credentials are allowed via CORS.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also we do not add boolean here, this should be optional or required

Suggested change
* `allow_credentials` - (Boolean) If credentials are allowed via CORS.
* `allow_credentials` - (optional|required) If credentials are allowed via CORS.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used the same property definition from the existing resource healthcare_service, should I change that resource too?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes please


* `authentication` - (Required) An `authentication` block as defined below.

* `export_storage_account_name` - (Optional) specifies the name of the export storage account which accepts the operation configuration information
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

grammer, caps, punciation

Suggested change
* `export_storage_account_name` - (Optional) specifies the name of the export storage account which accepts the operation configuration information
* `export_storage_account_name` - (Optional) Specifies the name of the storage account which the operation configuration information is exported to.

please fix all documentation grammer, caps and punctuation.

also this property is unclear, maybe it should be configuration_export_storage_account_name

@xiaxyi
Copy link
Contributor Author

xiaxyi commented May 12, 2022

@katbyte Thanks for the comments, updated the code

"identity": commonschema.SystemAssignedIdentityOptional(),

// can't use the registry ID due to the ID cannot be obtained when setting the property in state file
"acr_login_servers": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this property? name? url? id? can we put what the user hsould supply in the name?

Suggested change
"acr_login_servers": {
"acr_login_server_urls": {

Copy link
Contributor Author

@xiaxyi xiaxyi May 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renamed to container_registry_login_server_url since it's the login server url of azure container registry

},
},

"cors_configuration": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

configuration is redundant

Suggested change
"cors_configuration": {
"cors": {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated, will change existing healthcare_service_resource.go as well

@katbyte katbyte changed the title Dependency New Resource Fhir service for Healthcare workspace Dependency New Resource azurerm_healthcare_fhir_service May 20, 2022
Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🦋

@katbyte katbyte merged commit 67f7318 into hashicorp:main May 20, 2022
katbyte added a commit that referenced this pull request May 20, 2022
@github-actions github-actions bot added this to the v3.7.0 milestone May 20, 2022
@github-actions
Copy link

This functionality has been released in v3.7.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 20, 2022
@xiaxyi xiaxyi deleted the healthcareapi/fhir branch August 14, 2022 00:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants