Stream: IG creation
Topic: opd-2
Jens Villadsen (Feb 11 2019 at 14:02):
Can anyone tell me why opd-2 (A search type can only be specified for parameters of type string) is listed as an error by the IgPublisher from the following operation definition:
<?xml version="1.0" encoding="UTF-8"?> <OperationDefinition xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <id value="dk-tm-patient-create-operationdefinition"/> <name value="Create Patient from Person"/> <status value="active"/> <kind value="operation"/> <date value="2019-02-02"/> <description value=" - ... "/> <code value="createPatientFromPerson"/> <comment value="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."/> <resource value="Patient"/> <system value="false"/> <type value="true"/> <instance value="false"/> <parameter> <name value="ssn"/> <use value="in"/> <min value="1"/> <max value="1"/> <documentation value="The social security number of the person resource located on the server on which this operation is executed."/> <type value="Identifier"/> <profile> <reference value="http://trifork.dk/fhir/StructureDefinition/dk-tm-ssn-identifier"/> </profile> </parameter> <parameter> <name value="managingOrganization"/> <use value="in"/> <min value="1"/> <max value="1"/> <documentation value="A reference to the managing organization that has the responsibility of the context of the created Patient resource"/> <type value="Reference"/> </parameter> <parameter> <name value="return"/> <use value="out"/> <min value="1"/> <max value="1"/> <documentation value="The Patient resource that has been created on the server"/> <type value="Bundle"/> </parameter> </OperationDefinition>
Lloyd McKenzie (Feb 11 2019 at 15:41):
No clue how that could happen. Is this the OperationDefinition as published in the output folder?
Jens Villadsen (Feb 11 2019 at 15:45):
From output folder:
<?xml version="1.0" encoding="UTF-8"?> <OperationDefinition xmlns="http://hl7.org/fhir"> <id value="dk-tm-patient-create-operationdefinition"/> <text> <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><h2>Create Patient from Person</h2><p>OPERATION: Create Patient from Person</p><p>The official URL for this operation definition is: </p><pre>http://trifork.dk/fhir/OperationDefinition/dk-tm-patient-create-operationdefinition</pre><div><p>This operation is used to create a new Patient resource from a Person resource. Once executed successfully the Patient resource is created on the server and as well returned in the response bundle. The operation takes the input parameters: - person identifier - organization reference and returns the Patient resource where the Person is used as a template. If no Person resource exists with the given SSN, the Person is created.</p> </div><p>URL: [base]/Patient/$createPatientFromPerson</p><p>Parameters</p><table class="grid"><tr><td><b>Use</b></td><td><b>Name</b></td><td><b>Cardinality</b></td><td><b>Type</b></td><td><b>Binding</b></td><td><b>Documentation</b></td></tr><tr><td>IN</td><td>ssn</td><td>1..1</td><td><a href="http:/hl7.org/fhir/STU3/datatypes.html#Identifier">Identifier</a></td><td/><td><div><p>The social security number of the person resource located on the server on which this operation is executed.</p> </div></td></tr><tr><td>IN</td><td>managingOrganization</td><td>1..1</td><td><a href="http:/hl7.org/fhir/STU3/datatypes.html#Reference">Reference</a></td><td/><td><div><p>A reference to the managing organization that has the responsibility of the context of the created Patient resource</p> </div></td></tr><tr><td>IN</td><td>provenance</td><td>1..1</td><td><a href="http:/hl7.org/fhir/STU3/provenance.html">Provenance</a></td><td/><td><div><p>A provenance resource that models what act this patient is under</p> </div></td></tr><tr><td>OUT</td><td>return</td><td>1..1</td><td><a href="http:/hl7.org/fhir/STU3/bundle.html">Bundle</a></td><td/><td><div><p>The Patient resource that has been created on the server</p> </div></td></tr></table><div><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> </div></div> </text> <url value="http://trifork.dk/fhir/OperationDefinition/dk-tm-patient-create-operationdefinition"/> <version value="0.0.1"/> <name value="Create Patient from Person"/> <status value="active"/> <kind value="operation"/> <date value="2019-02-02T00:00:00+01:00"/> <description value="This operation is used to create a new Patient resource from a Person resource. Once executed successfully the Patient resource is created on the server and as well returned in the response bundle. The operation takes the input parameters: - person identifier - organization reference and returns the Patient resource where the Person is used as a template. If no Person resource exists with the given SSN, the Person is created."/> <code value="createPatientFromPerson"/> <comment value="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."/> <resource value="Patient"/> <system value="false"/> <type value="true"/> <instance value="false"/> <parameter> <name value="ssn"/> <use value="in"/> <min value="1"/> <max value="1"/> <documentation value="The social security number of the person resource located on the server on which this operation is executed."/> <type value="Identifier"/> <profile> <reference value="http://trifork.dk/fhir/StructureDefinition/dk-tm-ssn-identifier"/> </profile> </parameter> <parameter> <name value="managingOrganization"/> <use value="in"/> <min value="1"/> <max value="1"/> <documentation value="A reference to the managing organization that has the responsibility of the context of the created Patient resource"/> <type value="Reference"/> </parameter> <parameter> <name value="provenance"/> <use value="in"/> <min value="1"/> <max value="1"/> <documentation value="A provenance resource that models what act this patient is under"/> <type value="Provenance"/> <profile> <reference value="http://trifork.dk/fhir/StructureDefinition/dk-tm-provenance"/> </profile> </parameter> <parameter> <name value="return"/> <use value="out"/> <min value="1"/> <max value="1"/> <documentation value="The Patient resource that has been created on the server"/> <type value="Bundle"/> </parameter> </OperationDefinition>
Lloyd McKenzie (Feb 11 2019 at 15:46):
No clue how that's even possible. @Grahame Grieve ?
Grahame Grieve (Feb 11 2019 at 16:33):
doesn't make sense. Can I reproduce this?
Jens Villadsen (Feb 11 2019 at 18:17):
I'll see what I can do
Last updated: Apr 12 2022 at 19:14 UTC