PackagesCanonicalsLogsProblems
    Packages
    fhir.hrsa.uds-plus@2.0.0
    http://fhir.org/guides/hrsa/uds-plus/StructureDefinition/de-identified-uds-plus-relatedperson
{
  "description": "This Patient profile represents a RelatedPerson of a Patient availing HRSA services.",
  "_filename": "StructureDefinition-de-identified-uds-plus-relatedperson.json",
  "package_name": "fhir.hrsa.uds-plus",
  "date": "2025-03-28T22:44:56+11:00",
  "derivation": "constraint",
  "meta": {
    "source": "#3LDMUQYYwafwTzqK",
    "versionId": "12",
    "lastUpdated": "2022-07-12T02:03:11.293+00:00"
  },
  "publisher": "HRSA BPHC",
  "fhirVersion": "4.0.1",
  "jurisdiction": [ {
    "coding": [ {
      "code": "001",
      "system": "http://unstats.un.org/unsd/methods/m49/m49.htm"
    } ]
  } ],
  "name": "DeIdentifiedUDSPlusRelatedPerson",
  "mapping": [ {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  }, {
    "uri": "http://hl7.org/fhir/fivews",
    "name": "FiveWs Pattern Mapping",
    "identity": "w5"
  }, {
    "uri": "http://hl7.org/v2",
    "name": "HL7 v2 Mapping",
    "identity": "v2"
  } ],
  "abstract": false,
  "type": "RelatedPerson",
  "experimental": "false",
  "resourceType": "StructureDefinition",
  "title": "De-Identified UDS Plus RelatedPerson",
  "package_version": "2.0.0",
  "extension": [ {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger": 2,
    "_valueInteger": {
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueCanonical": "http://fhir.org/guides/hrsa/uds-plus/ImplementationGuide/fhir.hrsa.uds-plus"
      } ]
    }
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode": "trial-use",
    "_valueCode": {
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueCanonical": "http://fhir.org/guides/hrsa/uds-plus/ImplementationGuide/fhir.hrsa.uds-plus"
      } ]
    }
  } ],
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "dom-2",
        "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
        "xpath": "not(parent::f:contained and f:contained)",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.contained.empty()"
      }, {
        "key": "dom-3",
        "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
        "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()"
      }, {
        "key": "dom-4",
        "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
        "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"
      }, {
        "key": "dom-5",
        "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
        "xpath": "not(exists(f:contained/*/f:meta/f:security))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.meta.security.empty()"
      }, {
        "key": "dom-6",
        "human": "A resource should have narrative for robust management",
        "xpath": "exists(f:text/h:div)",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "warning",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
          "valueBoolean": true
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
          "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
        } ],
        "expression": "text.`div`.exists()"
      } ],
      "path": "RelatedPerson",
      "min": 0,
      "definition": "The UDS+ profile is based on the **FHIR RelatedPerson resource and establishes the core elements, extensions, vocabularies and value sets for representing RelatedPerson of patients for UDS+ program.",
      "isModifier": false,
      "short": "De-Identified UDS Plus RelatedPerson",
      "mapping": [ {
        "map": "Entity. Role, or Act",
        "identity": "rim"
      }, {
        "map": "role",
        "identity": "rim"
      } ],
      "max": "*",
      "id": "RelatedPerson",
      "base": {
        "max": "*",
        "min": 0,
        "path": "RelatedPerson"
      },
      "isSummary": false
    }, {
      "path": "RelatedPerson.id",
      "min": 0,
      "definition": "De-dentified RelatedPerson identifier.",
      "isModifier": false,
      "short": "The de-identified RelatedPerson identifier created by the health center to send data to HRSA.",
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "id"
        } ]
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "RelatedPerson.id",
      "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.id"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "RelatedPerson.meta",
      "min": 0,
      "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
      "isModifier": false,
      "short": "Metadata about the resource",
      "type": [ {
        "code": "Meta"
      } ],
      "max": "1",
      "id": "RelatedPerson.meta",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.meta"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "RelatedPerson.implicitRules",
      "min": 0,
      "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
      "isModifier": true,
      "short": "A set of rules under which this content was created",
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "RelatedPerson.implicitRules",
      "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.implicitRules"
      },
      "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "RelatedPerson.language",
      "min": 0,
      "definition": "The base language in which the resource is written.",
      "isModifier": false,
      "short": "Language of the resource content",
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/languages",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
          "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "Language"
        } ],
        "description": "A human language."
      },
      "max": "1",
      "id": "RelatedPerson.language",
      "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.language"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "RelatedPerson.text",
      "min": 0,
      "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
      "isModifier": false,
      "short": "Cannot include any text in the resource as part of the de-identified data.",
      "mapping": [ {
        "map": "Act.text?",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Narrative"
      } ],
      "mustSupport": false,
      "alias": [ "narrative", "html", "xhtml", "display" ],
      "max": "0",
      "id": "RelatedPerson.text",
      "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "DomainResource.text"
      },
      "isSummary": false
    }, {
      "path": "RelatedPerson.contained",
      "min": 0,
      "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
      "isModifier": false,
      "short": "Cannot include any contained resources in the resource as part of the de-identified data.",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Resource"
      } ],
      "mustSupport": false,
      "alias": [ "inline resources", "anonymous resources", "contained resources" ],
      "max": "0",
      "id": "RelatedPerson.contained",
      "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.contained"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "RelatedPerson.extension",
      "min": 0,
      "definition": "An Extension",
      "isModifier": false,
      "short": "Extension",
      "type": [ {
        "code": "Extension"
      } ],
      "mustSupport": false,
      "max": "0",
      "id": "RelatedPerson.extension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "RelatedPerson.modifierExtension",
      "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "RelatedPerson.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "RelatedPerson.identifier",
      "requirements": "People are known by a variety of ids. Some institutions maintain several, and most collect identifiers for exchange with other organizations concerning the patient. Examples are national person identifier and local identifier.",
      "min": 0,
      "definition": "Identifier for a person within a particular scope.",
      "isModifier": false,
      "short": "A human identifier for this person",
      "mapping": [ {
        "map": "FiveWs.identifier",
        "identity": "w5"
      }, {
        "map": "NK1-33",
        "identity": "v2"
      }, {
        "map": ".id",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "*",
      "id": "RelatedPerson.identifier",
      "base": {
        "max": "*",
        "min": 0,
        "path": "RelatedPerson.identifier"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "RelatedPerson.active",
      "requirements": "Need to be able to mark a related person record as not to be used, such as if it was created in error.",
      "min": 0,
      "definition": "Whether this related person record is in active use.",
      "isModifier": true,
      "short": "Whether this related person's record is in active use",
      "mapping": [ {
        "map": "FiveWs.status",
        "identity": "w5"
      }, {
        "map": ".statusCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "boolean"
      } ],
      "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
      "max": "1",
      "id": "RelatedPerson.active",
      "comment": "This element is labeled as a modifier because it may be used to mark that the resource was created in error.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "RelatedPerson.active"
      },
      "isModifierReason": "This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "RelatedPerson.patient",
      "requirements": "We need to know which patient this RelatedPerson is related to.",
      "min": 1,
      "definition": "The patient this person is related to.",
      "isModifier": false,
      "short": "The patient this person is related to",
      "mapping": [ {
        "map": "PID-3",
        "identity": "v2"
      }, {
        "map": "scoper[classCode=PSN|ANM and determinerCode='INSTANCE']/playedRole[classCode='PAT']/id",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://fhir.org/guides/hrsa/uds-plus/StructureDefinition/de-identified-uds-plus-patient" ]
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "RelatedPerson.patient",
      "base": {
        "max": "1",
        "min": 1,
        "path": "RelatedPerson.patient"
      },
      "isSummary": true
    }, {
      "path": "RelatedPerson.patient.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "RelatedPerson.patient.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "RelatedPerson.patient.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "RelatedPerson.patient.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "RelatedPerson.patient.reference",
      "min": 0,
      "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
      "isModifier": false,
      "short": "Literal reference, Relative, internal or absolute URL",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "RelatedPerson.patient.reference",
      "condition": [ "ref-1" ],
      "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.reference"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "RelatedPerson.patient.type",
      "min": 0,
      "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
      "isModifier": false,
      "short": "Type the reference refers to (e.g. \"Patient\")",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/resource-types",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "FHIRResourceTypeExt"
        } ],
        "description": "Aa resource (or, for logical models, the URI of the logical model)."
      },
      "max": "1",
      "id": "RelatedPerson.patient.type",
      "comment": "This element is used to indicate the type of  the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.type"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "RelatedPerson.patient.identifier",
      "min": 0,
      "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
      "isModifier": false,
      "short": "Logical reference, when literal reference is not known",
      "mapping": [ {
        "map": ".identifier",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "1",
      "id": "RelatedPerson.patient.identifier",
      "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference.  For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport).  One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.identifier"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "RelatedPerson.patient.display",
      "min": 0,
      "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
      "isModifier": false,
      "short": "Text alternative for the resource",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": false,
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "0",
      "id": "RelatedPerson.patient.display",
      "comment": "This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.display"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "RelatedPerson.relationship",
      "requirements": "We need to know the relationship with the patient since it influences the interpretation of the information attributed to this person.",
      "min": 0,
      "definition": "The nature of the relationship between a patient and the related person.",
      "isModifier": false,
      "short": "The nature of the relationship",
      "mapping": [ {
        "map": "FiveWs.class",
        "identity": "w5"
      }, {
        "map": "NK1-3",
        "identity": "v2"
      }, {
        "map": "code",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype",
        "description": "The set of codes to be used for UDS+ reporting."
      },
      "max": "*",
      "id": "RelatedPerson.relationship",
      "base": {
        "max": "*",
        "min": 0,
        "path": "RelatedPerson.relationship"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "RelatedPerson.name",
      "requirements": "Related persons need to be identified by name, but it is uncommon to need details about multiple other names for that person.",
      "min": 0,
      "definition": "A name associated with the person.",
      "isModifier": false,
      "short": "Cannot include any name in the resource as part of the de-identified data.",
      "mapping": [ {
        "map": "NK1-2",
        "identity": "v2"
      }, {
        "map": "name",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "HumanName"
      } ],
      "mustSupport": false,
      "max": "0",
      "id": "RelatedPerson.name",
      "base": {
        "max": "*",
        "min": 0,
        "path": "RelatedPerson.name"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "RelatedPerson.telecom",
      "requirements": "People have (primary) ways to contact them in some way such as phone, email.",
      "min": 0,
      "definition": "A contact detail for the person, e.g. a telephone number or an email address.",
      "isModifier": false,
      "short": "Cannot include any telecom information in the resource as part of the de-identified data.",
      "mapping": [ {
        "map": "NK1-5 / NK1-6 / NK1-40",
        "identity": "v2"
      }, {
        "map": "telecom",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "ContactPoint"
      } ],
      "mustSupport": false,
      "max": "0",
      "id": "RelatedPerson.telecom",
      "comment": "Person may have multiple ways to be contacted with different uses or applicable periods.  May need to have options for contacting the person urgently, and also to help with identification.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "RelatedPerson.telecom"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "RelatedPerson.gender",
      "requirements": "Needed for identification of the person, in combination with (at least) name and birth date.",
      "min": 0,
      "definition": "Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.",
      "isModifier": false,
      "short": "Cannot include any gender information in the resource as part of the de-identified data.",
      "mapping": [ {
        "map": "NK1-15",
        "identity": "v2"
      }, {
        "map": "administrativeGender",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": false,
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "AdministrativeGender"
        } ],
        "description": "The gender of a person used for administrative purposes."
      },
      "max": "0",
      "id": "RelatedPerson.gender",
      "base": {
        "max": "1",
        "min": 0,
        "path": "RelatedPerson.gender"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "RelatedPerson.birthDate",
      "min": 0,
      "definition": "The date on which the related person was born.",
      "isModifier": false,
      "short": "Cannot include any date of birth information in the resource as part of the de-identified data.",
      "mapping": [ {
        "map": "player.birthTime",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "date"
      } ],
      "mustSupport": false,
      "max": "0",
      "id": "RelatedPerson.birthDate",
      "base": {
        "max": "1",
        "min": 0,
        "path": "RelatedPerson.birthDate"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "RelatedPerson.address",
      "requirements": "Need to keep track where the related person can be contacted per postal mail or visited.",
      "min": 0,
      "definition": "Address where the related person can be contacted or visited.",
      "isModifier": false,
      "short": "Cannot include any address information in the resource as part of the de-identified data.",
      "mapping": [ {
        "map": "NK1-4",
        "identity": "v2"
      }, {
        "map": "addr",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Address"
      } ],
      "mustSupport": false,
      "max": "0",
      "id": "RelatedPerson.address",
      "base": {
        "max": "*",
        "min": 0,
        "path": "RelatedPerson.address"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "RelatedPerson.photo",
      "requirements": "Many EHR systems have the capability to capture an image of persons. Fits with newer social media usage too.",
      "min": 0,
      "definition": "Image of the person.",
      "isModifier": false,
      "short": "Cannot include any photo information in the resource as part of the de-identified data.",
      "mapping": [ {
        "map": "OBX-5 - needs a profile",
        "identity": "v2"
      }, {
        "map": "player[classCode='PSN' and determinerCode='INSTANCE']/desc",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Attachment"
      } ],
      "mustSupport": false,
      "max": "0",
      "id": "RelatedPerson.photo",
      "base": {
        "max": "*",
        "min": 0,
        "path": "RelatedPerson.photo"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "uds-plus-rel-10",
        "human": "All Period.start data elements should be truncated to a year only for de-identified resources.",
        "severity": "error",
        "expression": "$this is Period and Period.start.exists() implies $this.start.toString().length() = 4"
      }, {
        "key": "uds-plus-rel-10a",
        "human": "All Period.start data elements should have valid year > 1900",
        "severity": "error",
        "expression": "$this is Period and Period.start.exists() implies $this.start.toString() >= '1900'"
      }, {
        "key": "uds-plus-rel-10b",
        "human": "All Period.start data elements should have valid year < 2030",
        "severity": "error",
        "expression": "$this is Period and Period.start.exists() implies $this.start.toString() <= '2030'"
      }, {
        "key": "uds-plus-rel-11",
        "human": "All Period.end data elements should be truncated to a year only for de-identified resources.",
        "severity": "error",
        "expression": "$this is Period and Period.end.exists() implies $this.end.toString().length() = 4"
      }, {
        "key": "uds-plus-rel-11a",
        "human": "All Period.end data elements should have valid year > 1900",
        "severity": "error",
        "expression": "$this is Period and Period.end.exists() implies $this.end.toString() >= '1900'"
      }, {
        "key": "uds-plus-rel-11b",
        "human": "All Period.end data elements should have valid year < 2030",
        "severity": "error",
        "expression": "$this is Period and Period.end.exists() implies $this.end.toString() <= '2030'"
      } ],
      "path": "RelatedPerson.period",
      "min": 0,
      "definition": "The period of time during which this relationship is or was active. If there are no dates defined, then the interval is unknown.",
      "isModifier": false,
      "short": "Period of time that this relationship is considered valid",
      "mapping": [ {
        "map": "FiveWs.done[x]",
        "identity": "w5"
      }, {
        "map": ".effectiveTime",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Period"
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "RelatedPerson.period",
      "base": {
        "max": "1",
        "min": 0,
        "path": "RelatedPerson.period"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "RelatedPerson.communication",
      "requirements": "If a related person does not speak the local language, interpreters may be required, so languages spoken and proficiency is an important things to keep track of both for patient and other persons of interest.",
      "min": 0,
      "definition": "A language which may be used to communicate with about the patient's health.",
      "isModifier": false,
      "short": "Cannot include any communication information in the resource as part of the de-identified data.",
      "mapping": [ {
        "map": "LanguageCommunication",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "mustSupport": false,
      "max": "0",
      "id": "RelatedPerson.communication",
      "comment": "If no language is specified, this *implies* that the default local language is spoken.  If you need to convey proficiency for multiple modes, then you need multiple RelatedPerson.Communication associations.   If the RelatedPerson does not speak the default local language, then the Interpreter Required Standard can be used to explicitly declare that an interpreter is required.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "RelatedPerson.communication"
      },
      "isSummary": false
    }, {
      "path": "RelatedPerson.communication.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "RelatedPerson.communication.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "RelatedPerson.communication.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "RelatedPerson.communication.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "RelatedPerson.communication.modifierExtension",
      "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "RelatedPerson.communication.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "RelatedPerson.communication.language",
      "requirements": "Most systems in multilingual countries will want to convey language. Not all systems actually need the regional dialect.",
      "min": 1,
      "definition": "The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. \"en\" for English, or \"en-US\" for American English versus \"en-EN\" for England English.",
      "isModifier": false,
      "short": "The language which can be used to communicate with the patient about his or her health",
      "mapping": [ {
        "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/languageCommunication/code",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/languages",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
          "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "Language"
        } ],
        "description": "A human language."
      },
      "max": "1",
      "id": "RelatedPerson.communication.language",
      "comment": "The structure aa-BB with this exact casing is one the most widely used notations for locale. However not all systems actually code this but instead have it as free text. Hence CodeableConcept instead of code as the data type.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "RelatedPerson.communication.language"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "RelatedPerson.communication.preferred",
      "requirements": "People that master multiple languages up to certain level may prefer one or more, i.e. feel more confident in communicating in a particular language making other languages sort of a fall back method.",
      "min": 0,
      "definition": "Indicates whether or not the patient prefers this language (over other languages he masters up a certain level).",
      "isModifier": false,
      "short": "Language preference indicator",
      "mapping": [ {
        "map": "preferenceInd",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "boolean"
      } ],
      "max": "1",
      "id": "RelatedPerson.communication.preferred",
      "comment": "This language is specifically identified for communicating healthcare information.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "RelatedPerson.communication.preferred"
      },
      "isSummary": false
    } ],
    "extension": [ {
      "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
      "valueString": "4.0.1"
    } ]
  },
  "status": "active",
  "id": "281576ed-be39-40c7-979a-b02a420da309",
  "kind": "resource",
  "url": "http://fhir.org/guides/hrsa/uds-plus/StructureDefinition/de-identified-uds-plus-relatedperson",
  "version": "2.0.0",
  "differential": {
    "element": [ {
      "id": "RelatedPerson",
      "path": "RelatedPerson",
      "short": "De-Identified UDS Plus RelatedPerson",
      "definition": "The UDS+ profile is based on the **FHIR RelatedPerson resource and establishes the core elements, extensions, vocabularies and value sets for representing RelatedPerson of patients for UDS+ program."
    }, {
      "id": "RelatedPerson.id",
      "path": "RelatedPerson.id",
      "short": "The de-identified RelatedPerson identifier created by the health center to send data to HRSA.",
      "definition": "De-dentified RelatedPerson identifier.",
      "mustSupport": true
    }, {
      "id": "RelatedPerson.text",
      "max": "0",
      "min": 0,
      "path": "RelatedPerson.text",
      "short": "Cannot include any text in the resource as part of the de-identified data.",
      "mustSupport": false
    }, {
      "id": "RelatedPerson.contained",
      "max": "0",
      "min": 0,
      "path": "RelatedPerson.contained",
      "short": "Cannot include any contained resources in the resource as part of the de-identified data.",
      "mustSupport": false
    }, {
      "id": "RelatedPerson.extension",
      "max": "0",
      "min": 0,
      "path": "RelatedPerson.extension",
      "mustSupport": false
    }, {
      "id": "RelatedPerson.patient",
      "path": "RelatedPerson.patient",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://fhir.org/guides/hrsa/uds-plus/StructureDefinition/de-identified-uds-plus-patient" ]
      } ],
      "mustSupport": true
    }, {
      "id": "RelatedPerson.patient.display",
      "max": "0",
      "min": 0,
      "path": "RelatedPerson.patient.display",
      "mustSupport": false
    }, {
      "id": "RelatedPerson.relationship",
      "path": "RelatedPerson.relationship",
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype",
        "description": "The set of codes to be used for UDS+ reporting."
      },
      "mustSupport": true
    }, {
      "id": "RelatedPerson.name",
      "max": "0",
      "min": 0,
      "path": "RelatedPerson.name",
      "short": "Cannot include any name in the resource as part of the de-identified data.",
      "mustSupport": false
    }, {
      "id": "RelatedPerson.telecom",
      "max": "0",
      "min": 0,
      "path": "RelatedPerson.telecom",
      "short": "Cannot include any telecom information in the resource as part of the de-identified data.",
      "mustSupport": false
    }, {
      "id": "RelatedPerson.gender",
      "max": "0",
      "min": 0,
      "path": "RelatedPerson.gender",
      "short": "Cannot include any gender information in the resource as part of the de-identified data.",
      "mustSupport": false
    }, {
      "id": "RelatedPerson.birthDate",
      "max": "0",
      "min": 0,
      "path": "RelatedPerson.birthDate",
      "short": "Cannot include any date of birth information in the resource as part of the de-identified data.",
      "mustSupport": false
    }, {
      "id": "RelatedPerson.address",
      "max": "0",
      "min": 0,
      "path": "RelatedPerson.address",
      "short": "Cannot include any address information in the resource as part of the de-identified data.",
      "mustSupport": false
    }, {
      "id": "RelatedPerson.photo",
      "max": "0",
      "min": 0,
      "path": "RelatedPerson.photo",
      "short": "Cannot include any photo information in the resource as part of the de-identified data.",
      "mustSupport": false
    }, {
      "id": "RelatedPerson.period",
      "path": "RelatedPerson.period",
      "constraint": [ {
        "key": "uds-plus-rel-10",
        "human": "All Period.start data elements should be truncated to a year only for de-identified resources.",
        "severity": "error",
        "expression": "$this is Period and Period.start.exists() implies $this.start.toString().length() = 4"
      }, {
        "key": "uds-plus-rel-10a",
        "human": "All Period.start data elements should have valid year > 1900",
        "severity": "error",
        "expression": "$this is Period and Period.start.exists() implies $this.start.toString() >= '1900'"
      }, {
        "key": "uds-plus-rel-10b",
        "human": "All Period.start data elements should have valid year < 2030",
        "severity": "error",
        "expression": "$this is Period and Period.start.exists() implies $this.start.toString() <= '2030'"
      }, {
        "key": "uds-plus-rel-11",
        "human": "All Period.end data elements should be truncated to a year only for de-identified resources.",
        "severity": "error",
        "expression": "$this is Period and Period.end.exists() implies $this.end.toString().length() = 4"
      }, {
        "key": "uds-plus-rel-11a",
        "human": "All Period.end data elements should have valid year > 1900",
        "severity": "error",
        "expression": "$this is Period and Period.end.exists() implies $this.end.toString() >= '1900'"
      }, {
        "key": "uds-plus-rel-11b",
        "human": "All Period.end data elements should have valid year < 2030",
        "severity": "error",
        "expression": "$this is Period and Period.end.exists() implies $this.end.toString() <= '2030'"
      } ],
      "mustSupport": false
    }, {
      "id": "RelatedPerson.communication",
      "max": "0",
      "min": 0,
      "path": "RelatedPerson.communication",
      "short": "Cannot include any communication information in the resource as part of the de-identified data.",
      "mustSupport": false
    } ]
  },
  "contact": [ {
    "telecom": [ {
      "value": "https://bphc.hrsa.gov/",
      "system": "url"
    } ]
  } ],
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
}