Skip to content

Custom SP Example

Eric Haas edited this page Apr 5, 2019 · 5 revisions

SP Example incorporating Expectation Extension to indicate support for multipleOr,multipleAnd, and modifiers for the Patient SearchParameter family

Note:

  1. derived from FHIR core SP
  2. Publish artifact in US Core IG
  3. Unless otherwise specified in existing US Core narrative as SHALL or SHOULD, default expectations MAY or SHOULD ( TBD )
{
	"fullUrl": "http://hl7.org/fhir/SearchParameter/individual-given",
	"resource": {
		"resourceType": "SearchParameter",
		"id": "individual-given",
		"extension": [
			{
				"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
				"valueCode": "trial-use"
			}
		],
                "derivedFrom": "http://hl7.org/fhir/SearchParameter/individual-given", // derived from FHIR Core SP
		"url": "http://hl7.org/fhir/us/core/SearchParameter/individual-given",  // new url
		"version": "4.0.0",
		"name": "given",
		"status": "active",
		"experimental": false,
		"date": "2019-04-05T12:26:16+00:00",
		"publisher": "Health Level Seven International (Patient Administration)",
		"contact": [
			{
				"telecom": [
					{
						"system": "url",
						"value": "http://hl7.org/fhir"
					}
				]
			}, {
				"telecom": [
					{
						"system": "url",
						"value": "http://www.hl7.org/Special/committees/pafm/index.cfm"
					}
				]
			}
		],
		"description": "Multiple Resources: \r\n\r\n* [Patient](patient.html): A portion of the given name of the patient\r\n* [Practitioner](practitioner.html): A portion of the given name\r\n",
		"code": "given",
		"base": [
			"Patient", "Practitioner"
		],
		"type": "string",
		"expression": "Patient.name.given | Practitioner.name.given",
		"xpath": "f:Patient/f:name/f:given | f:Practitioner/f:name/f:given",
		"xpathUsage": "normal",
		"multipleOr": true, //add extension here to indicate expectations
		"_multipleOr": { 
			"extension": [
				{
					"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
					"valueCode": "MAY"
				}
			]
		},
		"multipleAnd": true,   //add extension here to indicate expectations
		"_multipleAnd": {
			"extension": [
				{
					"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
					"valueCode": "MAY"
				}
			]
		},
		"modifier": [
			"missing", "exact", "contains"
		]
	},   //add extension here to indicate expectations
	"_modifier": [
		{
			"extension": [
				{
					"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
					"valueCode": "MAY"
				}
			]
		}, {
			"extension": [
				{
					"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
					"valueCode": "MAY"
				}
			]
		}, {
			"extension": [
				{
					"url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
					"valueCode": "MAY"
				}
			]
		}
	]
}
Clone this wiki locally