Skip to content

there is no search "parameters" contents on the swagger part in fhir-swagger-generator-4.10.0-cli.jar #3821

@cpeter0702

Description

@cpeter0702

Describe the bug
I can generate Patient-swagger.json and see the search "parameters" contents in the paths./Patient.get.parameters through com.ibm.fhir.swagger.generator.FHIRSwaggerGenerator in fhir-swagger-generator-4.9.2-cli.jar
However, I cannot see any contents in the fhir-swagger-generator-4.10.2-cli.jar

Environment
Which version of IBM FHIR Server?
4.10.2

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://github.com/LinuxForHealth/FHIR/releases
  2. Download fhir-swagger-generator-4.10.2-cli.jar
  3. Use command line to execute java -cp fhir-swagger-generator-4.10.2-cli.jar com.ibm.fhir.swagger.generator.FHIRSwaggerGenerator
  4. Go into the folder swagger that just generated and open an example like Patient-swagger.json
  5. You cannot see any contents in the paths.'/Patient'.get.parameters

Expected behavior
I expect it to have the same contents as version 4.9.2.

"parameters": [
{
"name": "given",
"description": "Multiple Resources: \r\n\r\n* Patient: A portion of the given name of the patient\r\n* Practitioner: A portion of the given name\r\n",
"in": "query",
"type": "string",
"required": false
},
{
"name": "identifier",
"description": "A patient identifier",
"in": "query",
"type": "string",
"required": false
},
{
"name": "birthdate",
"description": "Multiple Resources: \r\n\r\n* Patient: The patient's date of birth\r\n* Person: The person's date of birth\r\n* RelatedPerson: The Related Person's date of birth\r\n",
"in": "query",
"type": "string",
"required": false
},
{
"name": "address",
"description": "Multiple Resources: \r\n\r\n* Patient: A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* Person: A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* Practitioner: A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* RelatedPerson: A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n",
"in": "query",
"type": "string",
"required": false
},
{
"name": "deceased",
"description": "This patient has been marked as deceased, or as a death date entered",
"in": "query",
"type": "string",
"required": false
},
{
"name": "address-state",
"description": "Multiple Resources: \r\n\r\n* Patient: A state specified in an address\r\n* Person: A state specified in an address\r\n* Practitioner: A state specified in an address\r\n* RelatedPerson: A state specified in an address\r\n",
"in": "query",
"type": "string",
"required": false
},
{
"name": "gender",
"description": "Multiple Resources: \r\n\r\n* Patient: Gender of the patient\r\n* Person: The gender of the person\r\n* Practitioner: Gender of the practitioner\r\n* RelatedPerson: Gender of the related person\r\n",
"in": "query",
"type": "string",
"required": false
},
{
"name": "general-practitioner",
"description": "Patient's nominated general practitioner, not the organization that manages the record",
"in": "query",
"type": "string",
"required": false
},
{
"name": "link",
"description": "All patients linked to the given patient",
"in": "query",
"type": "string",
"required": false
},
{
"name": "active",
"description": "Whether the patient record is active",
"in": "query",
"type": "string",
"required": false
},
{
"name": "language",
"description": "Language code (irrespective of use value)",
"in": "query",
"type": "string",
"required": false
},
{
"name": "address-postalcode",
"description": "Multiple Resources: \r\n\r\n* Patient: A postalCode specified in an address\r\n* Person: A postal code specified in an address\r\n* Practitioner: A postalCode specified in an address\r\n* RelatedPerson: A postal code specified in an address\r\n",
"in": "query",
"type": "string",
"required": false
},
{
"name": "address-country",
"description": "Multiple Resources: \r\n\r\n* Patient: A country specified in an address\r\n* Person: A country specified in an address\r\n* Practitioner: A country specified in an address\r\n* RelatedPerson: A country specified in an address\r\n",
"in": "query",
"type": "string",
"required": false
},
{
"name": "death-date",
"description": "The date of death has been provided and satisfies this search value",
"in": "query",
"type": "string",
"required": false
},
{
"name": "phonetic",
"description": "Multiple Resources: \r\n\r\n* Patient: A portion of either family or given name using some kind of phonetic matching algorithm\r\n* Person: A portion of name using some kind of phonetic matching algorithm\r\n* Practitioner: A portion of either family or given name using some kind of phonetic matching algorithm\r\n* RelatedPerson: A portion of name using some kind of phonetic matching algorithm\r\n",
"in": "query",
"type": "string",
"required": false
},
{
"name": "phone",
"description": "Multiple Resources: \r\n\r\n* Patient: A value in a phone contact\r\n* Person: A value in a phone contact\r\n* Practitioner: A value in a phone contact\r\n* PractitionerRole: A value in a phone contact\r\n* RelatedPerson: A value in a phone contact\r\n",
"in": "query",
"type": "string",
"required": false
},
{
"name": "organization",
"description": "The organization that is the custodian of the patient record",
"in": "query",
"type": "string",
"required": false
},
{
"name": "name",
"description": "A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text",
"in": "query",
"type": "string",
"required": false
},
{
"name": "address-use",
"description": "Multiple Resources: \r\n\r\n* Patient: A use code specified in an address\r\n* Person: A use code specified in an address\r\n* Practitioner: A use code specified in an address\r\n* RelatedPerson: A use code specified in an address\r\n",
"in": "query",
"type": "string",
"required": false
},
{
"name": "telecom",
"description": "Multiple Resources: \r\n\r\n* Patient: The value in any kind of telecom details of the patient\r\n* Person: The value in any kind of contact\r\n* Practitioner: The value in any kind of contact\r\n* PractitionerRole: The value in any kind of contact\r\n* RelatedPerson: The value in any kind of contact\r\n",
"in": "query",
"type": "string",
"required": false
},
{
"name": "address-city",
"description": "Multiple Resources: \r\n\r\n* Patient: A city specified in an address\r\n* Person: A city specified in an address\r\n* Practitioner: A city specified in an address\r\n* RelatedPerson: A city specified in an address\r\n",
"in": "query",
"type": "string",
"required": false
},
{
"name": "family",
"description": "Multiple Resources: \r\n\r\n* Patient: A portion of the family name of the patient\r\n* Practitioner: A portion of the family name\r\n",
"in": "query",
"type": "string",
"required": false
},
{
"name": "email",
"description": "Multiple Resources: \r\n\r\n* Patient: A value in an email contact\r\n* Person: A value in an email contact\r\n* Practitioner: A value in an email contact\r\n* PractitionerRole: A value in an email contact\r\n* RelatedPerson: A value in an email contact\r\n",
"in": "query",
"type": "string",
"required": false
},
{
"$ref": "#/parameters/_profileParam"
},
{
"$ref": "#/parameters/_lastUpdatedParam"
},
{
"$ref": "#/parameters/_tagParam"
},
{
"$ref": "#/parameters/_securityParam"
},
{
"$ref": "#/parameters/_sourceParam"
},
{
"$ref": "#/parameters/_idParam"
}
],

Additional context

  • You can download the file fhir-swagger-generator-4.9.2-cli.jar here
  • You can download the file fhir-swagger-generator-4.10.2-cli.jar here
  • thank you very much if you can help me to resolve this issue

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions