IHE / ITI.MHD

The Mobile access to Health Documents (MHD) Profile defines one standardized interface to health documents for use by mobile devices so that deployment of mobile applications is more consistent and reusable. The transactions defined here leverage the document content- and format-.agnostic metadata
https://profiles.ihe.net/ITI/MHD/index.html
Creative Commons Attribution 4.0 International
9 stars 6 forks source link

Profiling of Bundle with PATCH is not aligning with example #222

Closed JohnMoehrke closed 2 months ago

JohnMoehrke commented 4 months ago

== fsh-generated\resources\Parameters-ex-patchParameters.json == ERROR: Parameters/ex-patchParameters: Parameters.parameter[0].part[0].name: Value is 'type' but must be 'operation' ERROR: Parameters/ex-patchParameters: Parameters.parameter[0].part[1].name: Value is 'path' but must be 'operation' ERROR: Parameters/ex-patchParameters: Parameters.parameter[0].part[2].name: Value is 'value' but must be 'operation'

== fsh-generated\resources\Bundle-ex-comprehensiveProvideDocumentBundleReplace.json == ERROR: Bundle/ex-comprehensiveProvideDocumentBundleReplace: Bundle.entry[1]: This element does not match any known slice defined in the profile https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.ProvideBundle|4.2.2-current and slicing is CLOSED: Bundle.entry[1]: Does not match slice 'SubmissionSet' (discriminator: resource.conformsTo('https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.SubmissionSet') and request.method.where(value = 'POST').exists()), Bundle.entry[1]: Details for Bundle matching against profile https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.SubmissionSet|4.2.2-current, Bundle.entry[1]: Does not match slice 'DocumentRefs' (discriminator: resource.conformsTo('https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.DocumentReference') and request.method.where(value = 'POST').exists()), Bundle.entry[1]: Details for Bundle matching against profile https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.DocumentReference|4.2.2-current, Bundle.entry[1]: Does not match slice 'UpdateDocumentRefs' (discriminator: resource.conformsTo('https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Patch.Parameters') and request.method.where(value = 'PATCH').exists()), Bundle.entry[1]: Details for Bundle matching against profile https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Patch.Parameters|4.2.2-current, Bundle.entry[1]: Does not match slice 'Documents' (discriminator: resource.conformsTo('http://hl7.org/fhir/StructureDefinition/Binary') and (request.method memberOf 'http://hl7.org/fhir/ValueSet/http-verb|4.0.1')), Bundle.entry[1]: Details for Bundle matching against profile http://hl7.org/fhir/StructureDefinition/Binary|4.0.1, Bundle.entry[1]: Does not match slice 'FhirDocuments' (discriminator: resource.conformsTo('http://hl7.org/fhir/StructureDefinition/Bundle') and request.method.where(value = 'POST').exists()), Bundle.entry[1]: Details for Bundle matching against profile http://hl7.org/fhir/StructureDefinition/Bundle|4.0.1, Bundle.entry[1]: Does not match slice 'Folders' (discriminator: resource.conformsTo('https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.Folder') and (request.method memberOf 'https://profiles.ihe.net/ITI/MHD/ValueSet/MHDprovideFolderActions')), Bundle.entry[1]: Details for Bundle matching against profile https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.Folder|4.2.2-current, Bundle.entry[1]: Does not match slice 'Patient' (discriminator: resource.conformsTo('http://hl7.org/fhir/StructureDefinition/Patient') and (request.method memberOf 'https://profiles.ihe.net/ITI/MHD/ValueSet/MHDprovidePatientActions')), Bundle.entry[1]: Details for Bundle matching against profile http://hl7.org/fhir/StructureDefinition/Patient|4.0.1 ERROR: Bundle/ex-comprehensiveProvideDocumentBundleReplace: Bundle.entry[1].resource.parameter[0].part[0].name: Value is 'type' but must be 'operation' ERROR: Bundle/ex-comprehensiveProvideDocumentBundleReplace: Bundle.entry[1].resource.parameter[0].part[1].name: Value is 'path' but must be 'operation' ERROR: Bundle/ex-comprehensiveProvideDocumentBundleReplace: Bundle.entry[1].resource.parameter[0].part[2].name: Value is 'value' but must be 'operation'

JohnMoehrke commented 4 months ago

@oliveregger can you look at this?

JohnMoehrke commented 4 months ago

is the PatchParameters (documentReference.fsh) not defined right?

JohnMoehrke commented 2 months ago

@oliveregger this ERROR will prevent us from publishing. I would rather remove the ability to use patch, than leave these errors in the build.