CDM/schemaDocuments/Sustainability/CloudforSustainabilityWater.../WaterQualityCharacteristic....

1273 строки
46 KiB
JSON

{
"jsonSchemaSemanticVersion": "1.1.0",
"imports": [
{
"corpusPath": "cdm:/core/cdsConcepts.1.1.cdm.json"
},
{
"corpusPath": "/Sustainability/CloudforSustainabilitySharedDataModel/Unit.1.0.cdm.json"
},
{
"corpusPath": "WaterQualityCharacteristicType.1.0.cdm.json"
}
],
"definitions": [
{
"entityName": "WaterQualityCharacteristic",
"extendsEntity": "CdmEntity",
"displayName": "Water quality characteristic",
"description": "Describes the property being evaluated during the analysis of the water sample collected.",
"sourceName": "msdyn_waterqualitycharacteristic",
"exhibitsTraits": [
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Describes the property being evaluated during the analysis of the water sample collected."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Water quality characteristic"
]
]
}
}
]
},
{
"traitReference": "is.CDM.entityVersion",
"arguments": [
{
"name": "versionNumber",
"value": "1.0"
}
]
}
],
"hasAttributes": [
{
"attributeGroupReference": {
"attributeGroupName": "attributesAddedAtThisScope",
"members": [
{
"name": "waterqualitycharacteristicId",
"sourceName": "msdyn_waterqualitycharacteristicid",
"sourceOrdering": 1,
"description": "Unique identifier for entity instances.",
"displayName": "Water quality characteristic",
"isNullable": false,
"purpose": "identifiedBy",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "systemrequired"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Unique identifier for entity instances."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Water quality characteristic"
]
]
}
}
]
},
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msdyn_waterqualitycharacteristicid"
]
}
]
},
{
"name": "createdOn",
"sourceName": "createdon",
"sourceOrdering": 2,
"description": "Date and time when the record was created.",
"displayName": "Created On",
"isNullable": true,
"purpose": "hasA",
"dataType": "dateTime",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Date and time when the record was created."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Created On"
]
]
}
}
]
}
]
},
{
"name": "modifiedOn",
"sourceName": "modifiedon",
"sourceOrdering": 4,
"description": "Date and time when the record was modified.",
"displayName": "Modified On",
"isNullable": true,
"purpose": "hasA",
"dataType": "dateTime",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Date and time when the record was modified."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Modified On"
]
]
}
}
]
}
]
},
{
"name": "statecode",
"sourceName": "statecode",
"sourceOrdering": 25,
"description": "Status of the water quality characteristic.",
"displayName": "Status",
"isNullable": false,
"purpose": "representsStateWith",
"dataType": {
"dataTypeReference": "listLookup",
"appliedTraits": [
{
"traitReference": "does.haveDefault",
"arguments": [
{
"entityReference": {
"explanation": "The constantValues below correspond to the attributes of the 'listLookupValues' entityShape which are: {languageTag, displayText, attributeValue, displayOrder}",
"entityShape": "listLookupValues",
"constantValues": [
[
"en",
"Active",
"0",
"1"
],
[
"en",
"Inactive",
"1",
"2"
]
]
}
}
]
}
]
},
"projections": {
"operations": [
{
"$type": "addSupportingAttribute",
"condition": "virtual",
"supportingAttribute": {
"explanation": "This attribute 'statecode_display' is added to the 'WaterQualityCharacteristic' entity to provide the localized display text for the value of the listLookup attribute 'statecode'",
"name": "statecode_display",
"purpose": "hasA",
"dataType": "localizedDisplayText",
"isReadOnly": true
}
}
]
},
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "systemrequired"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Status of the water quality characteristic."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Status"
]
]
}
}
]
},
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"statecode"
]
}
]
},
{
"name": "statuscode",
"sourceName": "statuscode",
"sourceOrdering": 27,
"description": "Reason for the status of the water quality characteristic.",
"displayName": "Status Reason",
"isNullable": true,
"purpose": {
"purposeReference": "representsCorrelatedStatusWith",
"appliedTraits": [
{
"traitReference": "is.correlatedWith",
"arguments": [
"statecode"
]
}
]
},
"dataType": {
"dataTypeReference": "listLookup",
"appliedTraits": [
{
"traitReference": "does.haveDefault",
"arguments": [
{
"entityReference": {
"explanation": "The constantValues below correspond to the attributes of the 'listLookupCorrelatedValues' entityShape which are: {languageTag, displayText, attributeValue, displayOrder, correlatedValue}",
"entityShape": "listLookupCorrelatedValues",
"constantValues": [
[
"en",
"Active",
"1",
"1",
"1"
],
[
"en",
"Inactive",
"2",
"2",
"2"
]
]
}
}
]
}
]
},
"projections": {
"operations": [
{
"$type": "addSupportingAttribute",
"condition": "virtual",
"supportingAttribute": {
"explanation": "This attribute 'statuscode_display' is added to the 'WaterQualityCharacteristic' entity to provide the localized display text for the value of the listLookup attribute 'statuscode'",
"name": "statuscode_display",
"purpose": "hasA",
"dataType": "localizedDisplayText",
"isReadOnly": true
}
}
]
},
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Reason for the status of the water quality characteristic."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Status Reason"
]
]
}
}
]
},
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"statuscode"
]
}
]
},
{
"name": "importSequenceNumber",
"sourceName": "importsequencenumber",
"sourceOrdering": 30,
"description": "Sequence number of the import that created this record.",
"displayName": "Import Sequence Number",
"isNullable": true,
"purpose": "hasA",
"dataType": "integer",
"maximumValue": "2147483647",
"minimumValue": "-2147483648",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Sequence number of the import that created this record."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Import Sequence Number"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumValue",
"value": "2147483647"
},
{
"name": "minimumValue",
"value": "-2147483648"
}
]
}
]
},
{
"name": "overriddenCreatedOn",
"sourceName": "overriddencreatedon",
"sourceOrdering": 31,
"description": "Date and time that the record was migrated.",
"displayName": "Record Created On",
"isNullable": true,
"purpose": "hasA",
"dataType": "date",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Date and time that the record was migrated."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Record Created On"
]
]
}
}
]
}
]
},
{
"name": "timeZoneRuleVersionNumber",
"sourceName": "timezoneruleversionnumber",
"sourceOrdering": 32,
"description": "For internal use only.",
"displayName": "Time Zone Rule Version Number",
"isNullable": true,
"purpose": "hasA",
"dataType": "integer",
"maximumValue": "2147483647",
"minimumValue": "-1",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"For internal use only."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Time Zone Rule Version Number"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumValue",
"value": "2147483647"
},
{
"name": "minimumValue",
"value": "-1"
}
]
}
]
},
{
"name": "UTCConversionTimeZoneCode",
"sourceName": "utcconversiontimezonecode",
"sourceOrdering": 33,
"description": "Time zone code that was in use when the record was created.",
"displayName": "UTC Conversion Time Zone Code",
"isNullable": true,
"purpose": "hasA",
"dataType": "integer",
"maximumValue": "2147483647",
"minimumValue": "-1",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Time zone code that was in use when the record was created."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"UTC Conversion Time Zone Code"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumValue",
"value": "2147483647"
},
{
"name": "minimumValue",
"value": "-1"
}
]
}
]
},
{
"name": "name",
"sourceName": "msdyn_name",
"sourceOrdering": 34,
"description": "The name of the custom entity.",
"displayName": "Name",
"isNullable": true,
"purpose": "hasA",
"dataType": "string",
"maximumLength": "100",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "applicationrequired"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"The name of the custom entity."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Name"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "100"
}
]
}
]
},
{
"name": "origincorrelationid",
"sourceName": "msdyn_origincorrelationid",
"sourceOrdering": 35,
"description": "Optional field to store source unique identifier for the characteristic that is being tested for in the water sample.",
"displayName": "Origin correlation id",
"isNullable": true,
"purpose": "hasA",
"dataType": "string",
"maximumLength": "100",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Optional field to store source unique identifier for the characteristic that is being tested for in the water sample."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Origin correlation id"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "100"
}
]
}
]
},
{
"name": "referencerangeevidence",
"sourceName": "msdyn_referencerangeevidence",
"sourceOrdering": 36,
"description": "Field for storing the details of the standards or water quality discharge permits associated with the reference range for the water quality characteristic.",
"displayName": "Reference range evidence",
"isNullable": true,
"purpose": "hasA",
"dataType": "string",
"maximumLength": "100",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Field for storing the details of the standards or water quality discharge permits associated with the reference range for the water quality characteristic."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Reference range evidence"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "100"
}
]
}
]
},
{
"name": "referencerangelowerlimit",
"sourceName": "msdyn_referencerangelowerlimit",
"sourceOrdering": 37,
"description": "Field for storing the lower limit of the ideal range for the characteristic measure value in the water sample.",
"displayName": "Reference range lower limit ",
"isNullable": true,
"purpose": "hasA",
"dataType": "decimal",
"maximumValue": "100000000000",
"minimumValue": "-100000000000",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Field for storing the lower limit of the ideal range for the characteristic measure value in the water sample."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Reference range lower limit "
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumValue",
"value": "100000000000"
},
{
"name": "minimumValue",
"value": "-100000000000"
}
]
}
]
},
{
"name": "referencerangeunit",
"sourceName": "msdyn_referencerangeunit",
"sourceOrdering": 38,
"description": "Indicates the unit of measurement for the reference range.",
"displayName": "Reference range unit",
"isNullable": true,
"purpose": "hasA",
"dataType": "entityId",
"entity": {
"source": "Unit",
"operations": [
{
"$type": "replaceAsForeignKey",
"condition": "referenceOnly",
"reference": "unitId",
"replaceWith": {
"name": "referencerangeunit",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Indicates the unit of measurement for the reference range."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Reference range unit"
]
]
}
}
]
},
{
"traitReference": "is.CDS.lookup",
"arguments": [
{
"name": "style",
"value": "single"
}
]
}
]
}
}
]
}
},
{
"name": "referencerangeupperlimit",
"sourceName": "msdyn_referencerangeupperlimit",
"sourceOrdering": 39,
"description": "Field for storing the upper limit of the ideal range for the characteristic measure value in the water sample.",
"displayName": "Reference range upper limit",
"isNullable": true,
"purpose": "hasA",
"dataType": "decimal",
"maximumValue": "100000000000",
"minimumValue": "-100000000000",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Field for storing the upper limit of the ideal range for the characteristic measure value in the water sample."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Reference range upper limit"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumValue",
"value": "100000000000"
},
{
"name": "minimumValue",
"value": "-100000000000"
}
]
}
]
},
{
"name": "description",
"sourceName": "msdyn_description",
"sourceOrdering": 40,
"description": "Optional field that provides additional detail about the entity or attribute.",
"displayName": "Description",
"isNullable": true,
"purpose": "hasA",
"dataType": "string",
"maximumLength": "100",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Optional field that provides additional detail about the entity or attribute."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Description"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "100"
}
]
}
]
},
{
"name": "waterqualitycharacteristictype",
"sourceName": "msdyn_waterqualitycharacteristictype",
"sourceOrdering": 41,
"description": "Field to classify the water quality characteristic as belonging a certain type",
"displayName": "Water quality characteristic type",
"isNullable": true,
"purpose": "hasA",
"dataType": "entityId",
"entity": {
"source": "WaterQualityCharacteristicType",
"operations": [
{
"$type": "replaceAsForeignKey",
"condition": "referenceOnly",
"reference": "waterqualitycharacteristictypeId",
"replaceWith": {
"name": "waterqualitycharacteristictype",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "applicationrequired"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Field to classify the water quality characteristic as belonging a certain type"
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Water quality characteristic type"
]
]
}
}
]
},
{
"traitReference": "is.CDS.lookup",
"arguments": [
{
"name": "style",
"value": "single"
}
]
}
]
}
}
]
}
}
],
"exhibitsTraits": [
{
"traitReference": "is.CDM.attributeGroup",
"arguments": [
{
"entityReference": {
"entityShape": "attributeGroupSet",
"constantValues": [
[
"/Sustainability/CloudforSustainabilityWaterDataModel/WaterQualityCharacteristic.1.0.cdm.json/WaterQualityCharacteristic/hasAttributes/attributesAddedAtThisScope"
]
]
}
}
]
}
]
}
}
]
}
],
"documentVersion": "1.0"
}