FHIR © HL7.org  |  Server Home  |  XIG Home  |  XIG Stats  |  Server Source  |  FHIR  

FHIR IG Statistics: StructureDefinition/cyehr-sd-address

Packageehealth4u.package
Resource TypeStructureDefinition
Idcyehr-sd-address
FHIR VersionR4
Sourcehttps://simplifier.net/resolve?scope=ehealth4u.package@1.0.0&canonical=http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-address
URLhttp://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-address
Statusdraft
Date2022-01-25T10:50:15.4266808+00:00
NameCYEHRSDAddress
TitleCyprus EHR Address datatype
DescriptionA datatype for the parts of an address that willl be used for the protoptype of the national integrated EHR system of Cyprus. Defined by the project eHealth4U (ehealth4u.cs.ucy.ac.cy). Can be used for birth place, current address, medical office location, etc.
TypeAddress
Kindcomplex-type

Resources that use this resource

StructureDefinition
cyehr-sd-location-r4Cyprus EHR Location profile
cyehr-sd-locationmedicalteam-r4Cyprus EHR Medical Team Location profile
cyehr-sd-medicalteam-r4Cyprus EHR Medical Team profile
cyehr-sd-organization-r4Cyprus EHR Organization profile
cyehr-sd-patientCyprus EHR Patient profile
cyehr-sd-person-r4Cyprus EHR Person profile
cyehr-sd-practitioner-r4Cyprus EHR Practitioner profile

Resources that this resource uses

StructureDefinition
cyehr-ext-addressprovinceCyprus EHR Extension: Address Province
cyehr-ext-addresssettlementCyprus EHR Extension: Address Settlement
cyehr-ext-addresstownCyprus EHR Extension: Address Town
cyehr-ext-addressvillageCyprus EHR Extension: Address Village
cyehr-ext-nofixedaddressCyprus EHR Extension: No Fixed Address

Narrative

No narrative content found in resource


Source

{
  "resourceType": "StructureDefinition",
  "id": "cyehr-sd-address",
  "meta": {
    "versionId": "3",
    "lastUpdated": "2022-08-12T08:10:33.3145378+00:00"
  },
  "url": "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-address",
  "name": "CYEHRSDAddress",
  "title": "Cyprus EHR Address datatype",
  "status": "draft",
  "date": "2022-01-25T10:50:15.4266808+00:00",
  "publisher": "eHealth4U",
  "contact": [
    {
      "name": "eHealth Lab (University of Cyprus)",
      "telecom": [
        {
          "system": "email",
          "value": "ehealthl@ucy.ac.cy",
          "use": "work"
        }
      ]
    }
  ],
  "description": "A datatype for the parts of an address that willl be used for the protoptype of the national integrated EHR system of Cyprus. Defined by the project eHealth4U (ehealth4u.cs.ucy.ac.cy).  Can be used for birth place, current address, medical office location, etc.",
  "fhirVersion": "4.0.1",
  "kind": "complex-type",
  "abstract": false,
  "type": "Address",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Address",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Address",
        "path": "Address",
        "constraint": [
          {
            "key": "cyehr-address-1",
            "requirements": "https://web.archive.org/web/20170227213520/http://www.moi.gov.cy/moi/da/dadmin.nsf/dmlhistory_gr/dmlhistory_gr?OpenDocument",
            "severity": "error",
            "human": "If the address is from country = Cyprus then only the following elements and extensions should be filled: line, city, district, postal code, village, settlement, country.",
            "expression": "Address.where(country = 'CY').exists() implies (Address.state.exists().not() and Address.extension.where(url = 'http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-addressprovince').exists().not() and Address.extension.where(url = 'http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-addresstown').exists().not())",
            "source": "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-address"
          },
          {
            "key": "cyehr-address-2",
            "severity": "error",
            "human": "If asserting no fixed address, the type shall be physical",
            "expression": "extension('http://hl7.org.au/fhir/StructureDefinition/no-fixed-address').exists() implies type='physical'",
            "source": "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-address"
          },
          {
            "key": "cyehr-address-3",
            "severity": "error",
            "human": "If asserting no fixed address, the address text shall begin with \"NO FIXED ADDRESS\"",
            "expression": "Address.extension.where(url='http://hl7.org.au/fhir/StructureDefinition/no-fixed-address').exists() implies text.startsWith('NO FIXED ADDRESS')",
            "source": "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-address"
          },
          {
            "key": "cyehr-address-4",
            "severity": "error",
            "human": "If this is a Cypriot address, the postal code shall have 4 digits",
            "expression": "(Address.country = 'CY' and Address.postalCode.exists()) implies Address.postalCode.matches('^[0-9]{4}')",
            "source": "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-address"
          }
        ]
      },
      {
        "id": "Address.extension",
        "path": "Address.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Address.extension:province",
        "path": "Address.extension",
        "sliceName": "province",
        "label": "Province",
        "short": "Province as part of an address",
        "definition": "Optional Extension Element of the datatype address",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-addressprovince"
            ]
          }
        ]
      },
      {
        "id": "Address.extension:town",
        "path": "Address.extension",
        "sliceName": "town",
        "label": "Town",
        "short": "Town as part of an address",
        "definition": "Optional Extension Element of the datatype address",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-addresstown"
            ]
          }
        ]
      },
      {
        "id": "Address.extension:village",
        "path": "Address.extension",
        "sliceName": "village",
        "label": "Village",
        "short": "Village as part of the address",
        "definition": "Optional Extension Element of the datatype address",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-addressvillage"
            ]
          }
        ]
      },
      {
        "id": "Address.extension:settlement",
        "path": "Address.extension",
        "sliceName": "settlement",
        "label": "Settlement",
        "short": "Settlement as part of the address",
        "definition": "Optional Extension Element of the datatype address",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-addresssettlement"
            ]
          }
        ]
      },
      {
        "id": "Address.extension:noFixedAddress",
        "path": "Address.extension",
        "sliceName": "noFixedAddress",
        "comment": "CyprusEHR: When the value of the extension is \"true\" only temporary address can be created.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-nofixedaddress"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Address.line.extension",
        "path": "Address.line.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Address.line.extension:streetName",
        "path": "Address.line.extension",
        "sliceName": "streetName",
        "label": "Street Name",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"
            ]
          }
        ]
      },
      {
        "id": "Address.line.extension:houseNumber",
        "path": "Address.line.extension",
        "sliceName": "houseNumber",
        "label": "houseNumber",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"
            ]
          }
        ]
      },
      {
        "id": "Address.line.extension:unitType",
        "path": "Address.line.extension",
        "sliceName": "unitType",
        "label": "unitType",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-unitType"
            ]
          }
        ]
      },
      {
        "id": "Address.line.extension:unitID",
        "path": "Address.line.extension",
        "sliceName": "unitID",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-unitID"
            ]
          }
        ]
      },
      {
        "id": "Address.line.extension:postBox",
        "path": "Address.line.extension",
        "sliceName": "postBox",
        "label": "P.O. Box",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox"
            ]
          }
        ]
      },
      {
        "id": "Address.country",
        "path": "Address.country",
        "label": "Country",
        "short": "Country ISO 3166 2 letter code)",
        "comment": "ISO 3166 2 letter codes can be used in place of a human readable country name.",
        "binding": {
          "strength": "required",
          "description": "This value set defines the ISO 3166 Part 1 2-letter codes",
          "valueSet": "http://hl7.org/fhir/ValueSet/iso3166-1-2"
        }
      }
    ]
  }
}